/* ===========================
   GLOBAL
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    background: #f4f6fb;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: hidden;
}

/* =====================================
   COMMON DASHBOARD TYPOGRAPHY
===================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.navbar,
.sidebar,
.btn,
.form-control,
.form-select,
.form-label,
.card,
.card-header,
.card-body,
.table {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}


/* Normal dashboard text */

.card-body,
.form-control,
.form-select,
.form-label {
    font-size: 13px;
}


/* Small supporting text */

small,
.small {
    font-size: 11px;
}


/* Section headings */

.card-header {
    font-size: 13px;
    font-weight: 600;
}


/* Table */

.table {
    font-size: 12px;
}

.table thead th {
    font-size: 12px;
    font-weight: 600;
}

.table tbody td {
    font-size: 12px;
}

/* Dashboard main heading */

main h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Dashboard buttons */

.btn {
    font-size: 12px;
    font-weight: 500;
}

.btn-sm {
    font-size: 11px;
}
/* ===========================
   TOP HEADER
=========================== */

.topbar{
    background:#5b21b6;
    padding:12px 25px;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

.navbar-brand{
    font-size:22px;
    font-weight:700;
}

.topbar .form-control{
    border-radius:30px;
    border:none;
}

.topbar .btn{
    border-radius:30px;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
    background:#fff;
    min-height:100vh;
    box-shadow:2px 0 10px rgba(0,0,0,.08);
    padding:20px;
}

.sidebar h5{
    color:#5b21b6;
    font-weight:700;
}

.sidebar .nav-link{
    color:#555;
    padding:14px;
    border-radius:10px;
    margin-bottom:8px;
    transition:.3s;
}

.sidebar .nav-link i{
    width:24px;
}

.sidebar .nav-link:hover{
    background:#5b21b6;
    color:#fff;
}

.sidebar .active{
    background:#5b21b6;
    color:#fff !important;
}

/* ===========================
   CONTENT
=========================== */

.content{
    padding:30px;
}

.content h2{
    font-weight:700;
    color:#222;
}

.content p{
    color:#666;
}

/* ===========================
   FILTER CARD
=========================== */

.card{
    border:none;
    border-radius:15px;
}

.card-header{
    background:#fff;
    border-bottom:1px solid #eee;
    font-weight:600;
}

.form-select{
    border-radius:10px;
}

/* Disabled GIS filters */

#circleFilter:disabled,
#wardFilter:disabled {
    cursor: not-allowed !important;
}

/* GIS hierarchy disabled filters */
#circleFilter:disabled,
#wardFilter:disabled {
    background-color: #111827 !important;
    color: #6b7280 !important;
    border-color: #374151 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    color-scheme: dark;
}

/* ===========================
   DASHBOARD CARDS
=========================== */

.dashboard-card{
    color:#fff;
    border-radius:18px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:0 10px 20px rgba(0,0,0,.10);
    transition:.3s;
}

.dashboard-card:hover{
    transform:translateY(-6px);
}

.dashboard-card h3{
    font-size:34px;
    font-weight:bold;
}

.dashboard-card p{
    color:#fff;
    margin-top:10px;
    margin-bottom:0;
}

/* Colours */

.blue{
    background:#2563eb;
}

.green{
    background:#16a34a;
}

.orange{
    background:#f59e0b;
}

.purple{
    background:#7c3aed;
}

/* ===========================
   MAP
=========================== */

#map {
    width: 100%;
    height: 700px;
    min-width: 0;
    box-sizing: border-box;
}
/* ===========================
   CHARTS
=========================== */

canvas{
    max-height:320px;
}

/* ===========================
   SHADOW
=========================== */

.shadow{
    box-shadow:0 10px 30px rgba(0,0,0,.08)!important;
}

/* ===========================
   BUTTONS
=========================== */

.btn-primary{
    background:#5b21b6;
    border:none;
}

.btn-primary:hover{
    background:#4c1d95;
}
/* ===========================
   TABLE STYLING
=========================== */

.table{
    margin-bottom:0;
}
/* =====================================
   GIS TABLE SCROLL
===================================== */

#records .table-responsive {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}


/* Keep table header visible while scrolling */

#records .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}


/* Smooth scrollbar */

#records .table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#records .table-responsive::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 10px;
}

#records .table-responsive::-webkit-scrollbar-track {
    background: #eeeeee;
}

.table thead th{
    background:#5b21b6 !important;
    color:#fff;
    border:none;
    font-size:14px;
    letter-spacing:.5px;
    padding:15px;
}

.table tbody td{
    vertical-align:middle;
    padding:15px;
}

.table-hover tbody tr:hover{
    background:#f5f3ff;
    transition:.3s;
}

/* ===========================
   BADGES
=========================== */

.badge{
    padding:8px 14px;
    font-size:12px;
    border-radius:30px;
    font-weight:600;
}

/* ===========================
   CARD ANIMATION
=========================== */

.card{
    transition:.3s ease;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(0,0,0,.12);
}

/* ===========================
   SIDEBAR SCROLL
=========================== */

.sidebar{
    overflow-y:auto;
}

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#5b21b6;
    border-radius:10px;
}

/* ===========================
   PAGE SCROLLBAR
=========================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#ececec;
}

::-webkit-scrollbar-thumb{
    background:#7c3aed;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#5b21b6;
}

/* ===========================
   FOOTER
=========================== */

footer{
    color:#666;
    font-size:14px;
    padding-top:15px;
}

/* ===========================
   ICONS
=========================== */

.fa-eye{
    color:#fff;
}

.fa-bell:hover,
.fa-circle-user:hover{
    cursor:pointer;
    transform:scale(1.1);
    transition:.3s;
}

/* ===========================
   SEARCH
=========================== */

.form-control:focus,
.form-select:focus{
    border-color:#7c3aed;
    box-shadow:0 0 0 .2rem rgba(124,58,237,.2);
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */

@media(max-width:992px){

.sidebar{
    min-height:auto;
}

.content{
    padding:15px;
}

.dashboard-card{
    margin-bottom:15px;
}

#map{
    height:350px;
}

.topbar .w-50{
    width:100% !important;
    margin:15px 0;
}

.navbar{
    flex-direction:column;
}

}

@media(max-width:768px){

.dashboard-card h3{
    font-size:26px;
}

.table{
    font-size:13px;
}

.card-header{
    font-size:15px;
}

#map{
    height:300px;
}

}

/* ===========================
   CHART CONTAINERS
=========================== */

canvas{
    padding:10px;
}

/* ===========================
   RECORD BUTTON
=========================== */

.btn-sm{
    border-radius:8px;
    padding:6px 10px;
}

/* ===========================
   FADE ANIMATION
=========================== */

.dashboard-card,
.card{

    animation:fadeUp .6s ease;
}

@keyframes fadeUp{

from{

    opacity:0;
    transform:translateY(20px);

}

to{

    opacity:1;
    transform:translateY(0);

}

}
/* ==========================
   Navbar Logo
========================== */

.navbar-brand img{
    width:55px;
    height:55px;
    object-fit:contain;
    border-radius:50%;
    background:#fff;
    padding:4px;
}

.navbar-brand h5{
    font-size:22px;
    margin-bottom:2px;
}

.navbar-brand small{
    font-size:12px;
    opacity:0.9;
}/* ==========================
   Cyberabad Login Banner
========================== */

.login-logo {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.login-card{
    border-radius:18px;
}

.login-page {
    background: #f5f7fa;
}
.login-card h2{
    letter-spacing:1px;
}
/* =======================================
   SEARCH SUGGESTIONS
======================================= */

#searchSuggestions {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    max-height: 300px;

    overflow-y: auto;

    overflow-x: hidden;

    z-index: 10000;

    background: #ffffff;

    border: 1px solid #ddd;

    border-radius: 0 0 6px 6px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}


/* Suggestion items */

#searchSuggestions .list-group-item {

    cursor: pointer;

    padding: 10px 12px;

}


/* Hover */

#searchSuggestions .list-group-item:hover {

    background-color: #f2f2f2;

}


/* Scrollbar */

#searchSuggestions::-webkit-scrollbar {

    width: 7px;

}

#searchSuggestions::-webkit-scrollbar-thumb {

    background: #aaa;

    border-radius: 10px;

}

#searchSuggestions::-webkit-scrollbar-track {

    background: #f1f1f1;

}

/* =====================================
   COLLAPSED ICON SIDEBAR
===================================== */

/* FULL SIDEBAR */

.sidebar {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-height: calc(100vh - 58px);
    background: #172131 !important;
    padding: 0 !important;
    overflow: hidden;
    transition: width 0.3s ease,
                flex-basis 0.3s ease;
}


/* MAIN CONTENT */

main {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    transition: all 0.3s ease;
}


/* =====================================
   SIDEBAR HEADER
===================================== */

