@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
  /* 🎨 Colors */
  --color-bg: #f4f6f8;
  --color-white: #ffffff;
  --color-dark-grey: #333333;
  --color-primary: #3e8ef7;
  --color-secondary: #869ab8;
  --color-accent: #ffa502;

  --color-success: #2ed573;
  --color-warning: #ffa502;
  --color-error: #ff4757;
  --color-info: #1e90ff;

  --color-text: #2f3542;
  --color-muted: #a4b0be;

  --color-sidebar-bg: #2f3542;
  --color-sidebar-active-bg: #57606f;
  --color-sidebar-hover-bg: #3d3d3d;

  /* Borders */
  --sidebar-br-color: #3F3F3F;

  /* 🧱 Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 36px;

  /* 🔤 Typography */
  --font-family-base: 'Inter', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;

  /* 🔲 Border radius / shadows */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--color-white);
}

.wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

a{
    text-decoration: none;
}

.icon {
    width: 16px; /* Let the width adjust automatically */
    height: 16px;
    object-fit: contain; /* Or use 'cover' depending on the effect you want */
    margin-right: 10px;
}

.admin-section {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #3F3F3F; /* Grey border line */
}

.main-content {
    margin-left: 250px; /* to account for the fixed sidebar */
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    height: 100vh; /* Full viewport height */
    width: calc(100vw - 250px);
    max-width: calc(100vw - 250px);
    overflow: hidden;
}

.main-header {
    padding: 24px 40px;
    border-bottom: 1px solid #D9D9D9;
    max-height: 150px;
    box-sizing: border-box;
}

.main-header h1 {
    margin-top: 0;
    font-size: 24px;
}

.header-right {
    display: flex;
    align-items: center;
}

.description-text {
    color: #4E4E4E;
    margin-right: 20px;
    font-size: 14px;
}

.button-icon-square {
    color: white;
}

.content-section {
    flex: 1; /* Allows it to take up remaining space */
    padding: 0px 40px 20px 40px;
    overflow-y: auto; /* Makes this section scrollable if content overflows */
}

.content-section ul {
    padding-inline-start: 0px;
}

.content-section ul li {
    outline: 1px solid #D5D5D5;
    list-style: none;
    padding: 10px 15px;
    border-radius: 6px;
    margin-block-end: 20px;
    transition: outline 0.2s ease;
}

.content-section ul li:hover {
    outline: 1px solid #00A8B1  ;
}

.geo-icon {
    width: 9.4px;
    height: 14px;
}

/*################################################
######                 PILL                 ######
################################################*/

.pill-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: 3px;
    color: #0c50e4;
    background-color: #c8e6ff;
    padding-inline: 8px;
    font-size: 11px;
    font-family: 'Lato', sans-serif;
    
}

.pill-square {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background-color: #0c5be4;
    margin-inline-end: 5px;
    font-weight: bold;
}

.success{
    color: #1B8D27;
    background-color: #b3dcb3;
}

.success-sq{
    background-color: #008a00;
}

.danger{
    background-color: #FFC8C8;
    color: #b91919;
}

.danger-sq{
    background-color: #b91919;
}

.warning{
    color: #E4740C;
    background-color: #FFE6C8;
}

.warning-sq{
    background-color: #E4740C;
}

.pending{
    color: #910ce4;
    background-color: #e9c8ff;
}

.pending-sq{
    background-color: #6707b1;
}

.info{
    color: #0c50e4;
    background-color: #c8e6ff;
}

.info-sq{
    background-color: #0c5be4;
}


