/* ==================== 基础样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-100);
    min-height: 100vh;
    color: var(--gray-800);
}

/* ==================== 登录页面 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 500px;
}

.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.login-logo p { color: var(--gray-500); font-size: 14px; }

.role-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.role-card {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.role-card:hover { border-color: var(--primary-light); background: var(--gray-50); }
.role-card.active { border-color: var(--primary); background: rgba(37, 99, 235, 0.05); }
.role-card .role-icon { font-size: 32px; margin-bottom: 8px; }
.role-card .role-name { font-weight: 600; font-size: 14px; }
.role-card .role-desc { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.db-status { text-align: center; margin-top: 16px; font-size: 12px; color: var(--gray-500); }
.db-status.connected { color: var(--success); }
.db-status.error { color: var(--danger); }

/* ==================== 应用布局 ==================== */
.app-container { display: none; min-height: 100vh; }
.app-container.active { display: flex; }

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.sidebar-header { padding: 24px; border-bottom: 1px solid var(--gray-200); }
.sidebar-logo { font-size: 20px; font-weight: 700; color: var(--primary); }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--gray-50); color: var(--primary); }
.nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}
.nav-item .nav-icon { font-size: 18px; }
.nav-item .nav-text { font-size: 14px; font-weight: 500; }

.sidebar-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); }
.user-profile { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}
.user-name { font-size: 14px; font-weight: 600; }
.user-role { font-size: 12px; color: var(--gray-500); }

.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.header {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
}
.page-title { font-size: 20px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    position: relative;
}
.header-btn:hover { background: var(--gray-200); }
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    display: none;
}
.notification-dot.show { display: block; }
.logout-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logout-btn:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.content-area { flex: 1; padding: 24px; overflow-y: auto; }

