/* =========================================================
   kargoDi Premium Theme System
   Modern SaaS Dark/Light Mode with WCAG Accessibility
   ========================================================= */

/* Always show scrollbar to prevent layout shift between pages */
html { overflow-y: scroll; }

/* ---------------------------------------------------------
   1. CORE SEMANTIC VARIABLES
   --------------------------------------------------------- */

:root {
    /* Light Mode (default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-elevated: #FFFFFF;

    --surface-primary: #FFFFFF;
    --surface-secondary: #F8FAFC;
    --surface-tertiary: #F1F5F9;
    --surface-elevated: #FFFFFF;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #F8FAFC;

    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --border-active: rgba(15, 23, 42, 0.25);

    --accent-color: #F97316;
    --accent-hover: #EA580C;
    --accent-light: rgba(249, 115, 22, 0.1);
    --accent-lighter: rgba(249, 115, 22, 0.06);

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 40px -10px rgba(249, 115, 22, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-backdrop: blur(20px) saturate(180%);

    --navbar-bg: rgba(255, 255, 255, 0.8);
    --navbar-border: rgba(15, 23, 42, 0.06);

    --card-bg: #FFFFFF;
    --card-border: rgba(15, 23, 42, 0.08);
    --card-hover: rgba(249, 115, 22, 0.04);

    --input-bg: #FFFFFF;
    --input-border: rgba(15, 23, 42, 0.12);
    --input-focus: #F97316;
    --input-placeholder: #94A3B8;

    --overlay-light: rgba(15, 23, 42, 0.03);
    --overlay-medium: rgba(15, 23, 42, 0.06);
    --overlay-heavy: rgba(15, 23, 42, 0.12);

    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ---------------------------------------------------------
   2. DARK MODE VARIABLES
   --------------------------------------------------------- */

html.dark,
html[data-color-mode="dark"] {
    --bg-primary: #020817;
    --bg-secondary: #0B1120;
    --bg-tertiary: #111827;
    --bg-elevated: #151D2E;

    --surface-primary: #111827;
    --surface-secondary: #0B1120;
    --surface-tertiary: #1E293B;
    --surface-elevated: #1E293B;

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-muted: #64748B;
    --text-inverse: #0F172A;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.18);

    --accent-color: #F97316;
    --accent-hover: #FB923C;
    --accent-light: rgba(249, 115, 22, 0.15);
    --accent-lighter: rgba(249, 115, 22, 0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px -10px rgba(249, 115, 22, 0.25);

    --glass-bg: rgba(11, 17, 32, 0.72);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-backdrop: blur(20px) saturate(180%);

    --navbar-bg: rgba(2, 8, 23, 0.8);
    --navbar-border: rgba(255, 255, 255, 0.06);

    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(249, 115, 22, 0.08);

    --input-bg: #0B1120;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: #F97316;
    --input-placeholder: #64748B;

    --overlay-light: rgba(255, 255, 255, 0.02);
    --overlay-medium: rgba(255, 255, 255, 0.04);
    --overlay-heavy: rgba(255, 255, 255, 0.08);

    --success: #4ADE80;
    --warning: #FBBF24;
    --error: #F87171;
    --info: #60A5FA;
}

/* ---------------------------------------------------------
   3. BASE STYLES & TRANSITIONS
   --------------------------------------------------------- */

*,
*::before,
*::after {
    transition: background-color var(--transition-base),
                border-color var(--transition-base),
                color var(--transition-base),
                box-shadow var(--transition-base),
                opacity var(--transition-fast);
}

/* Disable ALL transitions on navbar to prevent jump/shake when switching pages */
.theme-navbar,
.theme-navbar *,
.theme-navbar *::before,
.theme-navbar *::after {
    transition: none !important;
}

html {
    color-scheme: light;
}

html.dark {
    color-scheme: dark;
}

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

/* ---------------------------------------------------------
   4. NAVBAR STYLES
   --------------------------------------------------------- */

.theme-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: var(--shadow-sm);
}

.theme-navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: var(--shadow-sm);
}

.theme-navbar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.theme-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.theme-navbar .nav-link:hover {
    color: var(--accent-color);
    background: var(--overlay-light);
}

.theme-navbar .nav-link:hover::after {
    width: 60%;
}

.theme-navbar .nav-link.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.theme-navbar .nav-link.active::after {
    display: none;
}

/* Mobile nav */
.mobile-nav-drawer {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
}

/* ---------------------------------------------------------
   5. HERO SECTION
   --------------------------------------------------------- */

.theme-hero {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.theme-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-light) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, var(--overlay-medium) 0%, transparent 50%);
    pointer-events: none;
}

.theme-hero .hero-heading {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.theme-hero .hero-heading .text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-hero .hero-subheading {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 640px;
}

.theme-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent-lighter);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-full);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* ---------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------- */

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.5;
}

.theme-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.theme-btn:hover::before {
    transform: translateX(100%);
}

/* Primary Button */
.theme-btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #FFFFFF;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.35);
}

