@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #f4a460;
    --secondary-color: #fad932;
    --accent-color: #ff6b35;
    --dark-color: #2c2c2c;
    --light-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #f4a460 0%, #fad932 100%);
    --gradient-dark: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dark mode variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color-dark: #e0e0e0;
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-content {
    padding-top: 300px;
    min-height: 100vh;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

h1 {
    margin-top: 130px;
    font-size: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Map Section */
.map-section {
    background: #fff;
}

.map-wrapper {
    position: relative;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #e5e3df;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    width: 45px;
    height: 45px;
    background: var(--light-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    color: var(--text-dark);
    font-size: 1.1rem;
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.map-control-btn:active {
    transform: scale(0.95);
}

.map-control-btn i {
    pointer-events: none;
}

/* Fullscreen Styles */
.map-wrapper.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

.map-wrapper.fullscreen #map {
    height: 100vh !important;
}

.map-wrapper.fullscreen ~ .adopter-sidebar {
    display: none;
}

/* Map Loading */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.map-loading.hidden {
    display: none;
}

.map-loading p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.map-legend h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-item i {
    font-size: 1.2rem;
}

/* Adopter Sidebar */
.adopter-sidebar {
    background: #f8f9fa;
    height: calc(100vh - 200px);
    min-height: 600px;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

/* Search Container */
.search-container {
    padding: 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-container .input-group-text {
    background: var(--light-color);
    border-right: none;
    color: var(--text-light);
}

.search-container .form-control {
    border-left: none;
    padding-left: 0;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* BRITE Center Section */
.brite-center-section {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid #dee2e6;
}

.btn-brite-center {
    width: 100%;
    background: #f4a460;
    border: none;
    color: black;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.3);
}

.btn-brite-center:hover {
    transform: translateY(-2px);
    background: #e67e22;
    color: white;
}

/* Adopters List */
.adopters-list {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    min-height: 200px;
}

/* Adopter Card */
.adopter-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adopter-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.adopter-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.1) 0%, rgba(250, 217, 50, 0.1) 100%);
    box-shadow: var(--shadow-medium);
}

.adopter-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.adopter-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(244, 164, 96, 0.3);
}

.adopter-icon i {
    font-size: 1.5rem;
    color: var(--light-color);
}

.adopter-info {
    flex: 1;
}

.adopter-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.adopter-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.adopter-address i {
    margin-top: 3px;
    flex-shrink: 0;
}

.adopter-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}
.adopter-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view-map {
    flex: 1;
    background: #fffefe;
    border: none;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-map:hover {
    transform: translateY(-2px);
    background: #e67e22;
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-results i {
    color: var(--primary-color);
    opacity: 0.5;
}

.no-results h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Custom Marker Styles */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.custom-marker:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.popup-content {
    padding: 1.25rem;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.popup-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-icon i {
    font-size: 1.3rem;
    color: var(--light-color);
}

.popup-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.popup-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.popup-address i {
    margin-top: 3px;
}

.popup-description {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.leaflet-popup-tip {
    box-shadow: var(--shadow-light);
}

/* Scrollbar Styling */
.adopter-sidebar::-webkit-scrollbar {
    width: 8px;
}

.adopter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.adopter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.adopter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stats-badge {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .map-wrapper {
        height: 500px;
        min-height: 400px;
    }

    .adopter-sidebar {
        height: auto;
        min-height: 400px;
        max-height: 600px;
    }

    .map-controls {
        top: 10px;
        right: 10px;
    }

    .map-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .map-legend {
        bottom: 10px;
        left: 10px;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .stats-badge {
        display: block;
        text-align: center;
    }

    .map-wrapper {
        height: 400px;
        min-height: 350px;
    }

    .map-controls {
        flex-direction: row;
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        justify-content: center;
        gap: 8px;
    }

    .map-legend {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .adopter-card {
        padding: 1rem;
    }

    .adopter-icon {
        width: 45px;
        height: 45px;
    }

    .adopter-icon i {
        font-size: 1.3rem;
    }

    .adopter-name {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }

    .map-controls {
        gap: 6px;
    }

    .map-control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .search-container {
        padding: 1rem;
    }

    .adopter-card-header {
        gap: 0.75rem;
    }

    .popup-content {
        padding: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adopter-card {
    animation: fadeIn 0.3s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .adopter-sidebar,
    .map-controls {
        display: none !important;
    }

    .map-wrapper {
        height: 100vh !important;
    }
}

/* Notification Styles - Top Center */
.map-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid #f4a460;
}

.map-notification.success {
    border-left-color: #28a745;
}

.map-notification.success i {
    color: #28a745;
}

.map-notification.error {
    border-left-color: #dc3545;
}

.map-notification.error i {
    color: #dc3545;
}

.map-notification.info {
    border-left-color: var(--primary-color);
}

.map-notification.info i {
    color: var(--primary-color);
}

.map-notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.map-notification span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-dark);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Fix z-index for map controls to prevent overlap with navbar */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999; /* Changed from 1000 to prevent navbar overlap */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ensure map stays below navbar */
#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom marker for adopters - different from BRITE Center */
.adopter-marker i {
    color: var(--primary-color);
}

/* Map Legend - Update to reflect BRITE Center */
.map-legend .legend-item i {
    color: var(--primary-color);
}

/* Layer Control Styles */
.layer-control {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-width: 140px;
    font-family: 'Poppins', sans-serif;
}

.layer-control-header {
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.layer-control-body {
    padding: 0.5rem;
}

.layer-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.layer-btn:last-child {
    margin-bottom: 0;
}

.layer-btn:hover {
    background: rgba(244, 164, 96, 0.1);
    color: var(--primary-color);
    transform: translateX(2px);
}

.layer-btn.active {
    background: var(--gradient-primary);
    color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(244, 164, 96, 0.3);
}

.layer-btn i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.layer-btn span {
    flex: 1;
}

/* Adjust map controls position to avoid overlap with layer control */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px; /* Back to original position */
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive adjustments for layer control */
@media (max-width: 991px) {
    .layer-control {
        min-width: 120px;
    }
    
    .layer-control-header {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .layer-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .map-controls {
        position: absolute;
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        flex-direction: row;
        justify-content: center;
        z-index: 999;
    }
    
    .layer-control {
        min-width: 110px;
    }
}

@media (max-width: 576px) {
    .layer-control {
        min-width: 100px;
    }
    
    .layer-btn span {
        display: none; /* Hide text on very small screens, show only icons */
    }
    
    .layer-btn {
        justify-content: center;
        padding: 0.5rem;
    }
}

/* Animate on Scroll Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Dark mode styles */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color-dark: #3a3a3a;
    --navbar-bg: #2a2a2a;
    --navbar-text: #e0e0e0;
    --footer-bg: #2a2a2a;
    --footer-text: #e0e0e0;
    
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

/* Dark mode specific styles */
body.dark-mode .navbar {
    background: var(--navbar-bg) !important;
    border-bottom-color: var(--border-color-dark) !important;
}

body.dark-mode .navbar-brand img {
    filter: brightness(1.2);
}

body.dark-mode .nav-link {
    color: var(--navbar-text) !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--primary-color) !important;
}

body.dark-mode .dropdown-menu {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color-dark) !important;
}

body.dark-mode .dropdown-item {
    color: var(--text-primary) !important;
}

body.dark-mode .dropdown-item:hover {
    background: var(--bg-card) !important;
    color: var(--primary-color) !important;
}

body.dark-mode .text-muted {
    color: var(--text-secondary) !important;
}

body.dark-mode .map-section {
    background: var(--bg-card);
}

body.dark-mode .map-wrapper {
    background: #2a2a2a;
}

body.dark-mode .map-control-btn {
    background: var(--bg-card);
    border-color: var(--border-color-dark);
    color: var(--text-primary);
}

body.dark-mode .map-control-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

body.dark-mode .map-loading {
    background: rgba(26, 26, 26, 0.95);
    color: var(--text-primary);
}

body.dark-mode .map-loading p {
    color: var(--text-primary);
}

body.dark-mode .map-legend {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border-color-dark);
}

body.dark-mode .map-legend h6 {
    color: var(--text-primary);
}

body.dark-mode .legend-item {
    color: var(--text-secondary);
}

body.dark-mode .adopter-sidebar {
    background: var(--bg-card);
    border-left-color: var(--border-color-dark);
}

body.dark-mode .search-container {
    background: var(--bg-card);
    border-bottom-color: var(--border-color-dark);
}

body.dark-mode .search-container .input-group-text {
    background: var(--bg-card);
    border-right: none;
    color: var(--text-secondary);
    border: 1px solid #000000 !important;
    border-right: none !important;
}

body.dark-mode .search-container .form-control {
    background: var(--bg-primary);
    border-color: var(--border-color-dark);
    color: var(--text-primary);
}

body.dark-mode .search-container .form-control::placeholder {
    color: var(--text-secondary);
}

body.dark-mode .brite-center-section {
    background: var(--bg-card);
    border-bottom-color: var(--border-color-dark);
}

body.dark-mode .adopters-list {
    background: var(--bg-card);
}

body.dark-mode .adopter-card {
    background: var(--bg-card);
    border-color: var(--border-color-dark);
    color: var(--text-primary);
}

body.dark-mode .adopter-card:hover {
    border-color: var(--primary-color);
}

body.dark-mode .adopter-card.active {
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.2) 0%, rgba(250, 217, 50, 0.2) 100%);
}

body.dark-mode .leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
}

body.dark-mode .popup-header {
    border-bottom-color: var(--border-color-dark);
}

body.dark-mode .no-results {
    color: var(--text-secondary);
}

body.dark-mode .map-notification {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

body.dark-mode .map-notification.success {
    border-left-color: #28a745;
}

body.dark-mode .map-notification.success i {
    color: #28a745;
}

body.dark-mode .map-notification.error {
    border-left-color: #dc3545;
}

body.dark-mode .map-notification.error i {
    color: #dc3545;
}

body.dark-mode .map-notification.info {
    border-left-color: var(--primary-color);
}

body.dark-mode .map-notification.info i {
    color: var(--primary-color);
}

body.dark-mode .layer-control {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border-color-dark);
}

body.dark-mode .layer-control-header {
    background: var(--gradient-primary);
    color: var(--dark-color);
}

body.dark-mode .layer-btn {
    color: var(--text-primary);
}

body.dark-mode .layer-btn:hover {
    background: rgba(244, 164, 96, 0.2);
    color: var(--primary-color);
}

body.dark-mode .layer-btn.active {
    background: var(--gradient-primary);
    color: var(--dark-color);
}

body.dark-mode .adopter-sidebar::-webkit-scrollbar-track {
    background: var(--bg-card);
}

body.dark-mode .adopter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

body.dark-mode .adopter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body.dark-mode .btn-view-map {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color-dark) !important;
}

body.dark-mode .btn-view-map:hover {
    background: var(--primary-color) !important;
    color: var(--light-color) !important;
}

/* Dark mode toggle button in navbar */
.dark-mode-nav-toggle {
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(251, 191, 36, 0.1) !important;
    border: 2px solid #fbbf24 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
}

.dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    transform: scale(1.1) !important;
}

.dark-mode-nav-toggle i {
    font-size: 1.1rem !important;
    color: #fbbf24 !important;
    transition: var(--transition) !important;
}

body.dark-mode .dark-mode-nav-toggle {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: #fbbf24 !important;
}

body.dark-mode .dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
}

body.dark-mode .dark-mode-nav-toggle i {
    color: #fbbf24 !important;
}
