/* assets/css/style.css */
/* Premium Bilingual Heritage Theme supporting Light & Dark Modes */

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

/* Base Configuration & Light Mode Variables */
:root {
    --bg-primary: #f8fafc;     /* Light off-white slate */
    --bg-secondary: #ffffff;   /* Pure white card panel */
    --bg-tertiary: #f1f5f9;    /* Soft grey */
    --border-color: #cbd5e1;   /* Slate border */
    
    --brand-navy: #0f172a;     /* Deep brand navy */
    --brand-blue: #1d4ed8;     /* Royal blue */
    --brand-gold: #b45309;     /* Warm bronze gold */
    --brand-gold-dim: #d97706; /* Gold accent */
    --text-primary: #0f172a;   /* Deep slate text */
    --text-secondary: #475569; /* Medium slate text */
    --text-muted: #94a3b8;     /* Muted slate text */
    
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --shadow-glow: rgba(180, 83, 9, 0.08);
    --focus-ring-color: rgba(180, 83, 9, 0.15);
    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides (Sacred Midnight Archive - 100% Aligned with Google Stitch Design) */
[data-theme="dark"] {
    --bg-primary: #0f131d;     /* Deep midnight navy base */
    --bg-secondary: #111827;   /* Charcoal card background */
    --bg-tertiary: #1c1f2a;    /* Lighter midnight container background */
    --border-color: #1e293b;   /* Midnight border */
    
    --brand-navy: #0a0e18;     /* Solid pure dark navy */
    --brand-blue: #3b82f6;     /* Heritage blue */
    --brand-gold: #d97706;     /* Bright golden bronze */
    --brand-gold-dim: #ffb77d; /* Luminous soft glowing gold */
    --text-primary: #dfe2f1;   /* Silver text */
    --text-secondary: #94a3b8; /* Soft grey text */
    --text-muted: #64748b;     /* Muted slate text */
    
    --input-bg: #1c1f2a;       /* Dark slate inputs */
    --input-border: #1e293b;   /* Slate border */
    --input-text: #dfe2f1;     /* White typing text */
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    
    --shadow-glow: rgba(217, 119, 6, 0.15);
    --focus-ring-color: rgba(217, 119, 6, 0.18);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* Solid White/Charcoal Heritage Cards with tactile depth */
.glass-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px !important;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-gold) !important;
    box-shadow: var(--shadow-lg), 0 12px 24px -10px var(--shadow-glow) !important;
}

/* Form Styles matching the screenshot */
.form-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

.form-label.text-warning {
    color: var(--brand-gold) !important; /* Elegant copper/amber gold! */
}

.form-control, .form-select {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--input-text) !important;
    border-radius: 50px !important; /* Pill-shaped inputs matching Stitch! */
    padding: 10px 20px !important;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.65;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 4px var(--focus-ring-color) !important;
    outline: none;
}

/* Form switch overrides */
.form-check-input {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
}

/* Navbar overrides */
.navbar-custom {
    background-color: var(--brand-navy) !important;
    border-bottom: 1.5px solid var(--border-color); /* Thin-line separator strategy */
    padding: 14px 0;
    transition: var(--transition-smooth);
}

.navbar-brand-custom {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-custom {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* English | Nepali Side-by-Side Language Switcher Pill */
.lang-selector-pill {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
}

.lang-pill {
    color: #cbd5e1 !important;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.lang-pill:hover {
    color: #ffffff !important;
}

.lang-pill.active {
    background-color: var(--brand-gold);
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.3);
}

/* Theme selector pill styles */
.theme-selector-pill {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.theme-selector-pill:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Premium Buttons with dynamic linear-gradient fills and pill-shape */
.btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 50px !important;
    padding: 12px 32px;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.btn-premium {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 50px !important;
    padding: 10px 28px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
}

/* D3 Tree Container (Light / Dark themed canvas) */
#tree-container {
    width: 100%;
    height: calc(100vh - 200px); /* Stretches to the full remaining screen height! */
    min-height: 550px;
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%) !important;
    background-image: none !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

[data-theme="dark"] #tree-container {
    background: radial-gradient(circle, #0b1528 0%, #030712 100%) !important;
    background-image: none !important;
}

@media (max-width: 768px) {
    #tree-container {
        height: calc(100vh - 180px);
        min-height: 480px;
    }
}

