@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* =========================================
       PREMIUM DESIGN SYSTEM (MATERIAL 3+)
       ========================================= */

    /* CORE BRAND PALETTE - GOOGLE OFFICIAL */
    --google-blue: #4285F4;
    --google-red: #DB4437;
    --google-yellow: #F4B400;
    --google-green: #0F9D58;

    --google-blue-container: #E8F0FE;
    --google-red-container: #FCE8E6;
    --google-yellow-container: #FEF7E0;
    --google-green-container: #E6F4EA;

    /* REFINED NEUTRALS */
    --text-primary: #1F1F1F;
    --text-secondary: #444746;
    --text-tertiary: #747775;

    --surface-lowest: #FFFFFF;
    --surface-low: #F8F9FA;
    --surface-mid: #F0F2F4;
    --surface-high: #E1E3E1;

    /* MATERIAL 3 DESIGN TOKENS */
    --primary: var(--google-blue);
    --on-primary: #FFFFFF;
    --primary-container: var(--google-blue-container);
    --on-primary-container: #001B3D;

    --secondary: var(--text-secondary);
    --on-secondary: #FFFFFF;
    --secondary-container: #E8EAED;
    --on-secondary-container: #1C1B1F;

    --surface: #FFFFFF;
    --on-surface: var(--text-primary);
    --surface-variant: #F1F3F4;
    --on-surface-variant: var(--text-secondary);

    --outline: #DADCE0;
    --outline-variant: #F1F3F4;

    --error: var(--google-red);
    --on-error: #FFFFFF;
    --error-container: var(--google-red-container);
    --on-error-container: #A50E0E;

    --success: var(--google-green);
    --on-success: #FFFFFF;
    --success-container: var(--google-green-container);
    --on-success-container: #0D652D;

    --warning: var(--google-yellow);
    --on-warning: #FFFFFF;
    --warning-container: var(--google-yellow-container);
    --on-warning-container: #664B00;

    /* ELEVATION & SHADOWS (Premium Softness) */
    --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-2: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);

    /* TYPOGRAPHY */
    --font-brand: 'Google Sans', 'Roboto', 'Inter', sans-serif;
    --font-plain: 'Roboto', 'Inter', sans-serif;

    /* SHAPES */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* ANIMATION */
    --transition-std: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-exp: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-plain);
    background-color: var(--surface-low);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY SYSTEM */
.display-large {
    font-family: var(--font-brand);
    font-size: 57px;
    line-height: 64px;
    letter-spacing: -0.25px;
    font-weight: 400;
}

.display-medium {
    font-family: var(--font-brand);
    font-size: 45px;
    line-height: 52px;
}

.headline-large {
    font-family: var(--font-brand);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
}

.headline-medium {
    font-family: var(--font-brand);
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
}

.title-large {
    font-family: var(--font-brand);
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
}

.title-medium {
    font-family: var(--font-brand);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.body-large {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
}

.body-medium {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
}

.label-large {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* COMPONENT: BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-brand);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-std);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: #3367D6;
    box-shadow: var(--shadow-1);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
}

.btn-secondary:hover {
    background-color: #DADCE0;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(66, 133, 244, 0.08);
    border-color: var(--primary);
}

/* COMPONENT: CARDS */
.card-elevated {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-1);
    transition: var(--transition-std);
}

.card-elevated:hover {
    box-shadow: var(--shadow-2);
}

.card-filled {
    background: var(--surface-variant);
    border-radius: var(--radius-md);
    padding: 24px;
}

.card-outlined {
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 24px;
}

/* FORMS (M3 Floating Labels) */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 16px;
    padding-top: 24px;
    background: var(--surface-variant);
    border: none;
    border-bottom: 1px solid var(--outline);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    font-size: 16px;
    color: var(--on-surface);
    transition: var(--transition-std);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
    border-bottom-width: 2px;
    background: #E8F0FE;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--on-surface-variant);
    transition: var(--transition-std);
    pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: 12px;
    font-size: 12px;
    color: var(--primary);
    transform: none;
}

/* MATERIAL SYMBOLS CORE */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* LAYOUT STRUCTURE */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    /* Anti-squash */
    background: var(--surface-low);
    border-right: 1px solid var(--outline-variant);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    /* Allow inner content to use overflow without pushing sidebar */
    padding: 32px;
    background: var(--surface-lowest);
    border-radius: var(--radius-xl) 0 0 0;
}

/* UTILS */
.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-tertiary {
    color: var(--text-tertiary) !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-danger {
    color: var(--google-red) !important;
}

.text-warning {
    color: var(--google-yellow) !important;
}

.text-success {
    color: var(--google-green) !important;
}

.text-blue {
    color: var(--google-blue) !important;
}

/* BACKGROUND UTILS */
.bg-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.bg-surface-variant {
    background-color: var(--surface-variant) !important;
}

.bg-blue-container {
    background-color: var(--google-blue-container) !important;
    color: var(--google-blue) !important;
}

.bg-red-container {
    background-color: var(--google-red-container) !important;
    color: var(--google-red) !important;
}

.bg-yellow-container {
    background-color: var(--google-yellow-container) !important;
    color: var(--google-yellow) !important;
}

.bg-green-container {
    background-color: var(--google-green-container) !important;
    color: var(--google-green) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-1);
}

.shadow-md {
    box-shadow: var(--shadow-2);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* BADGES */
.badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
}

.badge-primary {
    background: var(--google-blue-container);
    color: var(--google-blue);
}

.badge-success {
    background: var(--google-green-container);
    color: var(--on-success-container);
}

.badge-error {
    background: var(--google-red-container);
    color: var(--on-error-container);
}

.badge-warning {
    background: var(--google-yellow-container);
    color: var(--on-warning-container);
}

.primary-container {
    background: var(--google-blue-container);
    color: var(--google-blue);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s var(--transition-exp) forwards;
}

/* CHIPS */
.chip {
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    border: 1px solid var(--outline);
    background: var(--surface);
    color: var(--on-surface-variant);
    text-decoration: none;
    gap: 8px;
}

.chip:hover {
    background: var(--surface-variant);
}