/* ==========================================================
   KUETx - Dark Mode Color Palette Overrides
   ========================================================== */

[data-theme="dark"] {
    --bg-main: #090d16;
    --bg-card: #0f172a;
    --bg-hover: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #1e293b;
    --border-focus: #6366f1;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-floating: 0 12px 30px rgba(0, 0, 0, 0.7);

    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .app-header,
[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.88);
    border-color: #1e293b;
}

[data-theme="dark"] .badge-anon {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .badge-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

[data-theme="dark"] .comment-bubble {
    background: #1e293b;
}

[data-theme="dark"] .toast {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: inline-block !important;
}

/* Dark Theme Form & Input Overrides */
[data-theme="dark"] .form-control {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .form-control:focus {
    background-color: #0f172a !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.35) !important;
}

[data-theme="dark"] select.form-control option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

[data-theme="dark"] input[type="file"]::file-selector-button {
    background-color: #334155 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

[data-theme="dark"] input[type="file"]::file-selector-button:hover {
    background-color: #475569 !important;
}

/* Dark Theme Modal Overrides */
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.84) !important;
}

[data-theme="dark"] .modal-dialog {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

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

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

[data-theme="dark"] .modal-close-btn {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .modal-close-btn:hover {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-body::-webkit-scrollbar-thumb {
    background: #334155 !important;
}

[data-theme="dark"] .modal-body::-webkit-scrollbar-thumb:hover {
    background: #475569 !important;
}