.sidebar-logo {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #315c9b;
    font-weight: 700;
    font-size: 18px;
}


.sidebar-toggle-area {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #2c3748;
}


.sidebar-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #d7dfeb;
    font-size: 18px;
    cursor: pointer;
}


/* =====================================
   SIDEBAR LINKS
===================================== */

.sidebar-menu {
    padding: 10px 0 !important;
}


.sidebar .sidebar-nav-link {
    display: flex;
    align-items: center;
    color: #c8d1dd !important;
    padding: 12px 18px !important;
    margin: 6px 8px !important;
    border-radius: 10px;
}


.sidebar .sidebar-nav-link i {
    width: 32px;
    min-width: 32px;
    text-align: center;
    margin-right: 10px !important;
}


.sidebar .sidebar-nav-link.active {
    background: #3676c8 !important;
    color: white !important;
}


/* =====================================
   COLLAPSED STATE
===================================== */

.dashboard-sidebar-closed .sidebar {
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
}


/* MAIN TAKES REMAINING SPACE */

.dashboard-sidebar-closed main {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
}


/* HIDE TEXT ONLY */

.dashboard-sidebar-closed .sidebar-label {
    display: none;
}


/* CENTER ICONS */

.dashboard-sidebar-closed .sidebar .sidebar-nav-link {
    justify-content: center;
    padding: 12px 0 !important;
}


.dashboard-sidebar-closed .sidebar .sidebar-nav-link i {
    margin-right: 0 !important;
}


/* OPEN BUTTON NOT NEEDED */

.dashboard-sidebar-closed .sidebar-open-btn {
    display: none !important;
}

/* =========================================================
   STEP 2 - DASHBOARD REFERENCE DESIGN
========================================================= */

/* =========================
   MAIN DASHBOARD BACKGROUND
========================= */

body {
    background: #111827;
    color: #e5e7eb;
}


/* =========================
   TOP NAVBAR
========================= */

.navbar {
    background: linear-gradient(
        90deg,
        #4f46e5,
        #6d28d9,
        #9333ea
    ) !important;

    min-height: 58px;
    padding: 7px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.15);
}


/* Logo area */

.navbar-brand {
    font-size: 14px !important;
    font-weight: 600;
}

.navbar-brand img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    padding: 2px;
}

.navbar-brand small {
    font-size: 9px !important;
}


/* Navbar buttons */

.navbar .btn {
    font-size: 11px;
    border-radius: 18px;
    padding: 6px 11px;
}

.navbar .form-control {
    font-size: 11px;
    height: 32px;
}


/* =========================
   MAIN CONTENT
========================= */

main {
    background: #111827;
    color: #e5e7eb;
}


/* Main headings */

main h2 {
    color: #f9fafb !important;
}


/* =========================
   DASHBOARD CARDS
========================= */

main .card {
    background: #1f2937;
    color: #e5e7eb;

    border: 1px solid #374151 !important;
    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
}


/* Card headers */

main .card-header {
    background: #374151 !important;
    color: #f9fafb !important;

    border-bottom: 1px solid #4b5563;

    font-size: 13px;
    font-weight: 600;

    padding: 9px 12px;
}


/* Card body */

main .card-body {
    padding: 12px;
}


/* =========================
   SUMMARY NUMBERS
========================= */

main .card-body h2 {
    color: #f9fafb !important;

    font-size: 26px;
    font-weight: 600;

    margin-top: 5px;
}


/* Summary labels */

main .card-body h6 {
    color: #9ca3af !important;

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;
}


/* =========================
   COLOURED SUMMARY CARDS
========================= */

main .row:first-of-type .card {
    min-height: 92px;
}


/* =========================
   MAP
========================= */

#map {
    height: 650px !important;

    border-radius: 0 !important;

    background: #111827;

    border: none;
}


/* Map card */

main .card:has(#map) {
    overflow: hidden;
}


/* =========================
   CHARTS
========================= */

canvas {
    max-height: 300px;
}


/* Chart cards */

#analytics .card {
    background: #1f2937;
}


/* =========================
   FILTERS
========================= */

.form-control,
.form-select {
    background: #111827;
    color: #e5e7eb;

    border: 1px solid #4b5563;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus,
.form-select:focus {
    background: #111827;
    color: #fff;

    border-color: #6366f1;

    box-shadow:
        0 0 0 2px rgba(99,102,241,.2);
}


/* =========================
   BUTTONS
========================= */

.btn-primary {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}

.btn-primary:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}


.btn-success {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}


.btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
}


/* =========================
   TABLE
========================= */

.table {
    color: #e5e7eb;
    background: #1f2937;
}

.table thead th {
    background: #374151 !important;
    color: #e5e7eb !important;

    border-color: #4b5563 !important;

    font-size: 11px !important;
    padding: 10px !important;
}

.table tbody td {
    background: #1f2937 !important;
    color: #e5e7eb !important;

    border-color: #374151 !important;

    font-size: 12px !important;
    padding: 9px !important;
}

.table-hover tbody tr:hover td {
    background: #283548 !important;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    background: #111827 !important;

    border-right: 1px solid #374151;

    box-shadow: none !important;
}

.sidebar h5 {
    color: #f9fafb !important;
    font-size: 13px;
}

.sidebar .nav-link {
    color: #d1d5db !important;

    font-size: 12px;

    padding: 9px 10px;

    border-radius: 6px;
}

.sidebar .nav-link:hover,
.sidebar .active {
    background: #4f46e5 !important;
    color: #fff !important;
}


/* =========================
   BADGES
========================= */

.badge {
    font-size: 10px;
    padding: 4px 7px;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* =====================================
   FLOATING MAP LAYER MANAGER
===================================== */

/* Map container */

.map-container {
    position: relative;
    height: 650px;
    overflow: hidden;
}


/* Leaflet map */

#map {
    width: 100%;
    height: 650px !important;
}


/* =====================================
   FLOATING LAYERS PANEL
===================================== */

.map-layers-panel {

    position: absolute;

    top: 65px;
    right: 15px;

    width: 280px;

    max-height: 540px;

    z-index: 1000;

    background: #273142;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

}


/* =====================================
   PANEL HEADER
===================================== */

.map-layers-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 13px 15px;

    background: #354155;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

}


.map-layers-close {

    border: none;

    background: transparent;

    color: #cbd5e1;

    font-size: 16px;

    cursor: pointer;

    padding: 0 4px;

}


.map-layers-close:hover {

    color: #ffffff;

}


/* =====================================
   PANEL BODY
===================================== */

.map-layers-body {

    padding: 12px;

    max-height: 485px;

    overflow-y: auto;

}


/* =====================================
   SECTION TITLE
===================================== */

.map-layer-section-title {

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.8px;

    color: #94a3b8;

    margin-bottom: 8px;

}


/* =====================================
   LAYER CHECKBOX ITEMS
===================================== */

.map-layer-item {

    padding: 8px;

    margin-bottom: 3px;

    border-radius: 5px;

    color: #d1d5db;

}


.map-layer-item:hover {

    background: #374151;

}


.map-layers-panel .form-check-input {

    background-color: transparent;

    border-color: #64748b;

}


.map-layers-panel .form-check-input:checked {

    background-color: #6366f1;

    border-color: #6366f1;

}


.map-layers-panel .form-check-label {

    font-size: 12px;

    cursor: pointer;

}


/* =====================================
   FORM ELEMENTS
===================================== */

.map-layers-panel .form-control,
.map-layers-panel .form-select {

    background: #1f2937;

    border-color: #475569;

    color: #e5e7eb;

    font-size: 12px;

}


.map-layers-panel .form-control:focus,
.map-layers-panel .form-select:focus {

    background: #1f2937;

    color: #ffffff;

    border-color: #6366f1;

    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.25);

}


/* =====================================
   OPEN LAYERS BUTTON
===================================== */

.open-layers-btn {

    position: absolute;

    top: 12px;
    right: 65px;

    z-index: 1001;

    border: none;

    border-radius: 20px;

    padding: 8px 14px;

    background: #6366f1;

    color: #ffffff;

    font-size: 12px;

    cursor: pointer;

    display: none;

}


.open-layers-btn:hover {

    background: #4f46e5;

}


/* =====================================
   HIDE / SHOW PANEL
===================================== */

.map-layers-panel.hidden {

    display: none;

}


.open-layers-btn.show {

    display: block;

}


/* =====================================
   MOBILE VIEW
===================================== */

@media (max-width: 768px) {

    .map-layers-panel {

        width: 260px;

        right: 10px;

        top: 55px;

    }

}

/* =====================================
   MAP SETTINGS PANEL
===================================== */

.map-settings-panel {

    position: absolute;

    top: 45px;
    right: 15px;

    width: 380px;

    max-height: 580px;

    z-index: 2000;

    background: #f8fafc;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.35);

    display: flex;

    flex-direction: column;

}


/* HIDE SETTINGS PANEL */

