/* ============================================================
   BIGMAN EMPIRE - Master Stylesheet v2.0
   Professional Writers Management System
   Theme: Gold, Black & White | Dark/Light Mode
   ============================================================ */

/* ---- CSS Custom Properties (Light Mode - Default) ---- */
:root {
    /* Gold palette extracted from Bigman Empire logo */
    --gold-50:  #fdf8eb;
    --gold-100: #f9eece;
    --gold-200: #f2d98a;
    --gold-300: #e8bf4d;
    --gold-400: #d4a82e;
    --gold-500: #c9a035;
    --gold-600: #b2882a;
    --gold-700: #8f6b1e;
    --gold-800: #755618;
    --gold-900: #5c4414;
    --gold-950: #3a2a0b;

    /* Surfaces */
    --bg-body: #f7f7f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafaf8;
    --bg-sidebar: #ffffff;
    --bg-nav: rgba(255,255,255,0.85);
    --bg-input: #ffffff;
    --bg-input-disabled: #f8f8f6;
    --bg-table-header: #fafaf8;
    --bg-table-hover: #fdfdfb;
    --bg-modal-overlay: rgba(0,0,0,0.5);
    --bg-dropdown: #ffffff;
    --bg-badge-subtle: rgba(201,160,53,0.08);
    --bg-code: #f5f4f0;

    /* Borders */
    --border-primary: #e8e6e1;
    --border-light: #f0eeea;
    --border-input: #d4d2cd;
    --border-input-focus: #c9a035;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a45;
    --text-tertiary: #8a8a82;
    --text-muted: #b0afa8;
    --text-inverse: #ffffff;
    --text-link: #b2882a;
    --text-link-hover: #8f6b1e;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 14px rgba(201,160,53,0.25);
    --shadow-gold-lg: 0 8px 24px rgba(201,160,53,0.3);

    /* Focus ring */
    --ring-focus: rgba(201,160,53,0.25);

    /* Auth page */
    --auth-bg-start: #0d0d0d;
    --auth-bg-mid: #1a1610;
    --auth-bg-end: #2a2215;

    /* Sidebar footer gradient */
    --sidebar-footer-start: #1a1a1a;
    --sidebar-footer-end: #2a2215;

    /* Scrollbar */
    --scrollbar-track: transparent;
    --scrollbar-thumb: #d4d2cd;
    --scrollbar-thumb-hover: #b0afa8;

    /* Stat card icon backgrounds */
    --stat-icon-1: #fdf8eb;
    --stat-icon-2: #ecfdf5;
    --stat-icon-3: #f0fdf4;
    --stat-icon-4: #fef3c7;
    --stat-icon-text-1: #b2882a;
    --stat-icon-text-2: #059669;
    --stat-icon-text-3: #16a34a;
    --stat-icon-text-4: #d97706;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
    --bg-body: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222220;
    --bg-sidebar: #141414;
    --bg-nav: rgba(20,20,20,0.92);
    --bg-input: #1e1e1c;
    --bg-input-disabled: #252523;
    --bg-table-header: #1e1e1c;
    --bg-table-hover: #222220;
    --bg-modal-overlay: rgba(0,0,0,0.7);
    --bg-dropdown: #1a1a1a;
    --bg-badge-subtle: rgba(201,160,53,0.12);
    --bg-code: #1e1e1c;

    --border-primary: #2a2a28;
    --border-light: #222220;
    --border-input: #3a3a36;
    --border-input-focus: #c9a035;

    --text-primary: #f0eeea;
    --text-secondary: #b0afa8;
    --text-tertiary: #7a7a72;
    --text-muted: #5a5a55;
    --text-inverse: #1a1a1a;
    --text-link: #d4a82e;
    --text-link-hover: #e8bf4d;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 14px rgba(201,160,53,0.15);
    --shadow-gold-lg: 0 8px 24px rgba(201,160,53,0.2);

    --ring-focus: rgba(201,160,53,0.3);

    --auth-bg-start: #0a0a0a;
    --auth-bg-mid: #10100e;
    --auth-bg-end: #1a1610;

    --sidebar-footer-start: #0d0d0d;
    --sidebar-footer-end: #1a1610;

    --scrollbar-track: transparent;
    --scrollbar-thumb: #3a3a36;
    --scrollbar-thumb-hover: #5a5a55;

    --stat-icon-1: #2a2215;
    --stat-icon-2: #0a2e1e;
    --stat-icon-3: #0f2d16;
    --stat-icon-4: #2a2010;
    --stat-icon-text-1: #d4a82e;
    --stat-icon-text-2: #34d399;
    --stat-icon-text-3: #4ade80;
    --stat-icon-text-4: #fbbf24;
}

