:root {
    --primary: #5146c9;
    --primary-dark: #3d35a8;
    --primary-light: #8a7fe8;
    --success: #059669;
    --warning: #b45309;
    --danger: #dc2626;
    --info: #0e7490;
    --bg: #f0eff5;
    --card-bg: #ffffff;
    --text: #1e1b2e;
    --text-secondary: #6b6590;
    --border: #ddd8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(20, 15, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(20, 15, 40, 0.12);
    --btn-primary-bg: linear-gradient(135deg, #e9e6fb 0%, #d9d1f8 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* App Layout */
.app-layout { min-height: 100vh; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, #1e1b4b 0%, #14113a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    transition: width 0.3s ease;
}
.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8a7fe8 0%, #6d5bd0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.sidebar-logo-mark svg { width: 18px; height: 18px; }
.sidebar-logo {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: #fff;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.5rem;
}
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
}
.nav-icon svg { width: 100%; height: 100%; }
.nav-text {
    opacity: 1;
    transition: opacity 0.2s ease;
}
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
}
.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.2s ease;
}
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.sidebar-user-role { font-size: 0.72rem; opacity: 0.7; }
.btn-logout {
    margin-top: 0.6rem;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-color: transparent;
    color: #fff;
    transition: opacity 0.2s ease;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Collapsed sidebar */
body.sidebar-collapsed .sidebar { width: 64px; }
body.sidebar-collapsed .sidebar-header { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-logo { opacity: 0; }
body.sidebar-collapsed .sidebar-nav a { justify-content: center; padding: 0.65rem 0.4rem; }
body.sidebar-collapsed .nav-text { opacity: 0; }
body.sidebar-collapsed .sidebar-user { justify-content: center; }
body.sidebar-collapsed .sidebar-user-meta { opacity: 0; }
body.sidebar-collapsed .btn-logout { opacity: 0; pointer-events: none; }

/* Main content */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}
body.sidebar-collapsed .main-content { margin-left: 64px; }

/* Topbar */
.topbar {
    height: 60px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 150;
}
.topbar-title { font-weight: 600; font-size: 1.05rem; }
.topbar-right { margin-left: auto; display: flex; align-items: center; }
.sidebar-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg); color: var(--text); }
.sidebar-toggle svg { width: 20px; height: 20px; }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    padding: 1rem 0;
    margin-top: auto;
}
.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Login page - white bg, glassmorphism, no scroll */
.login-page {
    overflow: hidden;
    height: 100vh;
    display: block;
}
.login-page main { padding: 0 !important; height: 100vh; overflow: hidden; }
.auth-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f7fc;
    padding: 2rem;
    overflow: hidden;
}
.auth-bg-shape {
    position: absolute;
    pointer-events: none;
}
.auth-bg-shape::before,
.auth-bg-shape::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.auth-bg-shape::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a78bfa, #7c3aed);
    top: -150px;
    right: -100px;
}
.auth-bg-shape::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c084fc, #6366f1);
    bottom: -120px;
    left: -80px;
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(30,27,75,0.08), 0 1px 3px rgba(30,27,75,0.04);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--text);
    font-size: 1.75rem;
    letter-spacing: 1px;
}
.auth-card .auth-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.auth-card .form-control {
    padding: 0.8rem 1rem;
    font-size: 1rem;
}
.auth-card .btn-primary {
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(81,70,201,0.15);
}
.auth-card .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(81,70,201,0.25);
}
.auth-card .form-group {
    margin-bottom: 1.5rem;
}
.auth-logo-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9e6fb 0%, #cfc6f6 100%);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(81,70,201,0.18);
}
.auth-logo-mark svg { width: 36px; height: 36px; }