.map-settings-panel.hidden {

    display: none;

}


/* =====================================
   SETTINGS HEADER
===================================== */

.map-settings-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #d1d5db;

    color: #64748b;

}


.map-settings-title {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    font-weight: 600;

}


.map-settings-close {

    border: none;

    background: transparent;

    color: #475569;

    font-size: 18px;

    cursor: pointer;

}


/* =====================================
   SETTINGS BODY
===================================== */

.map-settings-body {

    padding: 16px 18px;

    overflow-y: auto;

    flex: 1;

}


/* =====================================
   SECTION TITLE
===================================== */

.settings-section-title {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #7c3aed;

    font-size: 12px;

    font-weight: 600;

}


.controls-title {

    margin-top: 20px;

}


/* =====================================
   BASE LAYER CARDS
===================================== */

.base-layer-options {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.base-layer-card {

    min-height: 100px;

    border:

        2px solid
        #64748b;

    border-radius: 15px;

    background: #ffffff;

    color: #64748b;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    cursor: pointer;

    font-size: 11px;

    transition: 0.2s;

}


.base-layer-card i {

    font-size: 21px;

}


.base-layer-card:hover {

    border-color: #6366f1;

}


.base-layer-card.active {

    border-color: #6366f1;

    background: #eef2ff;

    color: #4f46e5;

}


/* =====================================
   SETTING OPTIONS
===================================== */

.setting-option {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 13px;

    margin-bottom: 10px;

    border-radius: 10px;

    background: #ffffff;

    border:
        1px solid
        #e2e8f0;

}


.setting-option-left {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #6366f1;

}


.setting-option-left > i {

    width: 18px;

    text-align: center;

}


.setting-option-left strong {

    display: block;

    color: #64748b;

    font-size: 12px;

    font-weight: 600;

}


.setting-option-left small {

    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;

}


/* =====================================
   TOGGLE SWITCH
===================================== */

.settings-switch {

    position: relative;

    display: inline-block;

    width: 36px;

    height: 21px;

    flex-shrink: 0;

}


.settings-switch input {

    opacity: 0;

    width: 0;

    height: 0;

}


.settings-slider {

    position: absolute;

    cursor: pointer;

    inset: 0;

    background: #cbd5e1;

    border-radius: 20px;

    transition: 0.25s;

}


.settings-slider:before {

    content: "";

    position: absolute;

    width: 17px;

    height: 17px;

    left: 2px;

    bottom: 2px;

    background: #ffffff;

    border-radius: 50%;

    transition: 0.25s;

}


.settings-switch input:checked +
.settings-slider {

    background: #6366f1;

}


.settings-switch input:checked +
.settings-slider:before {

    transform:
        translateX(15px);

}


/* =====================================
   SETTINGS FOOTER
===================================== */

.map-settings-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 18px;

    border-top:
        1px solid
        #d1d5db;

    background: #ffffff;

}


.reset-settings-btn {

    border: none;

    background: transparent;

    color: #64748b;

    font-size: 12px;

    cursor: pointer;

}


.done-settings-btn {

    border: none;

    background: #6366f1;

    color: #ffffff;

    border-radius: 8px;

    padding: 9px 18px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

}


.done-settings-btn:hover {

    background: #4f46e5;

}


/* =====================================
   SCROLLBAR
===================================== */

.map-settings-body::-webkit-scrollbar {

    width: 7px;

}


.map-settings-body::-webkit-scrollbar-thumb {

    background: #64748b;

    border-radius: 10px;

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .map-settings-panel {

        width: calc(100% - 20px);

        right: 10px;

        top: 10px;

        max-height: calc(100% - 20px);

    }

}

/* =====================================
   MAP TOP RIGHT CONTROLS
===================================== */

.map-top-controls {

    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 1500;

    display: flex;

    flex-direction: row;

    gap: 6px;

}


/* INDIVIDUAL CONTROL BUTTON */

.map-control-btn {

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 8px;

    background: #ffffff;

    color: #475569;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    cursor: pointer;

    position: relative;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);

    transition: 0.2s;

}


.map-control-btn:hover {

    background: #f1f5f9;

    color: #4f46e5;

}


/* LAYER COUNT BADGE */

.layer-count-badge {

    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border-radius: 50%;

    background: #6366f1;

    color: #ffffff;

    font-size: 10px;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

}

/* =====================================
   MAP PANEL POSITIONS
===================================== */

/* Layers panel opens below the controls */

.map-layers-panel {

    top: 65px !important;

    right: 15px !important;

    z-index: 1600 !important;

}


/* Map Settings panel */

.map-settings-panel {

    top: 65px !important;

    right: 15px !important;

    z-index: 2000 !important;

}

/* =========================================
   KEEP CHARTS FIXED - EXPAND ONLY MAP
========================================= */

/* Charts always stay the same width */

#chartsColumn {
    flex: 0 0 500px !important;
    width: 500px !important;
    max-width: 500px !important;
}


/* Map takes all remaining available space */

#mapColumn {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
}




/* On smaller screens, return to normal layout */

@media (max-width: 992px) {

    #chartsColumn {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #mapColumn {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

}

/* Hide old main open sidebar button */

#openSidebar {
    display: none !important;
}

/* =========================================
   VIEW MODES
========================================= */


/* DASHBOARD VIEW */

.dashboard-view-mode #mapColumn {
    display: none !important;
}

.dashboard-view-mode #chartsColumn {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================
   FULL MAP VIEW
========================================= */

.map-view-mode main {
    padding: 0 !important;
}


/* Hide everything inside main */

.map-view-mode main > * {
    display: none !important;
}


/* Show only the map section */

.map-view-mode main > #mapViewSection {
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    height: calc(100vh - 58px) !important;
}


/* Full width map container */

.map-view-mode #mapViewSection > .col-lg-12 {
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;
}


/* Full width map row */

.map-view-mode #mapViewSection > .col-lg-12 > .row {
    display: flex !important;

    width: 100% !important;

    margin: 0 !important;
}


/* Hide charts */

.map-view-mode #chartsColumn {
    display: none !important;
}


/* Expand map column */

.map-view-mode #mapColumn {
    display: flex !important;

    flex: 0 0 100% !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;
}


/* Map card fills the available area */

.map-view-mode #mapColumn .card {
    width: 100% !important;

    height: 100% !important;

    margin: 0 !important;

    border-radius: 0 !important;
}


/* Expand map */

.map-view-mode #map {
    width: 100% !important;

    height: calc(100vh - 110px) !important;

    border-radius: 0 !important;
}



/* =========================================
   HIDE MAP CONTROLS WHEN MODAL IS OPEN
========================================= */

body.modal-open .leaflet-control-container,
body.modal-open .leaflet-top,
body.modal-open .leaflet-bottom {
    visibility: hidden !important;
}


/* Hide custom floating map buttons */

body.modal-open .map-controls,
body.modal-open .map-control,
body.modal-open .floating-controls,
body.modal-open .map-layers-panel {
    visibility: hidden !important;
}


/* Keep modal above the application */

.modal {
    z-index: 99999 !important;
}


.modal-backdrop {
    z-index: 99998 !important;
}

/* =========================================
   ADD / EDIT LAND MODAL - WHITE FORM FIELDS
========================================= */

#addModal input,
#addModal select,
#addModal textarea {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}


/* Placeholder text */

#addModal input::placeholder,
#addModal textarea::placeholder {
    color: #6c757d !important;
    opacity: 1;
}


/* Dropdown options */

#addModal select option {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* =========================================
   RESIZABLE MAP + DASHBOARD SPLIT SCREEN
========================================= */

#bothViewContainer {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    gap: 0 !important;
}


/* MAP SIDE */

#mapColumn {
    flex: 1 1 50%;
    min-width: 250px;
    overflow: hidden;
    padding: 0 !important;
}


/* DASHBOARD SIDE */

#chartsColumn {
    flex: 1 1 50%;
    min-width: 350px;
    overflow-y: auto;
    padding: 0 !important;
}


/* DRAGGABLE DIVIDER */

#splitDivider {
    flex: 0 0 10px;
    width: 10px;
    min-width: 10px;
    background: #e5e7eb;
    cursor: col-resize;
    position: relative;
    z-index: 100;
    touch-action: none;
user-select: none;
}


/* CENTER LINE */

#splitDivider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: #cbd5e1;
}


#splitDivider:hover {
    background: #d1d5db;
}

/* =========================================
   ASSET DETAIL POPUP
========================================= */

.asset-detail-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}


.asset-detail-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 290px !important;
}


.asset-detail-leaflet-popup .leaflet-popup-tip {
    background: white;
}


.asset-detail-popup {
    width: 100%;
    background: white;
    overflow: hidden;
}


.asset-popup-image {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
}


.asset-popup-no-image {
    width: 100%;
    height: 140px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 8px;

    background: #e9ecef;
    color: #6c757d;
}


