﻿/* =========================
   CSS ORGANIZATION TEMPLATE
   ========================= */

/* =========================
   0. EXTERNAL RESOURCES / IMPORTS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* =========================
   1. GLOBAL RESET AND UTILITIES
   ========================= */
/* =========================
   Base Elements Reset
   ========================= */
body {
    padding-top: 0 !important; /* Changed from 0px to 0 */
    padding-bottom: 0;
    font-family: var(--font-primary);
}

div {
    scrollbar-width: thin !important;
    /*scrollbar-color: white transparent !important;*/
}

/* =========================
   Layout & Sizing Utilities
   ========================= */
.mw-20 {
    min-width: 20%;
}

.min-width-auto {
    min-width: auto !important;
}

.border-rounded-radius {
    border-radius: 50px;
}

.message-right {
    margin-left: auto;
}

.message-left {
    margin-right: auto;
}

/* =========================
   Typography Utilities
   ========================= */
.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.fw-regular {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

[data-bs-theme="dark"] .text-secondary {
    --bs-text-opacity: none;
}

/* Message Typography */
.message {
    font-size: 0.9em;
}

.message-time {
    font-size: 0.7em;
}

.resolve-checkbox {
    font-size: 0.8em;
}

.delay-info {
    font-size: 0.9em;
    opacity: 0.9;
}

/* =========================
   Form & Input Utilities
   ========================= */
.input-group span {
    justify-content: right;
}

/* =========================
   Table Utilities
   ========================= */
.dataTables_info,
.dataTables_length,
.dataTables_filter {
    color: var(--link-color);
}

/* =========================
   Interactive States
   ========================= */
.cursor-pointer {
    cursor: pointer;
}

.back-to-list:focus {
    border: none !important;
}

/* =========================
   2. TYPOGRAPHY
   ========================= */
/* =========================
   Sign In/Up Typography
   ========================= */
.signin-card-title {
    font-size: 32px;
    font-weight: 600;
}

.signin-card-subtitle {
    font-size: 14px;
    font-weight: 400;
}

.signin-validation-text,
.signup-validation-text {
    font-size: 14px;
}

/* =========================
   Page Elements Typography
   ========================= */
.forgot-password-div {
    font-size: 16px;
}

.page-report-button {
    font-size: 16px;
}

table {
    font-size: 14px;
}

/* =========================
   Control Panel Typography
   ========================= */
/* Control Panel Card Typography */
.control-panel-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.control-panel-card .card-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
}

.control-panel-card .card-body {
    font-size: 0.95rem;
}

.control-panel-card .icon {
    font-size: 2rem;
}

.control-panel-card .manage-link {
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
}

h1 {
    font-weight: 700;
}

/* =========================
   3. LAYOUT AND GRID
   ========================= */
.homepage {
    min-height: 445px;
}

/* =========================
   4. COMPONENTS
   ========================= */


/* =========================
   Dashboard Card
   ========================= */
.dashboard-card {
    transition: transform 0.2s;
    border-top-color: var(--warm-primary) !important;
}

    .dashboard-card:hover {
        transform: scale(1.05);
    }

/* ==========================
    Card Text
    ========================== */

/* Duplicated Sign-In/Up block removed; see later section for the same rules */

/* ==========================
   Navigation Pills
   ========================== */
.nav-pills .nav-link.active {
    border-radius: 0;
}

/* ==========================
    Validation Summary
    ========================== */

/* ==========================
   Profile Images
   ========================== */
.circular-image, .circular-image-mini {
    border-radius: 50%;
    object-fit: cover;
    border-width: 2px;
    border-style: solid;
}

.circular-image {
    width: 200px;
    height: 200px;
}

.circular-image-mini {
    width: 36px;
    height: 36px;
    position: relative;
    top: 2px;
}


/* ==========================
   Chat Components
   ========================== */
.chat-area {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--separator-color);
    margin-bottom: 10px;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 70%;
    color: var(--warm-white);
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-actions {
    display: flex;
    align-items: center;
}

.message-input-container {
    display: flex;
    margin-top: 10px;
}

.message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--separator-color);
    border-radius: 5px;
    margin-right: 10px;
}

