/* ═══════════════════════════════════════════════════════
   CNA Calendar Dashboard — Design System
   Premium dark theme with glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ──────────── */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.1);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a5b4fc;

    /* Accent palette */
    --accent-indigo: #6366f1;
    --accent-indigo-light: #818cf8;
    --accent-violet: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-orange: #f97316;

    /* Professional color coding */
    --prof-1: #6366f1; /* Cata */
    --prof-2: #8b5cf6; /* Cami */
    --prof-3: #06b6d4; /* Kari */
    --prof-4: #10b981; /* Celeste */
    --prof-5: #f59e0b; /* Flor */
    --prof-6: #3b82f6; /* Lucas */
    --prof-7: #f43f5e; /* Brenda */
    --prof-8: #ec4899; /* Sol */
    --prof-9: #f97316; /* Caro */
    --prof-10: #14b8a6; /* Leti */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-header: linear-gradient(135deg, #0f172a, #1e1b4b);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-danger: linear-gradient(135deg, #f43f5e, #e11d48);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

/* Animated background orbs */
.login-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s infinite ease-in-out;
}

.login-bg-orb--1 {
    width: 400px; height: 400px;
    background: var(--accent-indigo);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.login-bg-orb--2 {
    width: 350px; height: 350px;
    background: var(--accent-violet);
    bottom: -80px; right: -80px;
    animation-delay: -7s;
}

.login-bg-orb--3 {
    width: 300px; height: 300px;
    background: var(--accent-cyan);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.02); }
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.login-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 2px;
}

.login-footer {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 24px;
}

/* ─── Form Elements ──────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
    color: var(--accent-indigo-light);
}

.form-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--accent-rose);
    font-size: var(--font-size-sm);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}

.btn-full {
    width: 100%;
    padding: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════ */
.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Top Navigation Bar ─────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.topbar-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: white;
}

.topbar-username {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.topbar-role {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ─── Main Content Area ──────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ─── Toolbar (Filters + Actions) ────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    outline: none;
    min-width: 150px;
    transition: border-color var(--transition-fast);
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--border-active);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

/* ─── Date Navigation ────────────────────────────────── */
.date-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.date-nav-btn:hover {
    background: var(--bg-glass-hover);
}

.date-nav-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    min-width: 240px;
    text-align: center;
}

.date-nav-today {
    font-size: var(--font-size-sm);
    padding: 6px 14px;
}

/* ─── View Tabs ──────────────────────────────────────── */
.view-tabs {
    display: flex;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    padding: 3px;
}

.view-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    font-family: var(--font-family);
}

.view-tab:hover {
    color: var(--text-primary);
}

.view-tab.active {
    background: var(--accent-indigo);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════════════════════
   CALENDAR GRID
   ═══════════════════════════════════════════════════════ */
.calendar-container {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Week view header */
.calendar-header {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.calendar-header-cell {
    padding: 12px 8px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-subtle);
}

.calendar-header-cell:last-child {
    border-right: none;
}

.calendar-header-cell.today {
    color: var(--accent-indigo-light);
}

.calendar-header-date {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.calendar-header-cell.today .calendar-header-date {
    color: var(--accent-indigo-light);
}

/* Time grid */
.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    position: relative;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.calendar-time-col {
    border-right: 1px solid var(--border-subtle);
}

.calendar-time-label {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 8px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    transform: translateY(-8px);
}

.calendar-day-col {
    position: relative;
    border-right: 1px solid var(--border-subtle);
    min-height: 720px; /* 12 hours * 60px */
}

.calendar-day-col:last-child {
    border-right: none;
}

.calendar-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
}

.calendar-half-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.03);
}

/* Appointment blocks */
.calendar-event {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: var(--font-size-xs);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    border-left: 3px solid;
    z-index: 2;
}

.calendar-event:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.calendar-event-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-info {
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.calendar-event-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 1px;
}

/* Current time indicator */
.calendar-now-line {
    position: absolute;
    left: -6px;
    right: 0;
    height: 2px;
    background: var(--accent-rose);
    z-index: 5;
}

.calendar-now-dot {
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-rose);
}

/* ─── Day View ───────────────────────────────────────── */
.calendar-header.day-view {
    grid-template-columns: 80px 1fr;
}

.calendar-grid.day-view {
    grid-template-columns: 80px 1fr;
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body .form-group {
    gap: 6px;
}

.modal-body .form-input,
.modal-body .filter-select {
    padding: 10px 14px;
}

.modal-body .form-input {
    padding-left: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════
   STATS CARDS
   ═══════════════════════════════════════════════════════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-top: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: var(--font-size-xs);
    color: var(--accent-emerald);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   PROFESSIONAL FILTER CHIPS
   ═══════════════════════════════════════════════════════ */
.prof-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prof-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.prof-chip:hover {
    background: var(--bg-glass-hover);
}

.prof-chip.active {
    border-color: transparent;
    color: white;
}

.prof-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════
   APPOINTMENT DETAIL PANEL
   ═══════════════════════════════════════════════════════ */
.detail-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.detail-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.badge-cancelled {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.badge-completed {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo-light);
}

.badge-no_show {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

/* ═══════════════════════════════════════════════════════
   CANCEL PAGE (Public)
   ═══════════════════════════════════════════════════════ */
.cancel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.cancel-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cancel-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cancel-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 12px;
}

.cancel-message {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .calendar-header {
        grid-template-columns: 60px repeat(5, 1fr);
    }
    .calendar-grid {
        grid-template-columns: 60px repeat(5, 1fr);
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 16px;
    }
    .main-content {
        padding: 16px;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-filters {
        flex-direction: column;
    }
    .filter-select {
        min-width: 100%;
    }
    .login-card {
        padding: 28px;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Utility: hide ──────────────────────────────────── */
.hidden {
    display: none !important;
}
