@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Primary color */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    
    /* Secondary color */
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;
    
    /* Tertiary color */
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FFD8E4;
    --md-sys-color-on-tertiary-container: #31111D;
    
    /* Error color */
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error-container: #410E0B;
    
    /* Surface colors */
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-surface-container-low: #F7F2FA;
    --md-sys-color-surface-container-high: #ECE6F0;
    
    /* Outline */
    --md-sys-color-outline: #79747E;
    --md-sys-color-outline-variant: #CAC4D0;
}

.dark {
    /* Primary color */
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;
    
    /* Secondary color */
    --md-sys-color-secondary: #CCC2DC;
    --md-sys-color-on-secondary: #332D41;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;
    
    /* Tertiary color */
    --md-sys-color-tertiary: #EFB8C8;
    --md-sys-color-on-tertiary: #492532;
    --md-sys-color-tertiary-container: #633B48;
    --md-sys-color-on-tertiary-container: #FFD8E4;
    
    /* Error color */
    --md-sys-color-error: #F2B8B5;
    --md-sys-color-on-error: #601410;
    --md-sys-color-error-container: #8C1D18;
    --md-sys-color-on-error-container: #F9DEDC;
    
    /* Surface colors */
    --md-sys-color-surface: #1C1B1F;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #CAC4D0;
    --md-sys-color-surface-container-low: #232227;
    --md-sys-color-surface-container-high: #2D2B31;
    
    /* Outline */
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    transition: background-color 0.3s, color 0.3s;
}
/* Login page specific styles */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.bg-opacity-90 {
    background-opacity: 0.9;
}

#loginForm {
    animation: fadeIn 0.5s ease-out;
}

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

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Staggered animations */
.stagger-animation > * {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

/* Loading spinner */
.spinner {
    border: 3px solid var(--md-sys-color-surface-container-high);
    border-top: 3px solid var(--md-sys-color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Utility classes */
.bg-primary {
    background-color: var(--md-sys-color-primary);
}
.text-primary {
    color: var(--md-sys-color-primary);
}
.bg-on-primary {
    background-color: var(--md-sys-color-on-primary);
}
.text-on-primary {
    color: var(--md-sys-color-on-primary);
}
.bg-primary-container {
    background-color: var(--md-sys-color-primary-container);
}
.text-primary-container {
    color: var(--md-sys-color-primary-container);
}
.text-on-primary-container {
    color: var(--md-sys-color-on-primary-container);
}

.bg-secondary {
    background-color: var(--md-sys-color-secondary);
}
.text-secondary {
    color: var(--md-sys-color-secondary);
}
.bg-on-secondary {
    background-color: var(--md-sys-color-on-secondary);
}
.text-on-secondary {
    color: var(--md-sys-color-on-secondary);
}
.bg-secondary-container {
    background-color: var(--md-sys-color-secondary-container);
}
.text-secondary-container {
    color: var(--md-sys-color-secondary-container);
}
.text-on-secondary-container {
    color: var(--md-sys-color-on-secondary-container);
}

.bg-tertiary {
    background-color: var(--md-sys-color-tertiary);
}
.text-tertiary {
    color: var(--md-sys-color-tertiary);
}
.bg-on-tertiary {
    background-color: var(--md-sys-color-on-tertiary);
}
.text-on-tertiary {
    color: var(--md-sys-color-on-tertiary);
}
.bg-tertiary-container {
    background-color: var(--md-sys-color-tertiary-container);
}
.text-tertiary-container {
    color: var(--md-sys-color-tertiary-container);
}
.text-on-tertiary-container {
    color: var(--md-sys-color-on-tertiary-container);
}

.bg-error {
    background-color: var(--md-sys-color-error);
}
.text-error {
    color: var(--md-sys-color-error);
}
.bg-on-error {
    background-color: var(--md-sys-color-on-error);
}
.text-on-error {
    color: var(--md-sys-color-on-error);
}
.bg-error-container {
    background-color: var(--md-sys-color-error-container);
}
.text-error-container {
    color: var(--md-sys-color-error-container);
}
.text-on-error-container {
    color: var(--md-sys-color-on-error-container);
}

.bg-surface {
    background-color: var(--md-sys-color-surface);
}
.text-surface {
    color: var(--md-sys-color-surface);
}
.bg-on-surface {
    background-color: var(--md-sys-color-on-surface);
}
.text-on-surface {
    color: var(--md-sys-color-on-surface);
}
.bg-surface-variant {
    background-color: var(--md-sys-color-surface-variant);
}
.text-surface-variant {
    color: var(--md-sys-color-surface-variant);
}
.bg-on-surface-variant {
    background-color: var(--md-sys-color-on-surface-variant);
}
.text-on-surface-variant {
    color: var(--md-sys-color-on-surface-variant);
}
.bg-surface-container-low {
    background-color: var(--md-sys-color-surface-container-low);
}
.bg-surface-container-high {
    background-color: var(--md-sys-color-surface-container-high);
}

.border-outline {
    border-color: var(--md-sys-color-outline);
}
.border-outline-variant {
    border-color: var(--md-sys-color-outline-variant);
}
.text-outline {
    color: var(--md-sys-color-outline);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background