﻿/* wwwroot/css/theme.css */

/* --- 1. FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

/* --- 2. LIGHT THEME: "The Digital Goldsmith" --- */
:root {
    /* Brand Colors */
    --primary: #001f4d; /* Slightly richer, warmer Navy */
    --primary-container: #003366;
    --on-primary: #ffffff;
    --secondary: #D4AF37; /* Metallic Gold */
    --on-secondary: #000000;
    /* Vibrant Accents (NEW: For Icons & Highlights) */
    --accent-icon-bg: rgba(212, 175, 55, 0.12); /* Soft gold halo */
    --accent-icon-color: #b8860b; /* Deep, vibrant gold for high contrast on white */
    --card-hover-border: #D4AF37;
    /* Tonal Surfaces (Depth layering) */
    --surface: #f0f3f7; /* Cool, elegant grey-blue tint (makes white cards pop) */
    --surface-container-low: #eef1f5;
    --surface-container-lowest: #ffffff; /* Pure white cards */
    --surface-container-high: #e2e6eb;
    /* Glass & Float */
    --surface-bright: rgba(255, 255, 255, 0.75);
    /* Typography Colors */
    --on-surface: #111827;
    --on-surface-variant: #4b5563;
    /* Borders & Shadows */
    --outline-variant: rgba(17, 24, 39, 0.1);
    --shadow-ambient: 0 10px 30px -10px rgba(0, 31, 77, 0.08); /* Navy-tinted shadow */
    /* Textures */
    --btn-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

/* --- 3. DARK THEME: "The Velvet Executive" --- */
[data-theme="dark"] {
    /* Brand Colors */
    --primary: #f2ca50; /* Bright Gold */
    --primary-container: #d4af37;
    --on-primary: #000000;
    --secondary: #94a3b8; /* Soft steel blue for neutral support */
    --on-secondary: #000000;
    /* Vibrant Accents (NEW: For Icons & Highlights) */
    --accent-icon-bg: rgba(242, 202, 80, 0.15); /* Glowing gold tint */
    --accent-icon-color: #f2ca50; /* Radiant gold */
    --card-hover-border: #f2ca50;
    /* Tonal Surfaces (Depth layering) */
    --surface: #0b0f19; /* Deepest space blue-black */
    --surface-container-low: #111827;
    --surface-container-lowest: #1a2235; /* Elevated navy-charcoal cards */
    --surface-container-high: #232d42;
    /* Glass & Float */
    --surface-bright: rgba(11, 15, 25, 0.85);
    /* Typography Colors */
    --on-surface: #f1f5f9;
    --on-surface-variant: #94a3b8;
    /* Borders & Shadows */
    --outline-variant: rgba(242, 202, 80, 0.15); /* Warm gold ghost border */
    --shadow-ambient: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
    /* Textures */
    --btn-gradient: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%);
}

/* --- 4. GLOBAL RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- 5. TYPOGRAPHY SYSTEM --- */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--on-surface);
    margin-top: 0;
}

.label-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--on-surface-variant);
}

/* --- 6. PREMIUM PRIMITIVES --- */
.premium-input {
    width: 100%;
    background-color: var(--surface-container-low);
    color: var(--on-surface);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .premium-input:focus {
        outline: none;
        border-bottom: 2px solid var(--primary);
        background-color: var(--surface);
    }

.premium-btn {
    width: 100%;
    background: var(--btn-gradient);
    color: var(--on-primary);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

    .premium-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .premium-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.text-btn {
    background: none;
    border: none;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

    .text-btn:hover:not(:disabled) {
        color: var(--primary);
    }

/* --- 7. SCROLLBARS --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-container-high);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--on-surface-variant);
    }


/* --- 8. PREMIUM FORM CONTROLS (Replaces MudBlazor) --- */

/* The Premium Toggle Switch */
.premium-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.premium-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--surface-container-high);
    border-radius: 12px;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

    .premium-switch::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background-color: var(--on-primary);
        border-radius: 50%;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.premium-switch-wrapper input:checked + .premium-switch {
    background: var(--btn-gradient);
}

    .premium-switch-wrapper input:checked + .premium-switch::after {
        transform: translateX(20px);
    }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .status-badge.active {
        background-color: rgba(76, 175, 80, 0.1);
        color: #4caf50;
        border: 1px solid rgba(76, 175, 80, 0.2);
    }

    .status-badge.inactive {
        background-color: rgba(207, 102, 121, 0.1);
        color: #cf6679;
        border: 1px solid rgba(207, 102, 121, 0.2);
    }

/* --- 9. PREMIUM SEARCH BAR --- */
.premium-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
}

    .premium-search-wrapper .search-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--on-surface-variant);
        font-size: 1.2rem;
        pointer-events: none;
        transition: color 0.3s ease;
    }

.premium-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border-radius: 2rem; /* Pill shape */
    border: 1px solid var(--outline-variant);
    background: var(--surface-container-low);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

    .premium-search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--accent-icon-bg);
        background: var(--surface-container-lowest);
    }

        .premium-search-input:focus + .search-icon {
            color: var(--primary);
        }
/* --- 10. GLOBAL NATIVE OVERRIDES --- */
/* Forces native dropdown options to respect the active Light/Dark theme */
option {
    background-color: var(--surface-container-lowest);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
}