/* === Dark Mode Styles === */
[data-bs-theme="dark"] {
    --np-bg-light: #1a1a2e;
    --np-text-dark: #e2e8f0;
    --np-border: #2d3748;
}

[data-bs-theme="dark"] body {
    background-color: #1a1a2e;
    color: #e2e8f0;
}

/* Navbar & Footer */
[data-bs-theme="dark"] .np-navbar { background-color: #0f0f23; }
[data-bs-theme="dark"] .np-user-navbar { background-color: #1a1a2e !important; border-color: #2d2d44 !important; }
[data-bs-theme="dark"] .np-user-navbar .nav-link-sm { color: #c9d1d9; }
[data-bs-theme="dark"] .np-user-navbar .nav-link-sm:hover { background-color: #2d2d44; color: #fff; }
[data-bs-theme="dark"] .np-user-navbar .nav-link-sm.active { background-color: var(--np-primary) !important; }
[data-bs-theme="dark"] .np-footer { background-color: #0f0f23; }

/* Cards - force dark bg on card, header, and body */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .np-card,
[data-bs-theme="dark"] .card .card-header,
[data-bs-theme="dark"] .card .card-body,
[data-bs-theme="dark"] .card .card-footer {
    background-color: #16213e !important;
    border-color: #2d3748;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .np-card { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .np-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* Result value cards */
[data-bs-theme="dark"] .result-value-card {
    background-color: #16213e;
}
[data-bs-theme="dark"] .result-value-card .value-label { color: #a0aec0; }

/* Stat cards */
[data-bs-theme="dark"] .stat-card {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
    border: 1px solid #2d3748;
}

/* Section headings */
[data-bs-theme="dark"] .section-title { color: #8ab4f8; }
[data-bs-theme="dark"] .section-subtitle { color: #a0aec0; }

/* Forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #16213e;
    border-color: #2d3748;
    color: #e2e8f0;
}

/* Tables */
[data-bs-theme="dark"] .table {
    color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.05);
}

/* Badges */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Upload zone */
[data-bs-theme="dark"] .upload-zone {
    border-color: #2d3748;
    background-color: #16213e;
}
[data-bs-theme="dark"] .upload-zone:hover,
[data-bs-theme="dark"] .upload-zone.dragover {
    border-color: var(--np-secondary);
    background-color: rgba(56, 168, 157, 0.1);
}

/* Guest banner */
[data-bs-theme="dark"] .guest-banner {
    background-color: rgba(212, 160, 23, 0.05);
    border-color: #2d3748;
}
[data-bs-theme="dark"] .guest-banner a { color: #8ab4f8; }

/* Wizard stepper */
[data-bs-theme="dark"] .wizard-step-label { color: #6c757d; }
[data-bs-theme="dark"] .wizard-step.active .wizard-step-label,
[data-bs-theme="dark"] .wizard-step.completed .wizard-step-label { color: #e2e8f0; }

/* Hero section */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
}

/* bg-body override */
[data-bs-theme="dark"] .bg-body {
    background-color: #1a1a2e !important;
}

/* Alert info */
[data-bs-theme="dark"] .alert-info {
    background-color: rgba(56, 168, 157, 0.15);
    border-color: #2d3748;
    color: #e2e8f0;
}

/* Dark mode toggle icon */
[data-bs-theme="dark"] #darkModeToggle i::before {
    content: "\F5A2"; /* bi-sun-fill */
}

/* Suggestion dropdown (address autocomplete) */
[data-bs-theme="dark"] #addressSuggestions {
    background-color: #16213e !important;
    border-color: #2d3748 !important;
}
[data-bs-theme="dark"] .suggestion-item {
    color: #e2e8f0;
    border-color: #2d3748 !important;
}
[data-bs-theme="dark"] .suggestion-item:hover {
    background-color: #1a1a2e;
}

/* Admin detail labels */
[data-bs-theme="dark"] .detail-label { color: #a0aec0; }

/* Marketplace */
[data-bs-theme="dark"] .marketplace-card-placeholder {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}
[data-bs-theme="dark"] .favorite-btn {
    background: rgba(0,0,0,0.6);
}
[data-bs-theme="dark"] .marketplace-gallery-thumb {
    border: 1px solid #2d3748;
}
[data-bs-theme="dark"] .pagination .page-link {
    background-color: #16213e;
    border-color: #2d3748;
    color: #8ab4f8;
}
[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--np-primary);
    border-color: var(--np-primary);
    color: #fff;
}

/* Modal */
[data-bs-theme="dark"] .modal-content {
    background-color: #16213e;
    border-color: #2d3748;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .modal-header {
    border-color: #2d3748;
}
[data-bs-theme="dark"] .modal-footer {
    border-color: #2d3748;
}
[data-bs-theme="dark"] .breadcrumb-item a {
    color: #8ab4f8;
}
[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #a0aec0;
}

/* Property Edit */
[data-bs-theme="dark"] .upload-zone {
    border-color: #4a5568;
    background-color: #1a202c;
}
[data-bs-theme="dark"] .upload-zone:hover,
[data-bs-theme="dark"] .upload-zone-active {
    border-color: #38a89d;
    background-color: rgba(56, 168, 157, 0.1);
}
[data-bs-theme="dark"] .doc-card .card {
    background-color: #16213e !important;
    border-color: #2d3748;
}
[data-bs-theme="dark"] .doc-card .card-footer {
    background-color: #1a202c !important;
    border-color: #2d3748;
}
[data-bs-theme="dark"] #editAccordion .accordion-item {
    background-color: #16213e !important;
    border-color: #2d3748;
}
[data-bs-theme="dark"] #editAccordion .accordion-button {
    background-color: #16213e;
    color: #e2e8f0;
}
[data-bs-theme="dark"] #editAccordion .accordion-button:not(.collapsed) {
    background-color: #1a365d;
    color: #8ab4f8;
}
[data-bs-theme="dark"] #editAccordion .accordion-body {
    background-color: #16213e;
}