.asset-popup-no-image i {
    font-size: 30px;
}


.asset-popup-content {
    padding: 10px 12px 12px;
}


.asset-popup-title {
    font-size: 15px;
    font-weight: 700;

    text-transform: uppercase;

    color: #343a40;

    margin-bottom: 4px;
}


.asset-popup-id {
    font-size: 13px;

    color: #5969d8;

    font-weight: 600;

    margin-bottom: 6px;
}


.asset-popup-info {
    font-size: 12px;

    color: #555;

    margin-bottom: 5px;

    line-height: 1.4;
}


.asset-popup-info strong {
    color: #444;
}


.asset-popup-info span {
    color: #555;
}


.asset-view-details-btn {
    width: 100%;

    margin-top: 8px;

    border: none;

    border-radius: 5px;

    padding: 9px;

    background: #5147c8;

    color: white;

    font-weight: 600;

    cursor: pointer;

    font-size: 13px;
}


.asset-view-details-btn:hover {
    background: #4036b5;
}

/* =======================================
   TOP NAVIGATION LOGO
======================================= */

.page-logo {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;

    background: white;
}

/* =====================================
   LOGIN HEADER
===================================== */

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}


/* LEFT AND RIGHT LOGO */

.login-logo-wrapper {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 50%;
}

.login-side-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* CENTER TITLE */

.login-title {
    flex: 1;
    text-align: center;
}


.login-title h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 700;

    color: #1f3c88;

    line-height: 1.3;

    text-transform: uppercase;
}


/* MOBILE VIEW */

@media (max-width: 576px) {

    .login-logo-wrapper {
        width: 55px;
        height: 55px;
    }


    .login-title h2 {
        font-size: 14px;
    }

}

/* =====================================
   CAPTCHA
===================================== */

.captcha-section {
    width: 100%;
}


.captcha-refresh {
    border: none;
    background: transparent;

    color: #7da2e3;

    font-size: 14px;

    cursor: pointer;
}


.captcha-refresh:hover {
    color: #ffffff;
}


.captcha-row {
    display: flex;
    gap: 12px;

    align-items: center;
}


.captcha-box {
    width: 42%;

    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    color: #222;

    border-radius: 6px;

    font-size: 22px;

    font-weight: 600;

    letter-spacing: 7px;

    font-family: monospace;


    user-select: none;

    border: 1px solid #ddd;
}


#captchaInput {
    width: 58%;
}


@media (max-width: 576px) {

    .captcha-row {
        flex-direction: column;
    }


    .captcha-box,
    #captchaInput {
        width: 100%;
    }

}

/* =====================================
   LOGIN PAGE - MAIN LAYOUT
===================================== */

.login-page {
    min-height: 100vh;
    margin: 0;

    background: #192334;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
}


/* =====================================
   LOGIN CARD
===================================== */

.login-card {
    width: 100%;

    background: #263244;

    border: 1px solid #344257 !important;

    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25) !important;
}


.login-card .card-body {
    padding: 38px 34px !important;
}


/* =====================================
   LOGIN HEADER
===================================== */

.login-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 35px;
}


.login-logo-wrapper {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}


.login-side-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.login-title {
    flex: 1;

    text-align: center;
}


.login-title h2 {
    margin: 0;

    color: #f1f1f1;

    font-size: 22px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    line-height: 1.3;
}


.login-title p {
    margin: 6px 0 0;

    color: #79a9ff;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =====================================
   LABELS
===================================== */

.login-card .form-label {
    color: #d3d7de;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;
}


/* =====================================
   INPUT FIELDS
===================================== */

.login-card .form-control {
    height: 46px;

    background: #354257;

    border: 1px solid #43536a;

    color: #ffffff;

    border-radius: 8px;

    box-shadow: none;

    padding-left: 14px;
}


.login-card .form-control::placeholder {
    color: #b5bcc8;
}


.login-card .form-control:focus {
    background: #354257;

    color: #ffffff;

    border-color: #4f83d8;

    box-shadow:
        0 0 0 3px rgba(65, 121, 210, 0.15);
}


/* =====================================
   PASSWORD BUTTON
===================================== */

.login-card .input-group .btn {
    background: #354257;

    border-color: #43536a;

    color: #aeb7c5;
}


/* =====================================
   CAPTCHA
===================================== */

.captcha-section {
    width: 100%;

    margin-top: 5px;
}


.captcha-refresh {
    border: none;

    background: transparent;

    color: #78a8ff;

    font-size: 14px;

    cursor: pointer;

    padding: 0;
}


.captcha-refresh:hover {
    color: #a9c7ff;
}


.captcha-row {
    display: flex;

    gap: 12px;

    align-items: center;
}


.captcha-box {
    width: 42%;

    height: 48px;

    background: #f4f4f4;

    color: #222;

    border-radius: 6px;

    border: 1px solid #d4d4d4;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: monospace;

    font-size: 21px;

    font-weight: 600;

    letter-spacing: 7px;

    user-select: none;
}


#captchaInput {
    width: 58%;

    letter-spacing: 4px;
}


/* =====================================
   REMEMBER ME
===================================== */

.login-card .form-check-label {
    color: #d0d5dc;

    font-size: 14px;
}


.login-card .form-check-input {
    background-color: #2d394a;

    border-color: #526074;
}


/* =====================================
   LOGIN BUTTON
===================================== */

#loginBtn {
    height: 46px;

    border: none;

    border-radius: 8px;

    background: #3867c8;

    font-size: 15px;

    font-weight: 600;

    color: #ffffff;
}


#loginBtn:hover {
    background: #2f5cb7;
}


/* =====================================
   FORGOT PASSWORD
===================================== */

.login-card a {
    color: #80aaf3;

    font-size: 14px;
}


.login-card a:hover {
    color: #a8c6ff;
}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 576px) {

    .login-card .card-body {
        padding: 30px 20px !important;
    }


    .login-logo-wrapper {
        width: 50px;
        height: 50px;
    }


    .login-title h2 {
        font-size: 15px;
    }


    .login-title p {
        font-size: 10px;
    }


    .captcha-row {
        flex-direction: column;
    }


    .captcha-box,
    #captchaInput {
        width: 100%;
    }

}

/* =========================================
   DEPENDENT CATEGORY DROPDOWNS
========================================= */

.dependent-select-wrapper {
    width: 100%;
}

/* Disabled dropdown appearance */
.dependent-dropdown:disabled {
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    background-color: #e9ecef !important;
}

/* Wrapper also shows not-allowed cursor */
.dependent-select-wrapper:has(.dependent-dropdown:disabled) {
    cursor: not-allowed;
}

/* Enabled dropdown */
.dependent-dropdown:not(:disabled) {
    cursor: pointer;
    opacity: 1 !important;
}

/* =========================================
   CREATE NEW ASSET MODAL HEADER
========================================= */

#addModal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}


/* MAIN HEADER */

.new-asset-modal-header {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 24px;

    background: linear-gradient(
        90deg,
        #ff7300,
        #ee6800
    );

    color: #ffffff;
}


/* LEFT SIDE */

.new-asset-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}


.new-asset-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.16);

    font-size: 22px;
}


.new-asset-title {
    margin: 0;

    font-size: 19px;
    font-weight: 700;

    color: #ffffff;
}


.new-asset-subtitle {
    margin: 3px 0 0;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.85);
}


/* RIGHT SIDE */

.new-asset-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.required-badge {
    height: 42px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 16px;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}


.header-action-btn {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;
}


.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* =========================================
   ADD MODAL FULLSCREEN
========================================= */

#addModal .modal-dialog.modal-fullscreen {
    width: 100vw !important;
    max-width: none !important;

    height: 100vh !important;

    margin: 0 !important;
}


#addModal .modal-dialog.modal-fullscreen
.modal-content {

    height: 100vh;

    border-radius: 0;

}


#addModal .modal-dialog.modal-fullscreen
.modal-body {

    overflow-y: auto;

}

/* =========================================
   CREATE ASSET - HEADER DETAILS SECTION
========================================= */

.asset-details-section {
    border: 1px solid #dce5ee;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}


.asset-details-section-title {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    background: #1565c0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
}


.asset-details-section-title i {
    font-size: 16px;
}


.asset-details-section-content {
    padding: 20px;
    background: #ffffff;
}


/* FORM LABELS */

.asset-details-section .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;

    margin-bottom: 6px;
}


/* INPUTS */

.asset-details-section .form-control,
.asset-details-section .form-select {
    min-height: 42px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    font-size: 14px;
}


.asset-details-section .form-control:focus,
.asset-details-section .form-select:focus {
    border-color: #1565c0;

    box-shadow: 0 0 0 0.15rem rgba(21, 101, 192, 0.15);
}
/* =======================================
   MAP BREADCRUMB PILLS
======================================= */

