:root {
    --bg: #0a0d10;
    --bg-surface: #14181c;
    --bg-card: #161b1f;
    --bg-input: #1a2025;
    --bg-hover: #1e242a;
    --border: #2a323a;
    --border-focus: #d9a441;
    --text: #e9e7e1;
    --text-secondary: #a7aeb5;
    --text-muted: #6d767e;
    --accent: #d9a441;
    --accent-rgb: 217, 164, 65;
    --accent-hover: #c4922f;
    --gold: #d9a441;
    --gold-light: #e8c15a;
    --success: #22c55e;
    --success-bg: #0e2a1a;
    --success-border: #1f6b43;
    --error: #f87171;
    --error-bg: #331413;
    --error-border: #8a2a24;
    --warning: #fbbf24;
    --warning-bg: #332a10;
    --warning-border: #7c5e16;
    --info: #38bdf8;
    --sidebar-bg: linear-gradient(180deg, #11161b 0%, #0c1014 100%);
    --sidebar-text: rgba(255,255,255,0.62);
    --sidebar-text-active: #ffffff;
    --sidebar-hover: rgba(255,255,255,0.07);
    --sidebar-section: rgba(255,255,255,0.34);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.55);
    --table-stripe: #10151a;
    --table-hover: #1c2228;
    --badge-active-bg: #0f2a1c;
    --badge-active-text: #4ade80;
    --badge-pending-bg: #332a10;
    --badge-pending-text: #fbbf24;
    --badge-expired-bg: #331413;
    --badge-expired-text: #f87171;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.4);
    --modal-bg: rgba(0,0,0,0.72);
    --scrollbar-track: #14181c;
    --scrollbar-thumb: #333b43;
}

* { box-sizing: border-box; }

html {
    font-size: 17px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Auto-apply transitions to key elements */
*, *::before, *::after {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Exclude elements that should not transition */
.no-transition,
.no-transition *,
.no-transition *::before,
.no-transition *::after {
    transition: none !important;
}