/* Floating Dashboard Control Bar (Unified Full-Width Header Style!) */
.tree-control-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    padding: 12px 20px !important;
    border-radius: 16px 16px 0 0 !important; /* Blends perfectly with container top rounded corners */
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .tree-control-bar {
    background-color: rgba(17, 24, 39, 0.95) !important;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* D3 Vector Graphics nodes styling with premium hover scaling */
.node {
    cursor: pointer;
}

.node rect {
    cursor: pointer;
    stroke-width: 1.5px;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.05));
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke-width 0.25s, fill 0.25s, stroke 0.25s;
}

.node:hover rect {
    transform: scale(1.04) translateY(-1.5px);
    stroke-width: 2.2px !important;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}

/* Theme responsive node fills with modern curated hex codes */
.node.male rect {
    fill: rgba(239, 246, 255, 0.95);
    stroke: rgba(59, 130, 246, 0.5);
}
.node.female rect {
    fill: rgba(255, 241, 242, 0.95);
    stroke: rgba(236, 72, 153, 0.5);
}
.node.deceased rect {
    fill: rgba(241, 245, 249, 0.95);
    stroke: rgba(148, 163, 184, 0.5);
}

.node.male .gender-dot {
    fill: #3b82f6;
}
.node.female .gender-dot {
    fill: #ec4899;
}
.node.deceased .gender-dot {
    fill: #94a3b8;
}

[data-theme="dark"] .node.male rect {
    fill: rgba(15, 23, 42, 0.85);
    stroke: rgba(59, 130, 246, 0.55);
}
[data-theme="dark"] .node.female rect {
    fill: rgba(49, 18, 33, 0.85);
    stroke: rgba(236, 72, 153, 0.55);
}
[data-theme="dark"] .node.deceased rect {
    fill: rgba(31, 41, 55, 0.9);
    stroke: rgba(75, 85, 99, 0.55);
}

[data-theme="dark"] .node.male .gender-dot {
    fill: #60a5fa;
}
[data-theme="dark"] .node.female .gender-dot {
    fill: #f472b6;
}
[data-theme="dark"] .node.deceased .gender-dot {
    fill: #64748b;
}

.node.focused rect {
    stroke: #f59e0b !important;
    stroke-width: 2.2px !important;
    filter: drop-shadow(0px 0px 8px rgba(245, 158, 11, 0.85)) !important;
}

.node text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11.8px;
    fill: var(--text-primary) !important;
    pointer-events: none;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .node text {
    fill: #ffffff !important;
}

.link {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2px;
    opacity: 0.25;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .link {
    stroke: #475569;
    opacity: 0.35;
}

.link.lineage-active {
    stroke: #f59e0b;
    stroke-width: 3.5px;
    opacity: 1;
    filter: drop-shadow(0px 0px 5px rgba(245, 158, 11, 0.65));
}

.link.spouse-link {
    stroke: var(--brand-gold);
    stroke-width: 2px;
    stroke-dasharray: 4;
}

/* Fully Responsive detail drawer panel overlays */
.tree-info-panel {
    position: absolute;
    z-index: 100;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    transition: var(--transition-smooth);
}

/* Desktop drawer floating card layout */
@media (min-width: 769px) {
    .tree-info-panel {
        position: fixed !important;
        top: 90px !important;
        right: 30px !important;
        width: 330px;
        border-radius: 12px;
    }
}

/* Mobile bottom drawer sheet layout */
@media (max-width: 768px) {
    .tree-info-panel {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }
}

/* Standalone Floating Search Pill (Floats Top-Left) */
#floating-search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 15;
    width: 320px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

[data-theme="dark"] #floating-search-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

#floating-search-container:focus-within {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(180, 83, 9, 0.25), var(--shadow-lg);
    transform: translateY(-1px);
}

#floating-search-container .input-group {
    border: none !important;
    background: transparent !important;
}

#floating-search-container .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--brand-gold) !important;
    padding-left: 16px;
    font-size: 0.95rem;
}

#floating-search-container input {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 8px 16px 8px 8px !important;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 50px !important;
}

#floating-search-container input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Standalone Compact Controls Toolbar FAB stack (Floats Bottom-Right) */
#floating-controls-toolbar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-fab {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    color: var(--text-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition-smooth) !important;
    padding: 0 !important;
}

[data-theme="dark"] .btn-fab {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(217, 119, 6, 0.45) !important; /* Glowing gold/amber border for visibility */
    color: var(--brand-gold) !important; /* Glowing gold icon */
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .btn-fab i {
    color: var(--brand-gold) !important;
}

.btn-fab:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--brand-gold) !important;
    color: var(--brand-gold) !important;
    box-shadow: 0 6px 15px rgba(180, 83, 9, 0.25), var(--shadow-md) !important;
}