.map-container {
    position: relative;
}


/* Breadcrumb container */

.map-breadcrumb {

    position: absolute;

    top: 8px;

    left: 60px;

    z-index: 1000;

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}


/* Individual breadcrumb pill */

.map-breadcrumb-item {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 14px;

    border-radius: 20px;

    color: white;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25);

    white-space: nowrap;

}


/* ULB / Main breadcrumb */

.breadcrumb-ulb {

    background: #5b5bd6;

}


/* Zone breadcrumb */

.breadcrumb-zone {

    background: #f39c12;

}


/* Circle breadcrumb */

.breadcrumb-circle {

    background: #e74c3c;

}


/* Ward breadcrumb */

.breadcrumb-ward {

    background: #27ae60;

}


/* Close button */

.breadcrumb-close {

    border: none;

    background: transparent;

    color: white;

    padding: 0;

    margin: 0;

    font-size: 16px;

    font-weight: bold;

    line-height: 1;

    cursor: pointer;

    opacity: 0.9;

}


.breadcrumb-close:hover {

    opacity: 1;

}
/* =======================================
   CMC RIGHT LOGO - PERFECT CIRCLE
======================================= */

.cmc-right-logo {
    width: 65px !important;
    height: 65px !important;

    object-fit: cover !important;

    border-radius: 50% !important;

    border: none !important;
    outline: none !important;

    box-shadow: none !important;

    clip-path: circle(50% at 50% 50%);
}


/* ========================================= */
/* FORGOT PASSWORD PAGE */
/* ========================================= */

.forgot-password-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}


/* ========================================= */
/* LOGO */
/* ========================================= */

.forgot-password-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}


/* ========================================= */
/* TITLE */
/* ========================================= */

.forgot-password-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}


.forgot-password-subtitle {
    font-size: 15px;
    margin-bottom: 0;
}


/* ========================================= */
/* LABELS */
/* ========================================= */

.forgot-password-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}


/* ========================================= */
/* INPUT FIELDS */
/* ========================================= */

#forgotPasswordPage .form-control {
    height: 45px;
}


#forgotPasswordPage .input-group-text {
    min-width: 38px;
    justify-content: center;
}


/* ========================================= */
/* CAPTCHA REFRESH */
/* ========================================= */

#forgotCaptchaRefresh {
    text-decoration: none;
    font-size: 14px;
}


/* ========================================= */
/* CAPTCHA BOX */
/* ========================================= */

.forgot-captcha-box {
    height: 48px;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 5px;

    background: #f1f1f1;

    user-select: none;
}


/* ========================================= */
/* CAPTCHA INPUT */
/* ========================================= */

.forgot-captcha-input {
    height: 48px;
    letter-spacing: 3px;
}


/* ========================================= */
/* SEND RESET BUTTON */
/* ========================================= */

#sendResetLinkBtn {
    height: 45px;
    font-weight: 600;
}


/* ========================================= */
/* BACK TO LOGIN */
/* ========================================= */

.forgot-back-button {
    text-decoration: none;
    font-size: 14px;
}


/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

@media (max-width: 576px) {

    .forgot-password-container {
        max-width: 100%;
    }


    .forgot-password-title {
        font-size: 23px;
    }


    .forgot-password-subtitle {
        font-size: 14px;
    }


    .forgot-password-logo {
        width: 60px;
        height: 60px;
    }

}

/* Andhra Pradesh administrative boundary labels */
.ap-boundary-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #202020 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    white-space: nowrap;
    text-shadow:
        -1px -1px 2px #fff,
         1px -1px 2px #fff,
        -1px  1px 2px #fff,
         1px  1px 2px #fff;
}

.ap-boundary-label::before {
    display: none !important;
}

.ap-district-label {
    font-size: 9px !important;
    font-weight: 600 !important;
}


/* Andhra Pradesh map breadcrumbs */
.ap-map-wrapper {
    position: relative;
}

.ap-breadcrumbs {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    width: max-content;
    max-width: calc(100% - 24px);
    pointer-events: none;
}

.ap-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: none;
    border-radius: 18px;

    color: #fff;
    background: #4f46e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: auto;
}

.ap-breadcrumb-item.ap-breadcrumb-active {
    background: #e58a00;
}

.ap-breadcrumb-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.ap-breadcrumb-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .ap-breadcrumbs {
        top: 8px;
        gap: 4px;
    }

    .ap-breadcrumb-item {
        padding: 5px 8px;
        font-size: 11px;
    }
}



/* APSCCFC Land Asset Survey Modal */
#scAssetDetailsModal .modal-dialog {
    max-width: 1200px;
    width: calc(100% - 30px);
    margin: 20px auto;
}

#scAssetDetailsModal .sc-asset-modal-content {
    background: #f5f7fb;
    color: #1e293b;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#scAssetDetailsModal .sc-asset-modal-header {
    background: #155eef;
    color: #ffffff;
    padding: 20px 24px;
    border-bottom: none;
}

#scAssetDetailsModal .modal-title {
    color: #ffffff;
    font-weight: 700;
}

#scAssetDetailsModal .sc-asset-modal-header p {
    color: #eaf1ff;
    font-size: 13px;
    margin-top: 5px;
}

#scAssetDetailsModal .modal-body {
    background: #f5f7fb;
    padding: 24px;
    color: #1e293b;
}

#scAssetDetailsModal .sc-asset-record-info {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-left: 5px solid #155eef;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

#scAssetDetailsModal .sc-asset-record-info h5 {
    color: #172554;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

#scAssetDetailsModal .sc-asset-record-info p {
    color: #475569;
    margin-bottom: 0;
    font-size: 13px;
}

#scAssetDetailsModal .sc-survey-section {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

#scAssetDetailsModal .sc-survey-section-title {
    color: #155eef;
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

#scAssetDetailsModal .form-label {
    display: block;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

#scAssetDetailsModal .sc-survey-input {
    width: 100%;
    min-height: 42px;
    background: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 14px;
    box-shadow: none !important;
}

#scAssetDetailsModal .sc-survey-input:focus {
    border-color: #155eef !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12) !important;
}

#scAssetDetailsModal .modal-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

@media (max-width: 576px) {
    #scAssetDetailsModal .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    #scAssetDetailsModal .modal-body {
        padding: 12px;
    }

    #scAssetDetailsModal .sc-survey-section {
        padding: 14px;
    }
}

/* Administrative document and land photo upload fields */
.sc-admin-document-row .form-select,
.sc-admin-document-row .form-control,
.sc-asset-photo {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px;
    min-height: 42px;
    box-shadow: none;
}

/* File selector button */
.sc-admin-document-row input[type="file"]::file-selector-button,
.sc-asset-photo::file-selector-button {
    background-color: #f1f5f9;
    color: #334155;
    border: none;
    border-right: 1px solid #ced4da;
    padding: 10px 14px;
    margin: -1px 12px -1px -6px;
    cursor: pointer;
}

/* Focus state */
.sc-admin-document-row .form-select:focus,
.sc-admin-document-row .form-control:focus,
.sc-asset-photo:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    outline: none;
}

/* Space between upload sections */
.sc-admin-document-row {
    margin-bottom: 16px;
}

#scAddDocumentRow {
    border-radius: 8px;
    padding: 8px 14px;
}

/* Fix Section 7 - Administrative Documents */
.sc-document-type,
.sc-document-file {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    min-height: 42px;
    box-shadow: none !important;
}

/* Style the document file chooser */
.sc-document-file::file-selector-button {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: none !important;
    border-right: 1px solid #ced4da !important;
    padding: 10px 14px !important;
    margin: -1px 12px -1px -6px !important;
    cursor: pointer;
}

/* Document dropdown focus */
.sc-document-type:focus,
.sc-document-file:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    outline: none;
}

/* Document row spacing */
.sc-admin-document-row {
    margin-bottom: 16px;
}

/* =========================================
   ASSET DETAILS MODAL - LIGHT THEME
   Includes SWOT Analysis & Development Potential
========================================= */

/* Modal background */
.modal-content {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15) !important;
}

/* Modal header */
.modal-content .modal-header {
    background-color: #f8fafc !important;
    color: #1e3a5f !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Modal title */
.modal-content .modal-title {
    color: #1e3a5f !important;
    font-weight: 700;
}

/* Modal body */
.modal-content .modal-body {
    background-color: #ffffff !important;
    color: #334155 !important;
}

/* Modal footer */
.modal-content .modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Section cards inside the modal */
.modal-content .card,
.modal-content section {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* Section headings */
.modal-content .card-header {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border-bottom: 1px solid #dbeafe !important;
}

/* Labels and descriptions */
.modal-content label,
.modal-content .form-label,
.modal-content p,
.modal-content small,
.modal-content strong {
    color: #334155 !important;
}

/* Text inputs, dropdowns and textareas */
.modal-content input,
.modal-content select,
.modal-content textarea {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
}

/* Input placeholders */
.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* Focus state */
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    outline: none;
}

/* Dropdown options */
.modal-content select option {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* Buttons inside modal */
.modal-content .btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.modal-content .btn-secondary {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .modal-content .modal-body {
        padding: 14px !important;
    }
}



/* =========================================
   APSCCFC ASSET DETAILS - REFERENCE THEME
   Step 1: Modal shell and dark colours
========================================= */

#scAssetDetailsModal {
    padding: 0 !important;
}

#scAssetDetailsModal .modal-dialog {
    width: calc(100% - 32px) !important;
    max-width: 1600px !important;
    height: calc(100vh - 16px) !important;
    margin: 8px auto !important;
}