/* ---- Base ---- */
* { box-sizing: border-box; margin: 0; }

body {
    font-family: 'Playfair Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* ---- Typography Overrides for Elegance ---- */
h1, h2, h3, .page-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.01em;
}

/* ---- Animations ---- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes goldShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-slideDown { animation: slideDown 0.3s ease-out; }
.animate-slideUp   { animation: slideUp 0.3s ease-out; }
.animate-fadeIn    { animation: fadeIn 0.3s ease-out; }
.animate-scaleIn   { animation: scaleIn 0.25s ease-out; }
.animate-countUp   { animation: countUp 0.5s ease-out; }

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; animation-fill-mode: both; }
.stagger-2 { animation-delay: 0.1s;  animation-fill-mode: both; }
.stagger-3 { animation-delay: 0.15s; animation-fill-mode: both; }
.stagger-4 { animation-delay: 0.2s;  animation-fill-mode: both; }
.stagger-5 { animation-delay: 0.25s; animation-fill-mode: both; }
.stagger-6 { animation-delay: 0.3s;  animation-fill-mode: both; }

/* ---- Cards ---- */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    border-radius: 1rem;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-200);
}
[data-theme="dark"] .stat-card:hover {
    border-color: var(--gold-700);
}

.task-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
}
.task-card:hover {
    border-color: rgba(201, 160, 53, 0.3);
    box-shadow: 0 8px 24px -4px rgba(201, 160, 53, 0.1);
}

/* ---- Table ---- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table thead th {
    background: var(--bg-table-header);
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    border-bottom: 2px solid var(--border-primary);
    text-align: left;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.data-table tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-secondary);
}
.data-table tbody tr {
    transition: background-color 0.15s ease;
}
.data-table tbody tr:hover {
    background-color: var(--bg-table-hover);
}

/* ---- Forms ---- */
.form-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--border-input);
    border-radius: 0.625rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}