.theme-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(249, 115, 22, 0.5), var(--shadow-glow);
}

.theme-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.theme-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.theme-btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-lighter);
    transform: translateY(-2px);
}

/* Ghost Button */
.theme-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.theme-btn-ghost:hover {
    color: var(--text-primary);
    background: var(--overlay-light);
}

/* Small variant */
.theme-btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* Large variant */
.theme-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ---------------------------------------------------------
   7. CARDS
   --------------------------------------------------------- */

.theme-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-color), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-color);
}

.theme-card .card-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.theme-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Card variants */
.theme-card-elevated {
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
    border: none;
}

.theme-card-elevated:hover {
    box-shadow: var(--shadow-xl);
}

/* ---------------------------------------------------------
   8. INPUTS & FORMS
   --------------------------------------------------------- */

.theme-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    outline: none;
}

.theme-input::placeholder {
    color: var(--input-placeholder);
}

.theme-input:hover {
    border-color: var(--border-hover);
}

.theme-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Select */
.theme-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

html.dark .theme-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------------
   9. TABLES
   --------------------------------------------------------- */

.theme-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.theme-table thead th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.theme-table tbody td {
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-table tbody tr:hover td {
    background: var(--overlay-light);
}

.theme-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------------------------------------------------------
   10. SECTIONS
   --------------------------------------------------------- */

.theme-section {
    padding: 5rem 0;
    position: relative;
}

.theme-section-alt {
    background: var(--bg-secondary);
}

.theme-section-elevated {
    background: var(--bg-tertiary);
}

.theme-section-heading {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
}

.theme-section-subheading {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */

.theme-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

@media (max-width: 1023px) {
    .theme-footer {
        padding-bottom: 5rem !important;
    }
}

.theme-footer .footer-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.theme-footer .footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: all var(--transition-fast);
}

.theme-footer .footer-link:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

.theme-footer .footer-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.theme-footer .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* ---------------------------------------------------------
   12. DROPDOWNS
   --------------------------------------------------------- */

.theme-dropdown {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.theme-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.theme-dropdown-item:hover {
    background: var(--overlay-light);
    color: var(--accent-color);
}

.theme-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ---------------------------------------------------------
   13. MODALS
   --------------------------------------------------------- */

.theme-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.theme-modal {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.theme-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.theme-modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

.theme-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ---------------------------------------------------------
   14. BADGES & TAGS
   --------------------------------------------------------- */

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.theme-badge-accent {
    background: var(--accent-light);
    color: var(--accent-color);
}

.theme-badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.theme-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.theme-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ---------------------------------------------------------
   15. GLASSMORPHISM UTILITIES
   --------------------------------------------------------- */

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------
   16. SCROLLBAR STYLES
   --------------------------------------------------------- */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

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

/* ---------------------------------------------------------
   17. THEME TOGGLE BUTTON
   --------------------------------------------------------- */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-lighter);
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform var(--transition-slow), opacity var(--transition-base);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: transform var(--transition-slow), opacity var(--transition-base);
}

html:not(.dark) .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

html:not(.dark) .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

html.dark .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

html.dark .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

/* ---------------------------------------------------------
   18. ANIMATIONS
   --------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px -5px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 30px -5px rgba(249, 115, 22, 0.5);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---------------------------------------------------------
   19. RESPONSIVE UTILITIES
   --------------------------------------------------------- */

@media (max-width: 768px) {
    .theme-section {
        padding: 3rem 0;
    }

    .theme-section-heading {
        font-size: 1.75rem;
    }

    .theme-hero .hero-heading {
        font-size: 2rem;
    }

    .theme-navbar.scrolled {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* ---------------------------------------------------------
   20. ACCESSIBILITY - HIGH CONTRAST & REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(15, 23, 42, 0.25);
        --text-secondary: #334155;
    }

    html.dark {
        --border-color: rgba(255, 255, 255, 0.2);
        --text-secondary: #E2E8F0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   21. UTILITY CLASSES
   --------------------------------------------------------- */

.bg-theme-primary { background-color: var(--bg-primary); }
.bg-theme-secondary { background-color: var(--bg-secondary); }
.bg-theme-tertiary { background-color: var(--bg-tertiary); }
.bg-theme-surface { background-color: var(--surface-primary); }
.bg-theme-accent { background-color: var(--accent-color); }
.bg-theme-accent-light { background-color: var(--accent-light); }

.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-tertiary { color: var(--text-tertiary); }
.text-theme-muted { color: var(--text-muted); }
.text-theme-accent { color: var(--accent-color); }

.border-theme { border-color: var(--border-color); }
.border-theme-hover { border-color: var(--border-hover); }

.shadow-theme-sm { box-shadow: var(--shadow-sm); }
.shadow-theme-md { box-shadow: var(--shadow-md); }
.shadow-theme-lg { box-shadow: var(--shadow-lg); }
.shadow-theme-glow { box-shadow: var(--shadow-glow); }