#scAssetDetailsModal .sc-asset-modal-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid #4b5563 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
}

/* Top title bar */

#scAssetDetailsModal .sc-asset-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px !important;
    background: #374151 !important;
    color: #f9fafb !important;
    border-bottom: 1px solid #4b5563 !important;
}

#scAssetDetailsModal .modal-title {
    color: #f9fafb !important;
    font-size: 18px;
    font-weight: 700;
}

#scAssetDetailsModal .sc-asset-modal-header p {
    color: #cbd5e1 !important;
    font-size: 12px;
    margin: 4px 0 0;
}

#scAssetDetailsModal .btn-close {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Scrollable content area */

#scAssetDetailsModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    padding: 20px !important;
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Asset identification card */

#scAssetDetailsModal .sc-asset-record-info {
    background: #263244 !important;
    border: 1px solid #374151 !important;
    border-left: 5px solid #3b82f6 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
}

#scAssetDetailsModal .sc-asset-record-info h5 {
    color: #f9fafb !important;
    font-size: 18px;
    font-weight: 700;
}

#scAssetDetailsModal .sc-asset-record-info p {
    color: #cbd5e1 !important;
}

/* Survey sections */

#scAssetDetailsModal .sc-survey-section {
    background: #263244 !important;
    border: 1px solid #374151 !important;
    border-radius: 9px !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
    box-shadow: none !important;
}

#scAssetDetailsModal .sc-survey-section-title {
    color: #60a5fa !important;
    border-bottom: 1px solid #374151 !important;
}

/* Labels */

#scAssetDetailsModal .form-label {
    color: #cbd5e1 !important;
}

/* Keep the existing white form fields readable */

#scAssetDetailsModal input,
#scAssetDetailsModal select,
#scAssetDetailsModal textarea {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #64748b !important;
}

/* Read-only fields */

#scAssetDetailsModal input[readonly],
#scAssetDetailsModal textarea[readonly] {
    background: #e5e7eb !important;
    color: #374151 !important;
    cursor: default;
}

/* Footer */

#scAssetDetailsModal .modal-footer {
    flex: 0 0 auto;
    padding: 12px 20px !important;
    background: #374151 !important;
    border-top: 1px solid #4b5563 !important;
}

/* Responsive layout */

@media (max-width: 768px) {
    #scAssetDetailsModal .modal-dialog {
        width: calc(100% - 12px) !important;
        height: calc(100vh - 12px) !important;
        margin: 6px auto !important;
    }

    #scAssetDetailsModal .modal-body {
        padding: 12px !important;
    }

    #scAssetDetailsModal .sc-survey-section {
        padding: 14px !important;
    }
}



/* =========================================
   ASSET DETAILS SIDEBAR AND TABS
========================================= */

#scAssetDetailsModal .sc-asset-workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#scAssetDetailsModal .sc-asset-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    flex: 1;
    min-height: 450px;
    gap: 20px;
}

/* Left navigation */

#scAssetDetailsModal .sc-asset-sidebar {
    background: #172131;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 14px 10px;
}

#scAssetDetailsModal .sc-asset-sidebar-heading {
    padding: 8px 10px 14px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

#scAssetDetailsModal .sc-asset-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 12px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#scAssetDetailsModal .sc-asset-tab i {
    width: 18px;
    text-align: center;
}

#scAssetDetailsModal .sc-asset-tab:hover {
    background: #283548;
    color: #ffffff;
}

#scAssetDetailsModal .sc-asset-tab.active {
    background: #2563eb;
    color: #ffffff;
}

/* Right panel */

#scAssetDetailsModal .sc-asset-tab-content {
    min-width: 0;
    overflow: hidden;
}

#scAssetDetailsModal .sc-asset-tab-panel {
    display: none;
    min-width: 0;
}

#scAssetDetailsModal .sc-asset-tab-panel.active {
    display: block;
    animation: scAssetFadeIn 0.18s ease;
}

@keyframes scAssetFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel heading */

#scAssetDetailsModal .sc-asset-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #374151;
}

#scAssetDetailsModal .sc-asset-panel-heading h5 {
    margin: 0 0 5px;
    color: #f9fafb;
    font-size: 18px;
    font-weight: 700;
}

#scAssetDetailsModal .sc-asset-panel-heading p {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
}

/* Image gallery */

#scAssetDetailsModal .sc-asset-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

#scAssetDetailsModal .sc-asset-image-card {
    overflow: hidden;
    border: 1px solid #374151;
    border-radius: 9px;
    background: #263244;
}

#scAssetDetailsModal .sc-asset-image-card img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    background: #111827;
}

#scAssetDetailsModal .sc-asset-image-caption {
    padding: 10px;
    color: #e5e7eb;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Empty states */

#scAssetDetailsModal .sc-asset-empty-state {
    grid-column: 1 / -1;
    padding: 55px 15px;
    border: 1px dashed #4b5563;
    border-radius: 9px;
    text-align: center;
    color: #9ca3af;
}

#scAssetDetailsModal .sc-asset-empty-state i {
    margin-bottom: 12px;
    font-size: 32px;
}

#scAssetDetailsModal .sc-asset-empty-state p {
    margin-bottom: 5px;
    color: #e5e7eb;
}

/* Documents table */

#scAssetDetailsModal .sc-asset-document-table {
    margin-top: 5px;
    color: #e5e7eb;
}

#scAssetDetailsModal .sc-asset-document-table th {
    padding: 12px;
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
    font-size: 12px;
}

#scAssetDetailsModal .sc-asset-document-table td {
    padding: 12px;
    background: #263244;
    color: #e5e7eb;
    border-color: #374151;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

/* Smaller screens */

@media (max-width: 768px) {
    #scAssetDetailsModal .sc-asset-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #scAssetDetailsModal .sc-asset-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px;
    }

    #scAssetDetailsModal .sc-asset-sidebar-heading {
        flex: 0 0 100%;
        padding: 5px 8px;
    }

    #scAssetDetailsModal .sc-asset-tab {
        flex: 1 1 auto;
        width: auto;
        justify-content: center;
        padding: 10px;
        margin: 0;
    }

    #scAssetDetailsModal .sc-asset-tab span {
        font-size: 11px;
    }
}


/* COMPACT LAND ASSET DETAILS MODAL */
#scAssetDetailsModal .modal-dialog {
max-width: 1200px;
height: calc(100vh - 30px);
margin: 15px auto;
}

#scAssetDetailsModal .modal-content {
height: 100%;
max-height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
}

#scAssetDetailsModal .modal-header {
flex-shrink: 0;
padding: 10px 18px;
}

#scAssetDetailsModal .modal-body,
#scAssetDetailsModal .sc-asset-workspace {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: 12px 16px;
}

#scAssetDetailsModal .sc-asset-layout {
min-height: 0;
height: 100%;
grid-template-columns: 190px minmax(0, 1fr);
gap: 12px;
}

#scAssetDetailsModal .sc-asset-sidebar {
position: sticky;
top: 0;
align-self: start;
padding: 10px 8px;
}

#scAssetDetailsModal .sc-asset-tab {
padding: 10px 9px;
font-size: 12px;
gap: 8px;
}

#scAssetDetailsModal .sc-asset-tab-content {
min-width: 0;
overflow-x: hidden;
overflow-y: visible;
}

/* Reduce spacing between asset detail sections */
#scAssetDetailsModal #scAssetDetailsBody {
font-size: 12px;
}

#scAssetDetailsModal #scAssetDetailsBody h1,
#scAssetDetailsModal #scAssetDetailsBody h2,
#scAssetDetailsModal #scAssetDetailsBody h3,
#scAssetDetailsModal #scAssetDetailsBody h4,
#scAssetDetailsModal #scAssetDetailsBody h5,
#scAssetDetailsModal #scAssetDetailsBody h6 {
margin-top: 8px;
margin-bottom: 8px;
font-size: 14px;
}

#scAssetDetailsModal #scAssetDetailsBody .row {
--bs-gutter-x: 12px;
--bs-gutter-y: 6px;
}

#scAssetDetailsModal #scAssetDetailsBody .mb-3 {
margin-bottom: 8px !important;
}