.send-message-button {
    padding: 10px;
    background-color: var(--warm-primary);
    color: var(--warm-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Message States */
.message.resolved {
    opacity: 0.8;
}

    .message.resolved.hidden {
        display: none !important;
    }

    .message.resolved::after {
        content: '✓';
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 12px;
        color: var(--warm-white);
    }

    .message.resolved .message-content {
        text-decoration: line-through;
        opacity: 0.8;
    }

.resolve-checkbox {
    color: var(--warm-white);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .resolve-checkbox input {
        cursor: pointer;
    }

/* Time Display */
.message-time {
    display: block;
    color: var(--message-time);
    margin-top: 5px;
}

/* ==========================
   Status Components
   ========================== */
.status-badge {
    cursor: pointer;
}

    .status-badge:hover {
        opacity: 0.9;
    }

/* ==========================
   Modal Components
   ========================== */
#statusDetailModal .modal-body {
    max-height: 500px;
    overflow-y: auto;
}

/* =========================
   5. FORMS AND INPUTS
   ========================= */
/* Removing the blue highlight from inputs and buttons */
.form-control:focus {
    box-shadow: none;
}

.btn:focus {
    box-shadow: none;
}

/* =========================
   6. HEADER AND NAVIGATION
   ========================= */


/* =========================
   7. FOOTER
   ========================= */


/* =========================
   8. COLORS AND THEMES
   ========================= */

/* ==========================
   Color Variables
   ========================== */
:root {
    /* Existing variables... */
    /* Brand Colors */
    --warm-primary: #0d6efd;
    --warm-light: #e7f0ff;
    --warm-lighter: #f3f8ff;
    --warm-black: #0b0f19;
    --warm-red: #ec232a;
    --warm-white: #fff;
    
    /* Standardized aliases (non-breaking) */
    --primary: var(--warm-primary);
    --primary-light: #cfe2ff;
    --gradient-start: var(--warm-primary);
    --gradient-end: #6ea8fe;
    
    /* Font Families */
    --font-primary: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    
    /* Text Colors */
    --link-color: #0d6efd;
    --text-muted: rgba(0, 0, 0, 0.6);
    --separator-color: rgba(0, 0, 0, 0.15);
    --table-stripe-color: rgba(182, 211, 254, 0.1);
    /* Dashboard Colors */
    --scrollbar-color: #888;
    --scrollbar-hover: #555;
    --scrollbar-track: #f1f1f1;
    --nav-text: #495057;
    --nav-active: #0d6efd;
    --shadow-color: rgba(0, 0, 0, 0.3);
    /* Sidebar Colors */
    --sidebar-bg: #fff;
    --sidebar-scrollbar: #aab7cf;
    --sidebar-shadow: rgba(1, 41, 112, 0.1);
    --sidebar-link-color: #0d6efd;
    --sidebar-link-bg: #f6f9ff;
    --sidebar-heading-color: #899bbd;
    --sidebar-collapsed-color: #012970;
    --sidebar-collapsed-icon: #899bbd;
    /* Chat Theme Colors */
    --message-time: #ddd;
    --user-color-1: #1f77b4; /* Blue */
    --user-color-2: #2ca02c; /* Green */
    --user-color-3: #d62728; /* Red */
    --user-color-4: #9467bd; /* Purple */
    --user-color-5: #8c564b; /* Brown */

    /* Dashboard Variables (centralized) */
    --header-height: 56px;
    --content-padding: 4rem;
    --card-stats-height: 190px;
    --card-stats-width: 200px;
    --table-max-height: 300px;
    --scrollbar-width: 10px;
    --border-radius: 8px;

    /* Loaders and Spinners (centralized) */
    --loader-primary: #0d6efd;
    --loader-secondary: #ccc;
    --loader-size: 70px;
    --loader-primary-dot: 16px;
    --loader-secondary-dot: 12px;
    --loader-circle: 8px;
    --loader-offset: 16px;
    --loader-animation-duration: 1s;
    --loader-circle-duration: 0.5s;

    /* Sidebar Variables (centralized) */
    --sidebar-width: 315px;
    --sidebar-hidden-offset: -300px;
    --sidebar-top-offset: 75px;
    --sidebar-padding: 20px;
    --sidebar-z-index: 996;
    --sidebar-transition: 0.3s;
    --sidebar-font-size: 15px;
    --sidebar-heading-size: 11px;
    --sidebar-icon-size: 16px;
    --sidebar-content-size: 14px;
}

[data-bs-theme="dark"] {
    /* Base Colors - VS Code Dark Inspired */
    --warm-primary: #CCCCCC; /* Neutral Gray for buttons/actions */
    --warm-light: #313131; /* Light Charcoal */
    --warm-lighter: #424242; /* Medium Charcoal */
    --warm-black: #D4D4D4; /* VS Code Text Color */
    --warm-red: #FF616B; /* Soft Red */
    --warm-white: #252526; /* VS Code Background */
    /* Standardized aliases (non-breaking) */
    --primary: var(--warm-primary);
    --primary-light: #373737;
    --gradient-start: #afafaf;
    --gradient-end: #d4d4d4;
    /* Text Colors - Consistent with VS Code */
    --link-color: #D4D4D4; /* VS Code Text (was blue) */
    --text-muted: #CCCCCC; /* Light Gray */
    --separator-color: #424242; /* Medium Charcoal */
    --table-stripe-color: rgba(124, 124, 124, 0.05);
    /* Component Colors */
    --scrollbar-color: #424242;
    --scrollbar-hover: #525252;
    --scrollbar-track: #313131;
    --nav-text: #D4D4D4; /* VS Code Text */
    --nav-active: #D4D4D4; /* VS Code Text (was blue) */
    --shadow-color: rgba(0, 0, 0, 0.2);
    /* Sidebar Colors - Text Consistency */
    --sidebar-bg: #252526; /* VS Code Background */
    --sidebar-scrollbar: #424242;
    --sidebar-shadow: rgba(0, 0, 0, 0.15);
    --sidebar-link-color: #D4D4D4; /* VS Code Text (was blue) */
    --sidebar-link-bg: #2D2D2D; /* Slightly Lighter */
    --sidebar-heading-color: #CCCCCC;
    --sidebar-collapsed-color: #D4D4D4;
    --sidebar-collapsed-icon: #888888;
    /* Bootstrap Overrides */
    --bs-body-color: #D4D4D4; /* VS Code Text */
    --bs-body-bg: #252526; /* VS Code Background */
    --bs-border-color: #424242;
    --bs-secondary-color: #CCCCCC;
    --bs-tertiary-color: #888888;
    --bs-emphasis-color: #FFFFFF;
    --bs-card-bg: #2D2D2D;
    --bs-dropdown-bg: #2D2D2D;
    --bs-dropdown-link-hover-bg: #373737;
    --bs-dropdown-link-active-bg: #424242;
    /* Form Controls */
    --bs-input-bg: #3C3C3C;
    --bs-input-color: #D4D4D4;
    --bs-input-border-color: #424242;
    --bs-input-focus-border-color: #707070;
}

/* Text Color Utilities */
.global-link-text-color,
.global-link-text-color::placeholder,
.global-link-text-color:not(:placeholder-shown) {
    color: var(--link-color);
}

/* Icon Color Utilities */
a i .bi {
    color: var(--warm-white);
}

.btn:hover .bi,
.btn:focus .bi {
    color: var(--link-color);
}

.btn:active .bi {
    color: var(--warm-white);
}

/* User Colors */
.user-color-1 { background-color: var(--user-color-1); }
.user-color-2 { background-color: var(--user-color-2); }
.user-color-3 { background-color: var(--user-color-3); }
.user-color-4 { background-color: var(--user-color-4); }
.user-color-5 { background-color: var(--user-color-5); }

/* ==========================
   Pagination
   ========================== */
.pagination-container .pagination {
    transform: scale(0.9);
}

.pagination {
    padding-left: 2rem !important;
}

/* ==========================
   Navigation Bar
   ========================== */
.dropdown-toggle::after {
    position: relative;
    top: 2px;
}

.navbar-toggler {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1;
    border: none;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
    background-repeat: round;
}

.navbar-toggler-icon {
    width: auto;
    height: auto;
    padding-left: 15px;
}

.navbar-custom {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-padding {
    padding: 8px 16px;
}

.nav-link {
    color: var(--link-color);
}

/* ==========================
   Card Text
   ========================== */
.card-text {
    display: -webkit-box;
    line-clamp: 3; /* Standard property */
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 4.5em; /* Adjust based on line height and number of lines */
}

/* ==========================
   Sign-In and Sign-Up Forms
   ========================== */
.signin-textboxes, .signup-textboxes {
    margin-bottom: 20px;
}

.signin-textbox-group, .signup-textbox-group {
    margin-top: 30px;
}

.signin-card, .signup-card {
    width: max-content;
    margin: 75px auto;
    border: none;
    position: relative;
    top: 75px;
}

.signin-card-body, .signup-card-body {
    margin: auto;
}

.signin-button, .signup-button {
    font-size: 16px;
    border-radius: 28px;
    margin: auto;
    width: 250px;
}

.forgot-password-link {
    text-decoration: none;
}

.forgot-password-div {
    position: relative;
    top: -15px;
}

/* ==========================
   Account/Login Links
   ========================== */
.join-now-link, .sign-in-link {
    text-decoration: none;
}

.join-now-div, .sign-in-div {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

/* ==========================
   Validation Text Components
   ========================== */
.signin-validation-text {
    position: relative;
    top: -18px;
    left: 5px;
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

.signup-validation-text {
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

    .signup-validation-text ul {
        list-style-type: lower-greek;
        margin-bottom: 20px;
    }

/* ==========================
   Input and Cards Styling
   ========================== */
.page-input-card {
    max-width: 720px;
    margin: auto;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px, rgba(0, 0, 0, 0.1) 0 0 1px;
}

.page-input-box {
    max-width: initial;
}

.input-text-name {
    min-width: 145px;
}

.page-input-row {
    padding-left: 15px;
    padding-right: 15px;
    justify-content: center;
}

/* ==========================
   Buttons
   ========================== */
.page-report-button {
    border-radius: 28px;
    margin: auto;
    width: max-content;
}

.page-button-transform {
    transform: scale(0.81);
    transform-origin: top left;
}

.btn-warm {
    background-color: var(--warm-primary);
    border-color: var(--warm-primary);
    color: var(--warm-white);
}

    .btn-warm:active,
    .btn-warm:focus,
    .btn-warm:hover {
        background-color: transparent;
        border-color: var(--warm-primary);
        color: var(--warm-primary);
    }

    .btn-warm:hover {
        background-image: none;
    }

/* Light Variant */
.btn-warm_light {
    background-color: transparent;
    color: var(--warm-primary);
}

    .btn-warm_light:active,
    .btn-warm_light:focus,
    .btn-warm_light:hover {
        background-color: var(--warm-primary);
        color: var(--warm-white);
    }

/* Transparent Variant */
.btn-warm_transparent {
    background-color: var(--warm-lighter);
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

    .btn-warm_transparent:active,
    .btn-warm_transparent:focus,
    .btn-warm_transparent:hover {
        background-color: var(--warm-light);
        border-color: var(--warm-primary);
        color: var(--warm-primary);
    }

/* Transparent Alt Variant */
.btn-warm_transparent_alt {
    background-color: transparent;
    border-color: var(--warm-white);
    color: var(--warm-white);
}

    .btn-warm_transparent_alt:active,
    .btn-warm_transparent_alt:focus,
    .btn-warm_transparent_alt:hover {
        background-color: transparent;
        border-color: var(--warm-white);
        color: var(--warm-white);
    }

/* Transparent White Variant */
.btn-warm_transparent_white {
    background-color: transparent;
    border: 2px solid var(--warm-white);
    color: var(--warm-white);
}

    .btn-warm_transparent_white:active,
    .btn-warm_transparent_white:focus,
    .btn-warm_transparent_white:hover {
        background-color: var(--warm-white);
        border-color: var(--warm-white);
        color: var(--warm-primary);
    }

/* Translucent Variant */
.btn-warm_transluscent {
    background-color: transparent;
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

    .btn-warm_transluscent:active,
    .btn-warm_transluscent:focus,
    .btn-warm_transluscent:hover {
        background-image: linear-gradient(310deg, var(--gradient-start), var(--gradient-end));
        color: var(--warm-white);
    }

/* Correct-spelled alias (non-breaking) */
.btn-warm_translucent {
    background-color: transparent;
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

.btn-warm_translucent:active,
.btn-warm_translucent:focus,
.btn-warm_translucent:hover {
    background-image: linear-gradient(310deg, var(--gradient-start), var(--gradient-end));
    color: var(--warm-white);
}

/* ==========================
   Text and Background Colors
   ========================== */

/* Text Colors */
.text-warm { color: var(--warm-primary) !important; }
.text-red { color: var(--warm-red) !important; }
.text-warm_black { color: var(--warm-black); }
.text-warm_light { color: var(--warm-light); }
/* Hyphenated aliases (non-breaking) */
.text-warm-black { color: var(--warm-black); }
.text-warm-light { color: var(--warm-light); }

/* Background Colors */
.bg-warm { background-color: var(--warm-primary); }
.bg-warm_light { background-color: var(--warm-lighter); }
/* Hyphenated alias */
.bg-warm-light { background-color: var(--warm-lighter); }

/* Border Colors */
.border-color-warm { border-color: var(--warm-primary) !important; }
.border-color-warm_light { border-color: var(--warm-light) !important; }
/* Hyphenated alias */
.border-color-warm-light { border-color: var(--warm-light) !important; }

/* ==========================
   Navigation Pills
   ========================== */
.nav-pills .nav-link {
    color: var(--primary);
}

    .nav-pills .nav-link.active {
        background-color: var(--primary);
        border-radius: 0;
    }

/* ==========================
   Validation Summary
   ========================== */
.validation-summary-errors {
    /*max-width: min-content;*/
    color: var(--primary) !important;
}

/* ==========================
   Profile Images
   ========================== */
.circular-image, .circular-image-mini {
    border-radius: 50%;
    object-fit: cover;
    border-width: 2px;
    border-style: solid;
    border-color: var(--primary);
}

.circular-image {
    width: 200px;
    height: 200px;
}

.circular-image-mini {
    width: 36px;
    height: 36px;
    position: relative;
    top: 2px;
}

/* ==========================
   Control Panel Cards
   ========================== */
.control-panel-card {
    margin: 2.5px 0 15px;
    transition: transform 0.2s;
    min-width: 16.5rem;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--primary-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .control-panel-card:hover {
        transform: scale(1.05);
    }

    .control-panel-card .card-header {
        border-bottom: none;
        display: flex;
        align-items: center;
        background-color: transparent;
    }

    .control-panel-card .card-title {
        margin: 0.25rem 0 0;
    }

    .control-panel-card .icon {
        margin-right: 10px;
        border-width: 1px;
        border-style: solid;
        color: var(--primary);
        border-color: var(--primary);
    }

    .control-panel-card .card-footer {
        border-top: none;
        text-align: left;
        background-color: transparent;
    }

    .control-panel-card .manage-link {
        text-decoration: none;
        color: var(--primary);
    }

        .control-panel-card .manage-link:hover {
            text-decoration: underline;
        }

/* ==========================
    8. DATA TABLES
    ========================== */

/* DataTables Styling */
table.dataTable.table-striped > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px var(--table-stripe-color) !important;
}

/* =========================
   9. MEDIA QUERIES
   ========================= */
@media screen and (min-width: 992px) {
    .navbar-padding {
        padding: 8px 125px 8px 125px;
    }
}

@media (max-width: 576px) {
    .margin-top-mobile {
        margin-top: 0.5rem;
    }

    .margin-bottom-mobile {
        margin-bottom: 0.5rem;
    }

    .margin-top-mobile-1 {
        margin-top: 1rem;
    }

    .margin-bottom-mobile-1 {
        margin-bottom: 1rem;
    }
}

/* ===========================
   10. ANIMATION DEFINITIONS
   =========================== */
@keyframes fadeIn {
    /* Initial State */
    0% {
        --initial-opacity: 0;
        --initial-offset: -50px;
        opacity: var(--initial-opacity);
        transform: translateX(var(--initial-offset));
    }
    /* Final State */
    100% {
        --final-opacity: 1;
        --final-offset: 0;
        opacity: var(--final-opacity);
        transform: translateX(var(--final-offset));
    }
}

/* ===========================
   11. DASHBOARD
   =========================== */
/* =========================
   Dashboard Variables
   ========================= */
/* (Variables moved to centralized :root above) */

/* =========================
   Layout Components
   ========================= */
.content-wrapper {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--content-padding);
    overflow-x: hidden;
    background: transparent;
}

.card.stats-card {
    height: var(--card-stats-height);
    width: var(--card-stats-width);
}

/* =========================
   Map Components
   ========================= */
#map {
    height: 100%;
}

    #map .leaflet-popup-close-button {
        display: none;
    }

.leaflet-control-zoom.leaflet-bar.leaflet-control {
    box-shadow: 0 1px 4px var(--shadow-color);
    border: none;
}

.leaflet-touch .leaflet-bar a:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* =========================
   Table Scrollbar Styling
   ========================= */
#scrollableTableContainer {
    max-height: var(--table-max-height);
    min-height: var(--table-max-height);
    overflow-y: scroll;
    scrollbar-color: var(--scrollbar-color) var(--scrollbar-track) !important;
}

    #scrollableTableContainer::-webkit-scrollbar {
        width: var(--scrollbar-width);
    }

    #scrollableTableContainer::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-color);
        border-radius: calc(var(--scrollbar-width) / 2);
    }

        #scrollableTableContainer::-webkit-scrollbar-thumb:hover {
            background-color: var(--scrollbar-hover);
        }

/* =========================
   Navigation Tabs
   ========================= */
.dashboard-nav-tabs .nav-link {
    color: var(--nav-text) !important;
}

.dashboard-nav-tabs .active {
    color: var(--nav-active) !important;
}

/* =========================
   Map Container Settings
   ========================= */
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    -ms-touch-action: none;
    touch-action: none;
}

.leaflet-container {
    overflow: hidden;
}

.leaflet-grab {
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

/* ===========================
    12. LOADERS AND SPINNERS
    =========================== */

/* ==========================
   Loaders and Spinners
   ========================== */
/* (Loader variables moved to centralized :root above) */

.loader {
    width: var(--loader-size);
    aspect-ratio: 1;
    background: radial-gradient(farthest-side, var(--loader-primary) 90%, transparent 0) center/var(--loader-primary-dot) var(--loader-primary-dot), radial-gradient(farthest-side, var(--loader-primary) 90%, transparent 0) bottom/var(--loader-secondary-dot) var(--loader-secondary-dot);
    background-repeat: no-repeat;
    animation: loader-spin var(--loader-animation-duration) infinite linear;
    position: relative;
    top: 42%;
}

    .loader::before {
        content: "";
        position: absolute;
        width: var(--loader-circle);
        aspect-ratio: 1;
        inset: auto 0 var(--loader-offset);
        margin: auto;
        background: var(--loader-secondary);
        border-radius: 50%;
        transform-origin: 50% calc(100% + 10px);
        animation: inherit;
        animation-duration: var(--loader-circle-duration);
    }

@keyframes loader-spin {
    100% {
        transform: rotate(1turn);
    }
}

/* Responsive Display */
@media (max-width: 991.98px) {
    .non-mobile {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
}

@media (min-width: 599px) {
    .signin-custom-card,
    .signup-custom-card {
        width: 400px;
    }
}

/* ===========================
    13. SIDEBAR
    =========================== */

/* =========================
   Sidebar Variables
   ========================= */
/* (Sidebar variables moved to centralized :root above) */

/* ==========================
   Side Navigation Links
   ========================== */
.sidemenu-link {
    position: relative;
    top: -2px;
    color: var(--sidebar-link-color);
    text-decoration: none;
}

    .sidemenu-link:hover {
        color: var(--sidebar-link-color);
        text-decoration: none;
    }

/* ==========================
   Sidebar Toggle Button
   ========================== */
.toggle-sidebar {
    margin-bottom: 0 !important;
    border: none !important;
}

    .toggle-sidebar:hover,
    .toggle-sidebar:hover:focus,
    .toggle-sidebar:hover:active {
        border: none !important;
    }

.toggle-sidebar-btn {
    font-size: 32px;
}

/* Duplicate Sidebar link/toggle definitions removed; see earlier block */

/* =========================
   Sidebar Base
   ========================= */
.sidebar {
    position: fixed;
    top: var(--sidebar-top-offset);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: var(--sidebar-z-index);
    transition: all var(--sidebar-transition);
    padding: var(--sidebar-padding);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-scrollbar) transparent;
    box-shadow: 0 0 20px var(--sidebar-shadow);
    background-color: var(--sidebar-bg);
}

    /* Sidebar Scrollbar */
    .sidebar::-webkit-scrollbar {
        width: 5px;
        height: 8px;
        background-color: var(--sidebar-bg);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background-color: var(--sidebar-scrollbar);
    }

/* =========================
   Sidebar Navigation
   ========================= */
.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .sidebar-nav li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sidebar-nav .nav-item {
        margin-bottom: 5px;
    }

    /* Navigation Heading */
    .sidebar-nav .nav-heading {
        font-size: var(--sidebar-heading-size);
        text-transform: uppercase;
        color: var(--sidebar-heading-color);
        font-weight: 600;
        margin: 10px 0 5px 15px;
    }

    /* Navigation Links */
    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        font-size: var(--sidebar-font-size);
        font-weight: 600;
        color: var(--sidebar-link-color);
        transition: var(--sidebar-transition);
        background: var(--sidebar-link-bg);
        padding: 10px 15px;
        border-radius: 4px;
    }

        .sidebar-nav .nav-link i {
            font-size: var(--sidebar-icon-size);
            margin-right: 10px;
            color: var(--sidebar-link-color);
        }

        /* Collapsed State */
        .sidebar-nav .nav-link.collapsed {
            color: var(--sidebar-collapsed-color);
            background: var(--sidebar-bg);
        }

            .sidebar-nav .nav-link.collapsed i {
                color: var(--sidebar-collapsed-icon);
            }

        /* Hover States */
        .sidebar-nav .nav-link:hover {
            color: var(--sidebar-link-color);
            background: var(--sidebar-link-bg);
        }

            .sidebar-nav .nav-link:hover i {
                color: var(--sidebar-link-color);
            }

        /* Chevron Animation */
        .sidebar-nav .nav-link .bi-chevron-down {
            margin-right: 0;
            transition: transform 0.2s ease-in-out;
        }

        .sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
            transform: rotate(180deg);
        }

    /* Navigation Content */
    .sidebar-nav .nav-content {
        padding: 5px 0 0 0;
        margin: 0;
        list-style: none;
    }

        .sidebar-nav .nav-content a {
            display: flex;
            align-items: center;
            font-size: var(--sidebar-content-size);
            font-weight: 600;
            color: var(--sidebar-collapsed-color);
            transition: var(--sidebar-transition);
            padding: 10px 0 10px 40px;
        }

            .sidebar-nav .nav-content a i {
                font-size: 6px;
                margin-right: 8px;
                line-height: 0;
                border-radius: 50%;
            }

            .sidebar-nav .nav-content a:hover,
            .sidebar-nav .nav-content a.active {
                color: var(--sidebar-link-color);
            }

                .sidebar-nav .nav-content a.active i {
                    background-color: var(--sidebar-link-color);
                }

/* =========================
   Responsive Behavior
   ========================= */
@media (max-width: 1199px) {
    .sidebar {
        left: var(--sidebar-hidden-offset);
    }

    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {
    #main,
    #footer {
        margin-left: var(--sidebar-width);
    }

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: var(--sidebar-hidden-offset);
    }

    #main-content {
        margin-left: var(--sidebar-width);
        transition: margin-left var(--sidebar-transition);
    }

    .toggle-sidebar #main-content {
        margin-left: 0;
    }
}








