@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --color-electric-violet: #8B5CF6;
    --color-cyber-pink: #EC4899;
    --color-neon-blue: #3B82F6;
    --color-lime-pop: #84CC16;

    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-success: linear-gradient(135deg, #84CC16 0%, #10B981 100%);

    --color-light-base: #FAFAFA;
    --color-light-elevated: #FFFFFF;
    --color-light-card: #FFFFFF;

    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-glow: rgba(139, 92, 246, 0.08);

    --color-text-primary: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;

    --color-shift-day: #FBBF24;
    --color-shift-evening: #8B5CF6;
    --color-shift-timeoff: #10B981;

    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.20), 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-glow-violet: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.15);
    --shadow-glow-pink: 0 0 20px rgba(236, 72, 153, 0.3), 0 0 40px rgba(236, 72, 153, 0.15);

    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
    font-family: var(--font-body), sans-serif;
    color: var(--color-text-primary);
    background: #F8FAFC;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-primary);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

a, .btn-link {
    color: var(--color-electric-violet);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, .btn-link:hover {
    color: var(--color-cyber-pink);
}

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

.page-content > * {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: white;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
    outline: none;
}

.content {
    padding-top: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--color-shift-timeoff);
    outline-offset: 2px;
}

.invalid {
    outline: 2px solid #EF4444;
    outline-offset: 2px;
}

.validation-message {
    color: #FCA5A5;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem 1rem 1rem 3.7rem;
    color: #FCA5A5;
    border-radius: 12px;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: var(--glass-border);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--color-text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.03) 0%,
        rgba(236, 72, 153, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(236, 72, 153, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

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

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

.badge {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.badge-day {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #FDE68A;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-day:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 24px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-evening {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.2) 0%,
        rgba(124, 58, 237, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #C4B5FD;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-evening:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-timeoff {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(5, 150, 105, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #A7F3D0;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-timeoff:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mono {
    font-family: var(--font-mono);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(139, 92, 246, 0.3),
            0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow:
            0 12px 48px rgba(139, 92, 246, 0.5),
            0 0 60px rgba(236, 72, 153, 0.4);
    }
}

.stat-card {
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 4s ease-in-out infinite;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Better touch targets for mobile */
    .btn-primary {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }

    /* Reduce animations on mobile for performance */
    .page-content > * {
        animation-duration: 0.4s;
    }

    /* Stat cards responsive sizing */
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Even smaller devices */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}