.subheader-1 {
    font-size: 16px; /* Fixed typo from "16ox" to "16px" */
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.subheader-2 {
    font-size: 20px; /* Fixed typo from "16ox" to "16px" */
    font-weight: 400;
    margin-block: 20px;
    font-weight: 900;
}

.subheader-3 {
    font-size: 16px; /* Fixed typo from "16ox" to "16px" */
    font-weight: 700;
    margin-block: 0px;
    font-family: 'Inter', sans-serif;
    color: #253031;
}

.date-range-section {
    display: flex;
    gap: 20px; /* Space between date input forms */
    padding-bottom: 20px;
}

.date-range-form {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and label text */
    font-size: 14px;
    margin-bottom: 5px; /* Space below the label */
}

.date-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.format-selection {
    margin-top: 10px; /* Space above format selection */
    padding-bottom: 20px;
    font-size: 13px;
}

.format-dropdown {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 200px; /* Width of the dropdown */
}

.format-text {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 400px; /* Width of the dropdown */
}

/*################################################
######               BUTTONS                ######
################################################*/

.action-button {
    background-color: #00A8B1;
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

.action-button:hover {
    background-color: #006d71;
}

.add-btn {
    max-width: 40px;
    max-height: 42px;
    padding: 14.5px;
    margin-block: 11px;
    box-sizing: border-box;
}

.add-btn:hover {
    background-color: #00a8b17d;
}

.button-wrapper {
    padding-top: 10px;
    display: flex;
    gap: 10px; /* Space between buttons */
    align-items: center;
}

.button-primary {
    background-color: #00A8B1;
    color: var(--color-white);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
    border: 2px solid #00A8B1;
}

.button-sm-primary {
    background-color: #00A8B1;
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    padding: 9px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
}


.button-primary:hover {
    background-color: #006d71; /* Darker color on hover */
}

.button-secondary {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    color: #00A8B1;
    outline: 2px solid #00A8B1;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
    border: none;
    text-decoration: none;

}

.button-thrd {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    color: #D26262;
    outline: 2px solid #D26262;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
    border: none;
}

.button-thrd:hover{
    background-color: #D26262;
    color: var(--color-white);
}

.button-secondary img.icon{
    vertical-align: middle;

}

.button-secondary:hover {
    background-color: #00a8b16d; /* Darker color on hover */
    color: #006d71;
}

.button-dropdown:hover {
    background-color: #006d71; /* Darker color on hover */
    border-color: #006d71;
}

/* Button styles */
.button-dropdown {
    background-color: #00A8B1; /* Bright purple color */
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Ensures vertical alignment for the icon and text */
    justify-content: center; /* Centers the content horizontally */
    gap: 8px; /* Adds space between the icon and text */
    position: relative; /* Needed to align the dropdown properly */
    border: 2px solid #00A8B1;
}

.button-dropdown .icon {
    display: flex;
    align-items: center; /* Vertically centers the icon */
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centers the dropdown horizontally relative to the button */
    background-color: var(--color-white);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 175px;
    z-index: 1;
    border: 2px solid #d9d9d9;
}

/* Dropdown items */
.dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: flex; /* Use flexbox to center content vertically */
    align-items: center; /* Vertically center the text */
    font-size: 14px;
    height: 40px; /* Add a fixed height for consistent vertical alignment */
    outline: 1px solid #ddd;
    max-width: 175px;
}

/* Dropdown items hover */
.dropdown-content a:hover {
    background-color: rgba(39, 212, 255, 0.2); /* Light purple */
    color: #00A8B1;
}

/* Show dropdown content when button is clicked */
.dropdown:hover .dropdown-content {
    display: block;
}

.button-sm{
    padding: 9px 15px;
}

.mini-description-text{
    color: #B4B4B4;
    font-size: 12px;
}

.white{
    color: var(--color-white);
}

.no-margin-left{
    margin-left: 0px;
}

.no-margin{
    margin-block: 0px;
}

.smooth-text{
    text-shadow: 1px 1px 1px rgba(0,0,0,0.04);
    -webkit-font-smoothing: antialiased;
}


.modal-body .form-group{
    display: block;
    margin-bottom: 20px;
}

.modal-body .form-group label{
    display: block;  /* Ensures label is on its own line */
    margin-bottom: 10px;  /* Adds space between label and input */
    
}

.big-data-field{
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.form-wrapper{
    padding: 20px 40px;
}

.form-wrapper h3{
    font-size: 16px;
}

.form-wrapper .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    font-size: 12px;
    position: relative;
}

.form-wrapper .form-group input,
.form-wrapper .form-group select {
    padding: 10px;
    border: 2px solid #E5E7EB;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: 0px 4px 8px rgba(234, 234, 234, 0.35);
    transition: border-color 0.3s ease;
}


/* Highlight field when focused */
.form-wrapper .form-group input:focus,
.form-wrapper .form-group select:focus {
    outline: none;
    border-color: #00A8B1;
    border-width: 2px;
    padding: 10px;
    border-radius: 6px;
}

/* Label shift on focus */
.form-wrapper .form-group:focus-within label {
    color: #00A8B1;
    transform: translateX(20px) translateY(18px);
    background-color: white;
    display: inline-block;
    width: fit-content;
    padding-inline: 3px;
    transition: transform 0.1s ease;
    border-radius: 3px;
}

/* Optional: errors */
.form-wrapper .form-group input.is-invalid,
.form-wrapper .form-group select.is-invalid {
    border-color: #dc3545;
    background-color: #fff0f0;
}

.form-wrapper .form-group .error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Remove the underline from links */
.no-underline {
    text-decoration: none;
}

/* Optional: Styling for links */
.no-underline {
    color: inherit; /* Inherit color from parent if needed */
}

.page-not-found {
    background-image: url(./404_background.png);
    background-size: cover; /* Ensures the image covers the entire div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pnf-wrapper{
    max-width: 500px;
    height: 500px;
    margin-block: auto;
    justify-content: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 32px;
    font-size: 900;
}

.no-border{
    border: 0px;
}

.margin-auto{
    margin-inline: auto;
    margin-bottom: 100px;
}

.center-logo{
    padding-inline: 150px;
    padding-bottom: 10px;
}

.alert-danger{
    background-color: #FFC8C8;
    color: #b91919;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

/* Initially hide the topbar */
.topbar {
    display: none;
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

.service-pop-up{
    background-color: #bde9ff41;
    padding: 2px 15px;
    border-radius: 5px;
    margin-top: 20px;
    max-height: 50px;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    border: 1px solid #00A8B1;
}

.service-pop-up p{
    line-height: 1.2;  /* Reduces line height to 1.2 times the font size */

}

.timeline {
    position: relative;
    margin-top: 20px;
    font-size: 12px;
    max-height: 750px; /* Set a maximum height */
    overflow-y: auto;  /* Enable vertical scrolling when content exceeds max-height */
}

.timeline-content p{
    margin-block: 0;
    font-size: 14px;
}

.timeline h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-left {
    flex: 1;
    text-align: left;
    padding-right: 10px;
    min-width: 70px;
    font-size: 10px;
}

.timeline-right {
    flex: 5;
    padding-left: 20px;
    position: relative;
    top: -3px;

}

.timeline-date {
    font-size: 12px;
    color: #838383;
}

.timeline-content {
    font-size: 16px;
}

/* Styling the circle (bullet point) */
.timeline-item:before {
    content: '';
    position: absolute;
    left: calc(17.1% + ((1880px - 100vw) * 0.045));
    width: 12px;
    height: 12px;
    background-color: #D9D9D9;
    top: 0; /* Aligns the circle with the top of the timeline item */
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: calc(17.1% + ((1880px - 100vw) * 0.045));
    top: 12px;
    width: 2px;
    height: 150%;
    background-color: #D9D9D9;
    transform: translateX(-50%);
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-content a {
    color: #00A8B1;
    text-decoration: underline;
}

.timeline-content strong {
    font-weight: bold;
}

.main-content .content-section .object-header .button-wrapper .over{
    visibility: visible;
}

.main-content .content-section .object-header .button-wrapper .button-mobile{
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Transparent black */
    z-index: 10;
    transition: opacity 0.3s ease;
}

.side-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 11;
    transition: transform 0.3s ease;
    padding: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
    transform: translateX(0);
}

button {
    padding: 10px 15px;
    background-color: #00A8B1;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #006d71;
}

.admin-control{
    height: 100%;
    min-height: 0;      /* ✨ critical in flexbox ✨        */
    display: flex;
}

.admin-control-basic-form{
    flex: 5;
    overflow-y: scroll;
}

.admin-control-basic-form .form-wrapper h2 {
    margin-top: 15px !important;
    margin-bottom: 24px !important;
}

.admin-control-basic-form .form-wrapper label {
    color: #A3A3A3;
    margin-bottom: 12px;
}

.admin-control-basic-form .form-wrapper {
    max-height: calc(100vh - 300px);
    overflow-y: scroll;
    box-sizing: border-box;
}

.admin-control-basic-form .form-wrapper h2 {
    margin-top: 15px !important;
    margin-bottom: 24px !important;
    font-size: 18px;
}

.admin-control-basic-form .form-wrapper label {
    color: #A3A3A3;
    margin-bottom: 12px;
}

.admin-control-basic-form .format-dropdown {
    width: 416px;
}
 
.admin-control-sidebar{
    flex: 1;
    border-right: 1px solid #D9D9D9;
    height: 100%;
}

.admin-control-content{
    flex: 5;
    padding: 20px 40px;
    display: block;
}

.admin-control-content-topbar{
    display: flex;
    justify-content: space-between;
}

.admin-control-content-topbar h2{
    font-size: 18px;
}

.admin-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    width: calc(100% - 40px);
    padding-inline: 20px;
    font-size: 13px;
}

.admin-menu li:first-child {
    padding-top: 20px;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 24px;
    color: #6B6B6B;
}

.admin-menu a.active {
    background-color: #00A8B1;
    color: var(--color-white);
    box-shadow: 1px 1px 1px 1px rgba(47, 47, 47, 0.5);
}

.admin-menu a.active img{
    filter: brightness(0) invert(1);
}

.admin-menu a:hover {
    background-color: #99dcdf;
    color: #000000;
}

.admin-info:hover{
    background-color: #99dcdf;

}

.form-popup{
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    margin: 24px 0;/* Dark red text for contrast */
    border-radius: 5px;
    text-align: start;
}

.form-error{
    border: 2px solid #e60000;       /* Bright red */
    background-color: #ffe6e6;       /* Soft, light red */
    color: #600000;    
}

.progress-bar-wrapper{
    box-sizing: border-box;
    width: 100%;
    border-bottom: 1px solid #D9D9D9;
    padding: 40px 20px;
    max-height: 150px;

}

.mb-4{
    margin-bottom: 4px;
}

.mt-6{
    margin-top: 6px;
}

.gap-6{
    display: flex;
    gap: 6px;
}

th.wrap-column,
td.wrap-column {
    white-space: normal;
    word-wrap: break-word;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 600px;
    border-radius: 8px;
    text-align: center;
    border-left: 10px solid #00A8B1;
    text-align: left;
}

.modal-content .close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.object-header{
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.object-header-name{
    display: flex;
    align-items: center;
    gap: 10px;
}

.object-header-name span{
    color: #B4B4B4;
}

.card-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-left: 5px;
}

.geo-icon {
    width: 9.4px;
    height: 14px;
}

.leaflet-marker-icon{
    height: 32px;
    width: auto;
    box-sizing: contain;
}