.form-input:focus {
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px var(--ring-focus);
}
.form-input:disabled {
    background: var(--bg-input-disabled);
    color: var(--text-muted);
}
.form-input::placeholder {
    color: var(--text-muted);
}
.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}
.form-help {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, #c9a035, #d4a82e, #b2882a);
    color: #0d0d0d;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #d4a82e, #e8bf4d, #c9a035);
    box-shadow: var(--shadow-gold-lg);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 2px 8px -2px rgba(5, 150, 105, 0.4);
}
.btn-success:hover { background: linear-gradient(135deg, #047857, #059669); }

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 2px 8px -2px rgba(220, 38, 38, 0.4);
}
.btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #dc2626); }

.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
}
.btn-warning:hover { background: linear-gradient(135deg, #b45309, #d97706); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-primary);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-300);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 0.8rem 1.85rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal-overlay);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: var(--bg-card);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 36rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.25s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
}

/* ---- Badges ---- */
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.badge-dot-green { background: #10b981; }
.badge-dot-yellow { background: #f59e0b; }
.badge-dot-red { background: #ef4444; }
.badge-dot-gray { background: #9ca3af; }

/* ---- Progress Bar ---- */
.progress-bar {
    height: 6px;
    background: var(--border-primary);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c9a035, #e8bf4d);
    transition: width 0.6s ease;
}

/* ---- Loading Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card-hover) 25%, var(--border-primary) 50%, var(--bg-card-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    min-width: 300px;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

/* ---- Print ---- */
@media print {
    nav, aside, footer, .no-print { display: none !important; }
    main { margin-left: 0 !important; padding: 0 !important; }
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--auth-bg-start) 0%, var(--auth-bg-mid) 40%, var(--auth-bg-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,160,53,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(201,160,53,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.auth-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 2.75rem;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.4s ease;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}
.auth-card-wide {
    max-width: 44rem;
}

/* ---- Gold Accent Divider ---- */
.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    border: none;
    margin: 1.5rem 0;
}

/* ---- Dark/Light Mode Toggle ---- */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.theme-toggle-track {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: var(--border-primary);
    position: relative;
    transition: all 0.3s ease;
    border: 1.5px solid var(--border-input);
}
[data-theme="dark"] .theme-toggle-track {
    background: var(--gold-900);
    border-color: var(--gold-700);
}
.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-400);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(22px);
    background: var(--gold-300);
}
.theme-toggle-icon {
    font-size: 9px;
    color: var(--text-inverse);
    line-height: 1;
}

/* ---- Sidebar footer card gold gradient ---- */
.sidebar-footer-card {
    background: linear-gradient(135deg, var(--sidebar-footer-start), var(--sidebar-footer-end));
    border: 1px solid rgba(201,160,53,0.2);
}

/* ---- Logo in nav ---- */
.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    object-fit: contain;
    background: transparent;
}
.auth-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ---- Global Dark Mode Overrides for Tailwind ---- */
/* These override the Tailwind utility classes used in the PHP files */
[data-theme="dark"] .bg-white { background-color: var(--bg-card) !important; }
[data-theme="dark"] .bg-gray-50 { background-color: var(--bg-body) !important; }
[data-theme="dark"] .bg-gray-100 { background-color: #1e1e1c !important; }
[data-theme="dark"] .border-gray-100 { border-color: var(--border-primary) !important; }
[data-theme="dark"] .border-gray-200 { border-color: var(--border-input) !important; }
[data-theme="dark"] .text-gray-900 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-gray-800 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-gray-700 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-600 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-500 { color: var(--text-tertiary) !important; }
[data-theme="dark"] .text-gray-400 { color: var(--text-muted) !important; }
[data-theme="dark"] .bg-indigo-100 { background-color: var(--stat-icon-1) !important; }
[data-theme="dark"] .bg-indigo-50 { background-color: rgba(201,160,53,0.06) !important; }
[data-theme="dark"] .text-indigo-600 { color: var(--gold-400) !important; }
[data-theme="dark"] .text-indigo-500 { color: var(--gold-400) !important; }
[data-theme="dark"] .text-indigo-700 { color: var(--gold-300) !important; }
[data-theme="dark"] .hover\:bg-gray-100:hover { background-color: #222220 !important; }
[data-theme="dark"] .hover\:bg-gray-50:hover { background-color: #1e1e1c !important; }
[data-theme="dark"] .hover\:text-gray-900:hover { color: var(--text-primary) !important; }
[data-theme="dark"] .bg-emerald-100 { background-color: var(--stat-icon-2) !important; }
[data-theme="dark"] .bg-green-100 { background-color: var(--stat-icon-3) !important; }
[data-theme="dark"] .bg-amber-100 { background-color: var(--stat-icon-4) !important; }
[data-theme="dark"] .bg-red-50 { background-color: #2a1515 !important; }
[data-theme="dark"] .text-red-700 { color: #fca5a5 !important; }
[data-theme="dark"] .border-red-200 { border-color: #7f1d1d !important; }
[data-theme="dark"] .bg-emerald-50 { background-color: rgba(5,150,105,0.08) !important; }
[data-theme="dark"] .bg-amber-50 { background-color: rgba(217,119,6,0.08) !important; }
[data-theme="dark"] .bg-blue-50 { background-color: rgba(59,130,246,0.08) !important; }
[data-theme="dark"] .bg-green-50 { background-color: rgba(34,197,94,0.08) !important; }
[data-theme="dark"] .bg-purple-100 { background-color: rgba(147,51,234,0.1) !important; }
[data-theme="dark"] .bg-orange-50 { background-color: rgba(249,115,22,0.08) !important; }
[data-theme="dark"] .bg-orange-100 { background-color: rgba(249,115,22,0.1) !important; }
[data-theme="dark"] .bg-cyan-100 { background-color: rgba(6,182,212,0.1) !important; }
[data-theme="dark"] .bg-blue-100 { background-color: rgba(59,130,246,0.1) !important; }
[data-theme="dark"] .bg-gray-100 { background-color: #222220 !important; }
[data-theme="dark"] .border-b { border-color: var(--border-primary); }
[data-theme="dark"] .divide-gray-50 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border-light) !important; }
[data-theme="dark"] .border-t { border-color: var(--border-primary); }

/* Dark mode for auth page specific overrides */
[data-theme="dark"] .auth-card .bg-gray-50,
[data-theme="dark"] .auth-page .bg-gray-50 { background-color: var(--bg-card-hover) !important; }
[data-theme="dark"] .hover\:bg-red-50:hover { background-color: rgba(220,38,38,0.08) !important; }

/* Sidebar active link in dark mode */
[data-theme="dark"] .bg-brand-50 { background-color: rgba(201,160,53,0.08) !important; }
[data-theme="dark"] .text-brand-700 { color: var(--gold-300) !important; }
[data-theme="dark"] .border-brand-600 { border-color: var(--gold-500) !important; }
[data-theme="dark"] .text-brand-600 { color: var(--gold-400) !important; }

/* Dark mode nav/sidebar bg */
[data-theme="dark"] nav.fixed { background: var(--bg-nav) !important; backdrop-filter: blur(16px); }
[data-theme="dark"] aside#sidebar { background: var(--bg-sidebar) !important; border-color: var(--border-primary) !important; }

/* Dark mode dropdown */
[data-theme="dark"] #notifPanel,
[data-theme="dark"] #userPanel { background: var(--bg-dropdown) !important; border-color: var(--border-primary) !important; }

/* Focus ring override for checkboxes in dark mode */
[data-theme="dark"] .text-indigo-600 { color: var(--gold-400) !important; }
[data-theme="dark"] input[type="checkbox"] { accent-color: var(--gold-500); }

/* Dark mode select styling */
[data-theme="dark"] select.form-input { background-color: var(--bg-input); color: var(--text-primary); }
[data-theme="dark"] select.form-input option { background-color: var(--bg-card); color: var(--text-primary); }

/* ---- Floating decorative elements for auth pages ---- */
.auth-float-element {
    position: fixed;
    border: 1px solid rgba(201,160,53,0.1);
    pointer-events: none;
}

/* ---- Designed-by footer on auth ---- */
.designed-by {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding-top: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.designed-by span {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ---- Hover effects for links using gold ---- */
[data-theme="dark"] a.text-indigo-600 { color: var(--gold-400) !important; }
[data-theme="dark"] a.text-indigo-600:hover { color: var(--gold-300) !important; }
[data-theme="dark"] a.hover\:text-indigo-700:hover { color: var(--gold-300) !important; }
[data-theme="dark"] .hover\:underline:hover { text-decoration-color: var(--gold-400); }

/* ---- Writer sidebar card dark mode ---- */
[data-theme="dark"] .bg-white\/20 { background-color: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .bg-white\/10 { background-color: rgba(255,255,255,0.06) !important; }
[data-theme="dark"] .bg-white\/5 { background-color: rgba(255,255,255,0.03) !important; }

/* ---- Smooth transition for theme changes ---- */
body, nav, aside, main, .stat-card, .auth-card, .form-input, .btn-secondary,
.data-table thead th, .data-table tbody td, .modal-content, footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---- Footer dark mode ---- */
[data-theme="dark"] footer { background-color: var(--bg-card) !important; border-color: var(--border-primary) !important; }

/* ---- Brand colors override to gold ---- */
.text-brand-gold { color: var(--gold-500); }
.bg-brand-gold { background-color: var(--gold-500); }

/* ---- Auth page theme toggle (fixed position) ---- */
.auth-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.7);
}
.auth-theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: var(--gold-300);
    border-color: rgba(201,160,53,0.3);
}

/* ---- Remember-me checkbox gold ---- */
input[type="checkbox"]:checked {
    accent-color: var(--gold-500);
}