/* Hero */
.hero { text-align: center; padding: 4rem 1rem 3rem; }
.hero h1 { font-size: 2.5rem; color: var(--primary); }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); margin: 0.5rem 0 1.5rem; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
/* Stat cards - sharp corners */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h2 { font-size: 1.5rem; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.subtitle { color: var(--text-secondary); margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: 0.15s;
    text-decoration: none !important;
    line-height: 1.5;
}
.btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-primary {
    background: var(--btn-primary-bg);
    color: #37289e;
    border-color: #c8bef2;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ddd8f9 0%, #cdc4f6 100%);
    border-color: #b8aeee;
    color: #37289e;
}
.btn-danger { background: linear-gradient(135deg, #fce4ec 0%, #f8c8d4 100%); color: #a01435; border-color: #f3b6c6; }
.btn-danger:hover { background: linear-gradient(135deg, #f9d6e0 0%, #f5bccb 100%); color: #a01435; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; text-align: center; }
.btn-outline-primary { color: var(--primary); border-color: #c8bef2; background: transparent; }
.btn-outline-primary:hover { background: var(--btn-primary-bg); color: #37289e; border-color: #b8aeee; }

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    width: 100%;
}

/* Tables - soft 3px radius */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th, .table td {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.table th { background: linear-gradient(180deg, #f8f8ff 0%, #efeefb 100%); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8f8ff; }
.table-sm th, .table-sm td { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
.table-responsive { overflow-x: auto; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-active, .badge-completed, .badge-good, .badge-ready, .badge-dispensed { background: #dcfce7; color: #166534; }
.badge-inactive, .badge-pending { background: #f1f5f9; color: #475569; }
.badge-scheduled, .badge-confirmed, .badge-sent_to_lab, .badge-in_production { background: #dbeafe; color: #1e40af; }
.badge-arrived, .badge-in_progress, .badge-qc_pass, .badge-shipped, .badge-received { background: #fef9c3; color: #854d0e; }
.badge-cancelled, .badge-no_show { background: #fce4ec; color: #c62828; }
.badge-expired { background: #fff3e0; color: #e65100; }
.badge-open { background: #e8f5e9; color: #2e7d32; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-secondary); }

.form-control, .form-group input[type="text"], .form-group input[type="number"],
.form-group input[type="password"], .form-group input[type="date"], .form-group input[type="time"],
.form-group input[type="email"], .form-group input[type="search"], .form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.15s;
}
.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,27,75,0.1);
}
.form-control-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

/* Textarea */
.form-group textarea, textarea.form-control {
    resize: vertical;
    min-height: 80px;
    max-height: 300px;
}
textarea.form-control-sm {
    min-height: 60px;
    max-height: 250px;
}

.form-actions { display: flex; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); margin-top: 1.25rem; }

/* Filter */
.filter-form { margin-bottom: 1.25rem; }
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.search-section {
    background: linear-gradient(135deg, #f3f1fc 0%, #ece9fa 100%);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.85rem 1rem;
}

/* Doctor Cards */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.doctor-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem !important; }
.doctor-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.3rem;
    flex-shrink: 0;
}
.doctor-info { flex: 1; }
.doctor-info h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.doctor-creds { font-size: 0.82rem; color: var(--text-secondary); }
.doctor-specialty { margin: 0.3rem 0; }
.doctor-contact { font-size: 0.8rem; color: var(--text-secondary); }
.doctor-license { font-size: 0.8rem; color: var(--text-secondary); }
.doctor-fee { font-size: 0.85rem; font-weight: 600; color: var(--success); margin-top: 0.3rem; }
.doctor-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.dash-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.dash-card-header h3 { font-size: 1rem; }

/* Pagination */
.pagination { display: flex; gap: 0.35rem; list-style: none; margin: 1.25rem 0; justify-content: center; }
.pagination a { display: block; padding: 0.5rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; color: var(--text); text-decoration: none; }
.pagination .active a { background: var(--primary); color: white; border-color: var(--primary); }

/* Empty state */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); font-size: 0.9rem; }

/* Progress Bar */
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; min-width: 60px; display: inline-block; vertical-align: middle; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }

/* Alert */
.alert { padding: 0.85rem 1.15rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.alert-error, .alert-danger { background: #fce4ec; border: 1px solid #fbc4d0; color: #c62828; }
.alert-warning { background: #fef9c3; border: 1px solid #fde68a; color: #854d0e; }
.alert-info { background: #dbeafe; border: 1px solid #bfdbfe; color: #1e40af; }

/* Dashboard glassmorphism */
.dashboard-page {
    background: linear-gradient(135deg, #f6f5fb 0%, #ece8f8 50%, #f2f0fa 100%);
}
.dash-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.dash-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
}
.dash-orbs .orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    top: -140px; right: -100px;
}
.dash-orbs .orb-2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, #c4b5fd, transparent 70%);
    bottom: -120px; left: 25%;
}
.dash-orbs .orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #93c5fd, transparent 70%);
    top: 35%; left: -140px;
}
.glass-card {
    position: relative;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(30,27,75,0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 1;
}
.glass-card:hover {
    box-shadow: 0 14px 44px rgba(30,27,75,0.13);
}
.glass-stat {
    text-align: center;
    border-radius: 0;
}
.glass-stat:hover {
    transform: translateY(-3px);
}
.glass-stat .stat-num {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
}
.glass-stat .stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.glass-card .table {
    background: transparent;
    border: none;
    border-radius: 3px;
    box-shadow: none;
}
.glass-card .table th { background: linear-gradient(180deg, rgba(248,248,255,0.9) 0%, rgba(239,238,251,0.9) 100%); }
.glass-card .table tr:hover td { background: rgba(255,255,255,0.55); }
.glass-card .list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: rgba(30,27,75,0.08); }

/* Compact clock time picker (from design template) */
.time-picker-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.time-picker-sm:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(81,70,201,0.1);
}
.time-field-sm {
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    width: 1.9rem;
    text-align: center;
    padding: 0.1rem;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    -moz-appearance: textfield;
    appearance: textfield;
}
.time-field-sm::-webkit-inner-spin-button,
.time-field-sm::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.time-field-sm:focus {
    background: #eeebff;
    color: var(--primary);
}
.separator-sm {
    font-size: 1rem;
    font-weight: 600;
    color: #9ca3af;
    user-select: none;
}
.ampm-toggle-sm {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 0.25rem;
}
.ampm-btn-sm {
    border: 1px solid var(--border);
    background: white;
    padding: 0.08rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 3px;
    line-height: 1.2;
    transition: all 0.15s;
}
.ampm-btn-sm.active {
    background: linear-gradient(135deg, #e9e6fb 0%, #d9d1f8 100%);
    color: #37289e;
    border-color: #c8bef2;
}

/* Prescription card expandable details */
.card details {
    border: 1px dashed var(--border);
    border-radius: 3px;
    background: rgba(247,246,255,0.6);
    padding: 0.35rem 0.6rem;
}
.card details > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}
.card details > summary:hover { color: #4c3bb8; }
.card details > summary::-webkit-details-marker { display: none; }
.card details > summary::before {
    content: '▸';
    display: inline-block;
    font-size: 0.8rem;
    transition: transform 0.18s;
    color: #8b80d6;
}
.card details[open] > summary::before { transform: rotate(90deg); }
.card details[open] > summary { color: #4c3bb8; }
.card details > div {
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dash-grid { grid-template-columns: 1fr; }
    .doctor-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .header-actions { flex-direction: column; align-items: flex-start; }
    .auth-wrapper { padding: 1rem; }
    .auth-card { padding: 2rem 1.5rem; }
}