[data-theme="dark"] .btn-fab:hover {
    background: rgba(217, 119, 6, 0.1) !important;
    border-color: var(--brand-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5), var(--shadow-md) !important;
}

[data-theme="dark"] .btn-fab:hover i {
    color: #ffffff !important;
}

.btn-fab:active {
    transform: translateY(0) scale(0.95);
}

/* Search autocomplete results box styling (Comfortable & Sleek layout) */
#tree_search_suggestions {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 6px !important;
    margin-top: 10px;
    z-index: 9999 !important;
    width: 100% !important; /* Matches floating search pill width exactly */
    max-height: 280px;
    overflow-y: auto;
    left: 0;
    transition: var(--transition-smooth);
}

[data-theme="dark"] #tree_search_suggestions {
    background-color: rgba(17, 24, 39, 0.85) !important;
    border: 1px solid rgba(30, 41, 59, 0.8) !important;
}

#tree_search_suggestions button {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 3px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100%;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

#tree_search_suggestions button:last-child {
    margin-bottom: 0 !important;
}

#tree_search_suggestions button:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--brand-gold) !important;
}

/* Table overrides responding to theme */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table th {
    background-color: var(--bg-tertiary) !important;
    color: var(--brand-gold) !important;
    font-weight: 700;
}

.table td {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: var(--bg-primary) !important;
}

.table-hover tbody tr:hover td {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Footer styles */
.footer {
    background-color: var(--brand-navy) !important;
    border-top: 1px solid var(--border-color);
    color: #94a3b8 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focused sibling nodes highlighting (amber/gold dashed border) */
.node.sibling-node rect {
    fill: #fef3c7 !important;
    stroke: #d97706 !important;
    stroke-dasharray: 4,4 !important;
    stroke-width: 2px !important;
}

[data-theme="dark"] .node.sibling-node rect {
    fill: #451a03 !important;
    stroke: #f59e0b !important;
    stroke-dasharray: 4,4 !important;
    stroke-width: 2px !important;
}

/* Fullscreen Viewport Canvas Styling */
#tree-viewport:fullscreen {
    background-color: var(--bg-primary) !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#tree-viewport:fullscreen #tree-container {
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

#tree-viewport:fullscreen .tree-info-panel {
    z-index: 9999;
}

/* Search autocomplete list for registration and forms */
#autocomplete_list {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 6px !important;
    margin-top: 8px;
    z-index: 9999 !important;
    transition: var(--transition-smooth);
}

#autocomplete_list button {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 3px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

#autocomplete_list button:last-child {
    margin-bottom: 0 !important;
}

#autocomplete_list button:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--brand-gold) !important;
}

/* High-contrast visibility for Member Profile detailed drawer panel in dark theme */
[data-theme="dark"] .tree-info-panel,
[data-theme="dark"] #info_panel_body {
    color: #f8fafc !important; /* Extremely high contrast light slate */
}

[data-theme="dark"] #info_panel_body strong {
    color: var(--brand-gold) !important; /* Deep glowing gold/amber for field labels */
}

[data-theme="dark"] #info_panel_body span, 
[data-theme="dark"] #info_panel_body a, 
[data-theme="dark"] #info_panel_body p {
    color: #f8fafc !important; /* Perfect high-contrast text color for all paragraphs/values */
}

[data-theme="dark"] #info_panel_body .text-secondary,
[data-theme="dark"] #info_panel_body .text-muted {
    color: #cbd5e1 !important; /* Elevate faint secondary text to highly legible slate */
}

/* Global High-Contrast Visibility Overrides for Forms and Utilities in Dark Theme */
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .form-label.text-secondary,
[data-theme="dark"] .form-check-input-label.text-secondary,
[data-theme="dark"] .form-check-label {
    color: #94a3b8 !important; /* Premium legible soft slate gray */
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] small.text-muted,
[data-theme="dark"] .form-label.text-muted,
[data-theme="dark"] .text-secondary small {
    color: #cbd5e1 !important; /* Enhance muted texts to a much brighter slate-grey */
}

[data-theme="dark"] .form-label,
[data-theme="dark"] label {
    color: #e2e8f0 !important; /* Crisp slate white labels for all forms */
}

[data-theme="dark"] .form-label.text-warning,
[data-theme="dark"] label.text-warning,
[data-theme="dark"] .text-warning {
    color: #f59e0b !important; /* High contrast amber yellow */
}

[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(1) brightness(2); /* Make Close buttons white and highly visible */
}

[data-theme="dark"] .modal-content {
    background-color: #111827 !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .modal-title {
    color: #f59e0b !important;
}