#scAssetDetailsModal #scAssetDetailsBody .mb-4 {
margin-bottom: 12px !important;
}

#scAssetDetailsModal #scAssetDetailsBody label,
#scAssetDetailsModal #scAssetDetailsBody .form-label {
margin-bottom: 3px;
font-size: 11px;
line-height: 1.3;
}

#scAssetDetailsModal #scAssetDetailsBody input.form-control,
#scAssetDetailsModal #scAssetDetailsBody select.form-select,
#scAssetDetailsModal #scAssetDetailsBody textarea.form-control {
min-height: 32px;
height: auto;
padding: 5px 9px;
font-size: 12px;
border-radius: 6px;
}

#scAssetDetailsModal #scAssetDetailsBody textarea.form-control {
min-height: 55px;
}

#scAssetDetailsModal #scAssetDetailsBody .card,
#scAssetDetailsModal #scAssetDetailsBody .card-body {
padding: 10px !important;
margin-bottom: 10px;
}

#scAssetDetailsModal .modal-footer {
flex-shrink: 0;
padding: 8px 14px;
}

@media (max-width: 768px) {
#scAssetDetailsModal .modal-dialog {
width: auto;
height: calc(100vh - 12px);
margin: 6px;
}


#scAssetDetailsModal .sc-asset-layout {
    grid-template-columns: 1fr;
    height: auto;
}

#scAssetDetailsModal .sc-asset-sidebar {
    position: static;
}


}


/* SHOW THREE FIELDS PER ROW IN ASSET DETAILS VIEW */
#scAssetDetailsModal #scAssetDetailsBody .row {
--bs-gutter-x: 10px;
--bs-gutter-y: 6px;
}

#scAssetDetailsModal #scAssetDetailsBody .row > [class*="col-"] {
flex: 0 0 33.333333%;
max-width: 33.333333%;
}

#scAssetDetailsModal #scAssetDetailsBody label,
#scAssetDetailsModal #scAssetDetailsBody .form-label {
font-size: 11px;
margin-bottom: 3px;
}

#scAssetDetailsModal #scAssetDetailsBody input.form-control,
#scAssetDetailsModal #scAssetDetailsBody select.form-select,
#scAssetDetailsModal #scAssetDetailsBody textarea.form-control {
width: 100%;
min-height: 30px;
padding: 4px 7px;
font-size: 11px;
}

@media (max-width: 768px) {
#scAssetDetailsModal #scAssetDetailsBody .row > [class*="col-"] {
flex: 0 0 50%;
max-width: 50%;
}
}

@media (max-width: 480px) {
#scAssetDetailsModal #scAssetDetailsBody .row > [class*="col-"] {
flex: 0 0 100%;
max-width: 100%;
}
}


/* Hide upload buttons by default */
#scAssetDetailsModal label[for="scAssetImageUpload"],
#scAssetDetailsModal label[for="scAssetDocumentUpload"] {
    display: none !important;
}

/* Show upload buttons only in Edit mode */
#scAssetDetailsModal.sc-asset-editing label[for="scAssetImageUpload"],
#scAssetDetailsModal.sc-asset-editing label[for="scAssetDocumentUpload"] {
    display: inline-block !important;
}


/* Separate Edit Asset Details popup */
#scAssetEditModal {
    z-index: 1060;
}

#scAssetEditModal .sc-edit-modal-content {
    background: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 12px;
}

#scAssetEditModal .sc-edit-modal-header {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border-bottom: 1px solid #4b5563;
}

#scAssetEditModal .sc-edit-modal-header .modal-title {
    font-size: 18px;
    font-weight: 700;
}

#scAssetEditModal .sc-edit-modal-header small {
    color: #e5e7eb;
}

#scAssetEditModal .modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

#scAssetEditModal .modal-footer {
    background: #1f2937;
    border-top: 1px solid #374151;
}

#scAssetEditModal #scAssetDetailsBody {
    width: 100%;
}


.asset-photo-gallery-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.asset-photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.asset-photo-item {
    width: 180px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.asset-photo-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}

.asset-photo-item p {
    margin-top: 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* =====================================
   LAND RECORD FILTER TOOLBAR
   Matching Website Theme
===================================== */

.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-height: 62px;
    padding: 10px 20px;

    background: linear-gradient(
        110deg,
        #171c2b,
        #20243a,
        #292044
    );

    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Filter heading */

.filter-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.filter-heading i {
    color: #a78bfa;
    font-size: 17px;
}

/* Filter dropdown group */

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
}

.filter-group label {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

/* Dropdown styling */

.filter-group .form-select {
    height: 36px;
    width: 100%;

    color: #ffffff;
    background-color: #252b3d;

    border: 1px solid #45415f;
    border-radius: 7px;

    font-size: 13px;
    box-shadow: none;
}

.filter-group .form-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Dropdown options */

.filter-group .form-select option {
    color: #ffffff;
    background-color: #252b3d;
}

/* Mobile responsive */

@media (max-width: 768px) {
    .filter-toolbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group .form-select {
        flex: 1;
        min-width: 0;
    }
}


/* ==========================================
   SEARCH DROPDOWN
========================================== */

#globalSearchDropdown {
    position: relative;
}

.global-search-panel {
    width: 380px;
    max-width: 90vw;
    margin-top: 10px !important;
    padding: 16px !important;

    background: #1b2029;
    border: 1px solid #343b48;
    border-radius: 10px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.global-search-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.global-search-heading i {
    color: #8daeff;
}

.global-search-input {
    height: 42px;
    background: #252c38;
    border: 1px solid #414b5c;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
}

.global-search-input::placeholder {
    color: #a5adba;
}

.global-search-input:focus {
    background: #252c38;
    color: #ffffff;
    border-color: #6d94e8;
    box-shadow: 0 0 0 2px rgba(109, 148, 232, 0.15);
}

.global-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.global-search-results:empty {
    display: none;
}

.global-search-results .list-group-item {
    background: #252c38;
    color: #e5e9f0;
    border: 1px solid #343d4c;
    font-size: 13px;
}

.global-search-results .list-group-item:hover {
    background: #323d50;
    color: #ffffff;
}


/* ==========================================
   SIDEBAR MENU SEARCH RESULTS
========================================== */

#sidebarMenuSearchResults {
    background: transparent;
    border: none;
    gap: 6px;
}

#sidebarMenuSearchResults .list-group-item {
    background: #1b2536 !important;
    color: #cbd5e1 !important;
    border: 1px solid #273449 !important;
    border-radius: 6px !important;
    padding: 9px 12px;
    font-size: 13px;
    transition: all 0.2s ease;
}

#sidebarMenuSearchResults .list-group-item:hover {
    background: #263c5a !important;
    color: #ffffff !important;
    border-color: #3b82d0 !important;
}

#sidebarMenuSearchResults .list-group-item:focus {
    background: #263c5a !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 208, 0.25);
}



/* =========================================
   DASHBOARD - FULL WIDTH GIS TABLE
========================================= */

#records {
    display: block !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

/* Keep the table inside the full-width section */
#records .card-body,
#records .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
}

/* Keep charts and map in their existing layout */
#mapViewSection {
    width: 100%;
}




/* =========================================
   VIEW / EDIT LAND - DARK DASHBOARD HEADER
========================================= */

#scAssetDetailsModal .modal-header {
    background: linear-gradient(
        90deg,
        #1f2937,
        #374151
    ) !important;

    color: #f9fafb !important;
    padding: 18px 24px !important;
    border: none !important;
    border-bottom: 2px solid #6366f1 !important;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#scAssetDetailsModal .modal-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#scAssetDetailsModal .modal-header .modal-title {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

#scAssetDetailsModal .modal-header small {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 400;
}

#scAssetDetailsModal .modal-header .btn-danger {
    background: #ef4444 !important;
    border: none !important;
    border-radius: 7px !important;
    width: 38px;
    height: 38px;
    font-size: 22px !important;
    color: #ffffff !important;
}

#scAssetDetailsModal .modal-header .btn-danger:hover {
    background: #dc2626 !important;
}




/* =========================================
   ASSET IMAGES & DOCUMENTS - TEXT FIX
========================================= */

/* Section heading */
#scAssetDetailsModal .sc-survey-section-title {
    color: #93c5fd !important;
    font-weight: 700 !important;
}

/* Text inside the section */
#scAssetDetailsModal .sc-survey-section {
    color: #e5e7eb !important;
}

/* Labels and descriptions */
#scAssetDetailsModal .sc-survey-section label,
#scAssetDetailsModal .sc-survey-section p,
#scAssetDetailsModal .sc-survey-section small {
    color: #d1d5db !important;
}

/* Input fields */
#scAssetDetailsModal .sc-survey-section input,
#scAssetDetailsModal .sc-survey-section select,
#scAssetDetailsModal .sc-survey-section textarea {
    background-color: #374151 !important;
    color: #ffffff !important;
    border: 1px solid #4b5563 !important;
}