/* ==================== 通用组件 ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}
.form-input:focus, .form-select:focus, textarea.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.3s;
}
.modal-content.modal-sm { max-width: 420px; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ==================== Toast 提示 ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }
.toast {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ==================== 统计卡片 ==================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.stat-card .stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--gray-800); }
.stat-card .stat-label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ==================== 数据表格 ==================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.table-title { font-size: 16px; font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 24px; text-align: left; }
.data-table th { background: var(--gray-50); font-size: 12px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; }
.data-table td { border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.data-table tr:hover { background: var(--gray-50); }

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.inactive { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.action-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}
.action-btn:hover { background: var(--gray-100); }
.action-btn.edit { color: var(--primary); }
.action-btn.delete { color: var(--danger); }

/* ==================== 视图切换按钮 ==================== */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
}
.view-btn:hover { background: var(--gray-200); }
.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* ==================== 课程表 ==================== */
.schedule-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    flex-wrap: wrap;
    gap: 16px;
}
.schedule-nav { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.schedule-nav button {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.schedule-nav button:hover { background: var(--gray-50); border-color: var(--primary); }
.schedule-nav .current-period { 
    font-size: 16px; 
    font-weight: 600; 
    min-width: 200px; 
    text-align: center; 
}

.schedule-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.schedule-header-cell {
    padding: 16px 8px;
    text-align: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 14px;
}
.schedule-header-cell small { font-weight: 400; color: var(--gray-500); }
.schedule-time-cell {
    padding: 12px 8px;
    text-align: center;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-600);
}
.schedule-cell {
    min-height: 80px;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    padding: 4px;
}
.schedule-lesson {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.schedule-lesson:hover { 
    opacity: 0.9; 
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.schedule-lesson.completed {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}
.schedule-lesson.cancelled {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
    opacity: 0.6;
}
.schedule-lesson .lesson-title { font-weight: 600; margin-bottom: 2px; }
.schedule-lesson .lesson-info { opacity: 0.9; font-size: 11px; }

/* ==================== 日视图 ==================== */
.day-view-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.day-time-row {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
}
.day-time-row:last-child { border-bottom: none; }
.day-time-label {
    width: 80px;
    padding: 16px;
    background: var(--gray-50);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-align: center;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.day-time-content {
    flex: 1;
    padding: 12px;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.day-empty-slot {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
}
.day-lesson-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}
.day-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.day-lesson-card.completed {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}
.day-lesson-card.cancelled {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
    opacity: 0.6;
}
.day-lesson-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.day-lesson-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
}
.day-lesson-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.day-summary {
    background: var(--white);
    box-shadow: var(--shadow);
}
.day-summary h4 { margin-bottom: 8px; }

/* ==================== 月视图 ==================== */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.month-header-cell {
    padding: 12px;
    text-align: center;
    background: var(--gray-50);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}
.month-header-cell.weekend { color: var(--danger); }
.month-cell {
    min-height: 100px;
    padding: 8px;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.2s;
}
.month-cell:hover { background: var(--gray-50); }
.month-cell.empty { 
    background: var(--gray-50); 
    cursor: default;
}
.month-cell.today {
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid var(--primary);
}
.month-day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.month-cell.today .month-day-number { color: var(--primary); }
.month-lessons-count {
    margin-top: 4px;
}
.lesson-dot {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 11px;
}

/* ==================== 课程详情 ==================== */
.lesson-detail-content {
    padding: 8px 0;
}
.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.detail-row:last-child { border-bottom: none; }
.detail-row label {
    width: 80px;
    color: var(--gray-500);
    font-size: 14px;
    flex-shrink: 0;
}
.detail-row span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* ==================== Day 3 新增：充值相关样式 ==================== */
.recharge-info {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.recharge-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}
.recharge-info .info-row:first-child {
    border-bottom: 1px solid var(--gray-200);
}
.recharge-info .info-label {
    color: var(--gray-500);
}
.recharge-info .info-value {
    font-weight: 600;
}
.recharge-preview {
    background: rgba(16, 185, 129, 0.1);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
}
.recharge-preview strong {
    color: var(--success);
    font-size: 20px;
}

/* 余额显示样式 */
.balance-warning { color: var(--danger); font-weight: 600; }
.balance-low { color: var(--warning); font-weight: 600; }
.balance-normal { color: var(--gray-700); }

/* ==================== Day 3 新增：请假/调课样式 ==================== */
.leave-lesson-info {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.leave-lesson-info .lesson-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}
.leave-lesson-info .lesson-detail {
    color: var(--gray-600);
    font-size: 14px;
}

/* ==================== Day 3 新增：审批详情样式 ==================== */
.approval-info {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
}
.approval-info .info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}
.approval-info .info-item:last-child {
    border-bottom: none;
}
.approval-info .info-item label {
    width: 80px;
    color: var(--gray-500);
    font-size: 13px;
}
.approval-info .info-item span {
    flex: 1;
    font-size: 14px;
}

/* ==================== Day 3 新增：结算相关样式 ==================== */
.settlement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}
.settlement-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}
.settlement-filters select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.settlement-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.settlement-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.settlement-card .card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.settlement-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.settlement-card .card-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.settlement-detail-header {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.settlement-detail-header h4 {
    margin-bottom: 16px;
    font-size: 18px;
}
.settlement-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.settlement-detail-stats .stat-item {
    text-align: center;
}
.settlement-detail-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.settlement-detail-stats .stat-label {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--gray-700); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .schedule-grid { 
        grid-template-columns: 60px repeat(7, 1fr); 
        font-size: 12px; 
    }
    .schedule-nav .current-period { min-width: 160px; font-size: 14px; }
}

@media (max-width: 768px) {
    .sidebar { 
        position: fixed; 
        left: -260px; 
        top: 0; 
        bottom: 0; 
        z-index: 100; 
        transition: left 0.3s; 
    }
    .sidebar.open { left: 0; }
    .menu-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .schedule-header { flex-direction: column; align-items: stretch; }
    .view-toggle { justify-content: center; }
    .schedule-nav { justify-content: center; }
    .schedule-grid { 
        grid-template-columns: 50px repeat(7, 1fr); 
        font-size: 11px;
    }
    .schedule-header-cell { padding: 8px 4px; }
    .schedule-lesson { padding: 4px; font-size: 10px; }
    .schedule-lesson .lesson-info { display: none; }
    .day-lesson-card { min-width: 100%; }
    .month-cell { min-height: 70px; padding: 4px; }
    .month-day-number { font-size: 12px; }
    .lesson-dot { font-size: 9px; padding: 1px 6px; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn { width: 100%; justify-content: center; }
    .settlement-detail-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .login-container { padding: 24px; }
    .role-selector { grid-template-columns: 1fr; }
    .content-area { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .modal-content { margin: 16px; }
}