/* Placeholder text */
#scAssetDetailsModal .sc-survey-section input::placeholder,
#scAssetDetailsModal .sc-survey-section textarea::placeholder {
    color: #9ca3af !important;
}



/* =========================================
   ASSET IMAGES & DOCUMENTS - HEADING DESIGN
========================================= */

#scAssetDetailsModal .sc-asset-panel-heading {
    background: #263244 !important;
    color: #f1f5f9 !important;

    padding: 16px 20px !important;
    border-bottom: 1px solid #475569 !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Main headings */
#scAssetDetailsModal .sc-asset-panel-heading h5 {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
}

/* Subtitle text */
#scAssetDetailsModal .sc-asset-panel-heading p {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    margin: 0 !important;
}



/* =========================================
   ADD LAND TEMPLATE - DASHBOARD THEME
========================================= */

/* Main modal */
#addModal .modal-content {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid #475569 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Modal header */
#addModal .new-asset-modal-header {
    background: linear-gradient(
        90deg,
        #1f2937,
        #374151
    ) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #6366f1 !important;
    padding: 18px 24px !important;
}

/* Header title */
#addModal .new-asset-title {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

/* Header subtitle */
#addModal .new-asset-subtitle {
    color: #cbd5e1 !important;
}

/* Header icon */
#addModal .new-asset-icon {
    background: #374151 !important;
    color: #93c5fd !important;
    border: 1px solid #64748b !important;
}

/* Modal body */
#addModal .modal-body {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 22px !important;
}

/* Individual form sections */
#addModal .asset-details-section {
    background: #263244 !important;
    border: 1px solid #475569 !important;
    border-radius: 9px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
}

/* Section heading */
#addModal .asset-details-section-title {
    background: #374151 !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Section heading icons */
#addModal .asset-details-section-title i {
    color: #93c5fd !important;
    margin-right: 8px;
}

/* Section content */
#addModal .asset-details-section-content {
    background: #263244 !important;
    color: #e5e7eb !important;
    padding: 20px !important;
}

/* Form labels */
#addModal .form-label {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    margin-bottom: 7px;
}

/* Text inputs and dropdowns */
#addModal .form-control,
#addModal .form-select {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
    border: 1px solid #64748b !important;
    border-radius: 6px !important;
}

/* Input placeholder */
#addModal .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Dropdown options */
#addModal .form-select option {
    background: #1f2937 !important;
    color: #ffffff !important;
}

/* Focus effect */
#addModal .form-control:focus,
#addModal .form-select:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

/* Disabled fields */
#addModal .form-control:disabled,
#addModal .form-select:disabled {
    background: #374151 !important;
    color: #9ca3af !important;
}

/* Modal footer */
#addModal .modal-footer {
    background: #374151 !important;
    border-top: 1px solid #475569 !important;
    padding: 14px 20px !important;
}

/* Header action buttons */
#addModal .header-action-btn {
    color: #ffffff !important;
    background: #374151 !important;
    border: 1px solid #64748b !important;
    border-radius: 7px !important;
}

#addModal .header-action-btn:hover {
    background: #4b5563 !important;
}



/* =========================================
   ADD LAND - FILE UPLOAD BUTTON DESIGN
========================================= */

#addModal input[type="file"] {
    background: #1f2937 !important;
    color: #cbd5e1 !important;
    border: 1px solid #475569 !important;
    border-radius: 7px !important;
    padding: 5px !important;
    height: 44px !important;
    font-size: 13px !important;
    width: 100%;
}

/* Choose File button */
#addModal input[type="file"]::file-selector-button {
    background: #374151 !important;
    color: #f8fafc !important;
    border: 1px solid #64748b !important;
    border-radius: 5px !important;
    padding: 7px 12px !important;
    margin-right: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Hover effect */
#addModal input[type="file"]::file-selector-button:hover {
    background: #4f46e5 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

/* File upload focus */
#addModal input[type="file"]:focus {
    outline: none;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}



/* =========================================
   EXPORT CSV MODAL - DASHBOARD THEME
========================================= */

#exportModal .modal-dialog {
    max-width: 620px;
}

#exportModal .modal-content {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid #475569 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

/* Header */

#exportModal .modal-header {
    background: linear-gradient(90deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
    padding: 18px 22px;
    border-bottom: 1px solid #6366f1 !important;
}

#exportModal .modal-title {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

#exportModal .modal-title i {
    font-size: 20px;
    color: #ddd6fe;
}

/* Body */

#exportModal .modal-body {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 24px !important;
}

#exportModal .form-label {
    display: block;
    color: #e5e7eb !important;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Search and district fields */

#exportModal .form-control,
#exportModal .form-select {
    min-height: 42px;
    background: #111827 !important;
    color: #f9fafb !important;
    border: 1px solid #4b5563 !important;
    border-radius: 7px !important;
    font-size: 13px;
    padding: 10px 12px;
}

#exportModal .form-control::placeholder {
    color: #9ca3af !important;
}

#exportModal .form-control:focus,
#exportModal .form-select:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

#exportModal .form-select option {
    background: #1f2937;
    color: #ffffff;
}

/* Export type options */

#exportModal .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #263244;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 12px 14px 12px 38px;
    margin-bottom: 9px;
    transition: 0.2s ease;
}

#exportModal .form-check:hover {
    background: #303d52;
    border-color: #818cf8;
}

#exportModal .form-check-input {
    background-color: #111827;
    border: 1px solid #64748b;
    cursor: pointer;
}

#exportModal .form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

#exportModal .form-check-label {
    color: #e5e7eb !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

/* Result count */

#exportModal #exportResultCount {
    background: #263244 !important;
    color: #c7d2fe !important;
    border: 1px solid #4f46e5 !important;
    border-left: 4px solid #818cf8 !important;
    border-radius: 8px;
    padding: 13px 15px;
    font-size: 12px;
    margin-top: 18px;
    margin-bottom: 0;
}

/* Search suggestions */

#exportModal #exportSearchSuggestions {
    background: #263244;
    border: 1px solid #475569;
    border-radius: 7px;
    margin-top: 5px;
    overflow: hidden;
}

#exportModal #exportSearchSuggestions .list-group-item {
    background: #263244;
    color: #e5e7eb;
    border-color: #475569;
    font-size: 12px;
}

#exportModal #exportSearchSuggestions .list-group-item:hover {
    background: #374151;
}

/* Footer */

#exportModal .modal-footer {
    background: #172131 !important;
    border-top: 1px solid #374151 !important;
    padding: 14px 22px;
}

/* Cancel button */

#exportModal .btn-secondary {
    background: #374151 !important;
    color: #e5e7eb !important;
    border: 1px solid #64748b !important;
    border-radius: 7px;
    padding: 9px 18px;
}

#exportModal .btn-secondary:hover {
    background: #4b5563 !important;
}

/* Export button */

#exportModal #confirmExportBtn {
    background: linear-gradient(90deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 7px;
    padding: 9px 20px;
    font-weight: 600;
    transition: 0.2s ease;
}

#exportModal #confirmExportBtn:hover {
    background: linear-gradient(90deg, #4338ca, #6d28d9) !important;
    transform: translateY(-1px);
}

/* Mobile layout */

@media (max-width: 576px) {
    #exportModal .modal-dialog {
        margin: 10px;
    }

    #exportModal .modal-body {
        padding: 16px !important;
    }

    #exportModal .modal-header {
        padding: 14px 16px;
    }

    #exportModal .modal-footer {
        padding: 12px 16px;
    }
}



/* =========================================
   EXPORT TYPE - CLEAR SELECTED STATE
========================================= */

/* Default option */
#exportModal .form-check {
    background: #263244 !important;
    border: 1px solid #475569 !important;
    border-radius: 8px;
    padding: 13px 14px 13px 40px;
    margin-bottom: 9px;
    transition: all 0.2s ease;
}

/* Selected option */
#exportModal .form-check:has(.form-check-input:checked) {
    background: rgba(99, 102, 241, 0.18) !important;
    border: 1px solid #818cf8 !important;
    border-left: 4px solid #818cf8 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

/* Radio button */
#exportModal .form-check-input {
    width: 16px;
    height: 16px;
    margin-left: -26px;
    margin-top: 2px;
    background-color: #111827 !important;
    border: 2px solid #9ca3af !important;
    cursor: pointer;
    box-shadow: none !important;
}

/* Checked radio button */
#exportModal .form-check-input:checked {
    background-color: #6366f1 !important;
    border-color: #a5b4fc !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22) !important;
}

/* Selected option text */
#exportModal .form-check-input:checked + .form-check-label {
    color: #c4b5fd !important;
    font-weight: 700 !important;
}

/* Hover */
#exportModal .form-check:hover {
    border-color: #818cf8 !important;
    cursor: pointer;
}
