/* ==================== 主题色彩 ==================== */
:root {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #F0F9FF 100%);
    min-height: 100vh;
    color: #1F2937;
    line-height: 1.6;
}

/* ==================== 登录页面 ==================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #F093FB 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-box {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 56px 48px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: 1;
}

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

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

.icon-wrapper {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.icon-wrapper i {
    font-size: 44px;
    color: white;
}

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6B7280;
    font-size: 15px;
    font-weight: 400;
}

.login-form { margin-bottom: 28px; }

.form-item { margin-bottom: 28px; }

.form-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i {
    color: var(--primary);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: white;
}

.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.login-footer {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.login-footer p { margin: 0; }

/* ==================== 主布局 ==================== */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    display: none;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show { display: block; }

.sidebar-brand {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.brand-icon i { font-size: 24px; color: white; }

.brand-text h3 { font-size: 17px; font-weight: 700; margin: 0; color: white; }
.brand-text span { font-size: 12px; color: #9CA3AF; }

.nav-section {
    flex: 1;
    padding: 24px 14px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 14px;
    margin-bottom: 14px;
}

.nav-list { list-style: none; }

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #9CA3AF;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.nav-link i { 
    font-size: 19px; 
    width: 24px;
    text-align: center;
    transition: color 0.25s ease;
}

.nav-link:hover { 
    background: rgba(255,255,255,0.05); 
    color: #F3F4F6; 
}

.nav-link:hover::before { transform: scaleY(1); }

.nav-link.active { 
    background: rgba(99, 102, 241, 0.15); 
    color: var(--primary-light); 
}

.nav-link.active i { color: var(--primary-light); }
.nav-link.active::before { transform: scaleY(1); }

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    transition: background 0.25s ease;
}

.user-card:hover { background: rgba(255,255,255,0.08); }

.user-card .avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card .avatar i { color: white; font-size: 20px; }
.user-card .info h4 { font-size: 14px; font-weight: 600; margin: 0; color: white; }
.user-card .info p { font-size: 12px; color: #9CA3AF; margin: 2px 0 0; }

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    height: var(--header-height);
    background: white;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-left { display: flex; align-items: center; gap: 20px; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #6B7280;
    cursor: pointer;
    padding: 10px;
}

.header h2 { 
    font-size: 20px; 
    font-weight: 700; 
    margin: 0;
    color: #111827;
}

.header-right { display: flex; align-items: center; gap: 20px; }

.header-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: #F3F4F6;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header-icon:hover { 
    background: #E5E7EB;
    transform: translateY(-2px);
}

.header-icon i { font-size: 20px; color: #4B5563; }
.header-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    transition: all 0.25s ease;
}

.user-menu:hover { background: #F3F4F6; }

.user-menu .avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu .avatar i { color: white; font-size: 16px; }
.user-menu span { font-size: 15px; font-weight: 600; color: #1F2937; }

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 1000;
    border: 1px solid #F3F4F6;
}

.user-dropdown.show { display: block; animation: fadeIn 0.2s ease; }

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4B5563;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown a:hover { background: #F3F4F6; color: #1F2937; }
.user-dropdown a i { width: 18px; }

/* 内容区 */
.content {
    flex: 1;
    padding: 32px;
}

/* ==================== 页面样式 ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
}

.page-header p { color: #6B7280; margin: 6px 0 0; font-size: 15px; }

.page-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn-primary { 
    background: var(--primary-gradient); 
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-success { 
    background: var(--success); 
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-info { 
    background: var(--info); 
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-warning { 
    background: var(--warning); 
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-danger { 
    background: var(--danger); 
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-outline-primary { 
    background: transparent; 
    color: var(--primary); 
    border: 2px solid var(--primary); 
}
.btn-outline-primary:hover { 
    background: var(--primary);
    color: white;
}

.btn-outline-danger { 
    background: transparent; 
    color: var(--danger); 
    border: 2px solid var(--danger); 
}
.btn-outline-danger:hover { 
    background: var(--danger);
    color: white;
}

.btn-outline-info { 
    background: transparent; 
    color: var(--info); 
    border: 2px solid var(--info); 
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.page-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-body { padding: 28px; }

.page-header:not(:first-child) {
    padding: 24px 28px;
    border-bottom: 1px solid #F3F4F6;
}

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-xl); 
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon.blue { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #2563EB; }
.stat-icon.green { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); color: #059669; }
.stat-icon.purple { background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); color: #7C3AED; }
.stat-icon.orange { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.stat-icon.red { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }
.stat-icon.cyan { background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%); color: #0891B2; }
.stat-icon.yellow { background: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 100%); color: #CA8A04; }

.stat-info h3 { 
    font-size: 32px; 
    font-weight: 800; 
    margin: 0; 
    color: #111827;
    letter-spacing: -1px;
}
.stat-info p { font-size: 14px; color: #6B7280; margin: 6px 0 0; font-weight: 500; }

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #F3F4F6;
}

.table th {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td { 
    font-size: 14px; 
    color: #374151; 
    font-weight: 500;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover { 
    background: #F9FAFB;
    transform: scale(1.002);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar .form-control {
    padding: 12px 18px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.search-bar .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-bar .btn {
    padding: 12px 24px;
}

/* 标签 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); color: #059669; }
.badge-danger { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }
.badge-warning { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.badge-info { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #2563EB; }
.badge-purple { background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); color: #7C3AED; }
.badge-orange { background: linear-gradient(135deg, #FFEDD5 0%, #FCD34D 100%); color: #EA580C; }
.badge-cyan { background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%); color: #0891B2; }

/* 考勤状态 */
.attendance-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.attendance-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.attendance-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.attendance-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.attendance-icon.green { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); color: #059669; }
.attendance-icon.orange { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.attendance-icon.red { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }

.attendance-info h4 { font-size: 28px; font-weight: 800; margin: 0; color: #111827; }
.attendance-info p { font-size: 14px; color: #6B7280; margin: 4px 0 0; font-weight: 500; }

/* 进度条 */
.attendance-progress {
    margin-top: 20px;
}

.progress-bar-wrapper { display: flex; align-items: center; gap: 16px; }
.progress-label { font-size: 14px; font-weight: 600; width: 60px; }
.progress { flex: 1; height: 12px; background: #E5E7EB; border-radius: 6px; overflow: hidden; }
.progress-bar { 
    height: 100%; 
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.progress-text { font-size: 14px; font-weight: 700; color: var(--primary); width: 60px; text-align: right; }

/* 公告 */
.notice-item {
    padding: 20px;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.25s ease;
    cursor: pointer;
}

.notice-item:last-child { border-bottom: none; }
.notice-item:hover { 
    background: #F9FAFB;
    padding-left: 28px;
    border-left: 4px solid var(--primary);
}

.notice-item h4 { 
    font-size: 16px; 
    font-weight: 600; 
    margin: 0 0 10px;
    color: #1F2937;
}
.notice-item p { 
    font-size: 14px; 
    color: #6B7280; 
    margin: 0 0 10px;
    line-height: 1.7;
}
.notice-item small { 
    color: #9CA3AF; 
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px;
    background: white;
    border: 2px solid #F3F4F6;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.quick-action-btn i { 
    font-size: 32px; 
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.quick-action-btn span { font-size: 13px; font-weight: 600; color: #374151; }

/* 表单 */
.form-group { margin-bottom: 24px; }
.form-group label { 
    display: block; 
    font-size: 14px; 
    font-weight: 600; 
    color: #374151; 
    margin-bottom: 10px;
}

.form-control { 
    width: 100%; 
    padding: 14px 18px; 
    border: 2px solid #E5E7EB; 
    border-radius: var(--border-radius-sm); 
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: #FAFAFA;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: white;
}

/* Toast提示 */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; }
.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
    border-left: 4px solid;
}

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

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast i { font-size: 20px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

.toast span { font-size: 14px; color: #374151; font-weight: 500; }

/* 模态框 */
.modal-content { 
    border-radius: var(--border-radius-xl); 
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.modal-header { 
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%); 
    padding: 20px 28px; 
    border-bottom: 1px solid #E5E7EB;
}
.modal-title { font-size: 18px; font-weight: 700; margin: 0; color: #111827; }
.modal-body { padding: 28px; }
.modal-footer { 
    padding: 18px 28px; 
    background: #F9FAFB; 
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 课程表 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #E5E7EB;
}

.schedule-table th {
    background: linear-gradient(180deg, #374151 0%, #1F2937 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 8px;
}

.schedule-table th:first-child {
    background: linear-gradient(180deg, #4B5563 0%, #374151 100%);
    width: 80px;
}

.schedule-table td {
    font-size: 13px;
    min-width: 100px;
    vertical-align: top;
}

.schedule-table td:first-child {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.schedule-cell {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.schedule-cell.has-class {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 1px solid #C7D2FE;
}

.schedule-cell.empty {
    padding: 8px;
}

.schedule-cell .subject-name {
    font-weight: 700;
    font-size: 13px;
    color: #1F2937;
    display: block;
    margin-bottom: 4px;
}

.schedule-cell .classroom {
    font-size: 11px;
    color: #6B7280;
    display: block;
}

/* 颜色辅助类 */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: #9CA3AF !important; }
.text-center { text-align: center !important; }
.text-primary { color: var(--primary) !important; }

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    color: #6B7280;
    font-size: 16px;
}

.loading i { 
    margin-right: 12px;
    font-size: 24px;
    animation: spin 1s linear infinite;
}

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

/* 提示框 */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }
.alert-success { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); color: #059669; }
.alert-warning { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #D97706; }
.alert-info { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #2563EB; }

/* 网格 */
.row { display: flex; gap: 28px; flex-wrap: wrap; }
.col-md-6 { flex: 1; min-width: 320px; }
.col-md-12 { flex: 1; min-width: 100%; }

/* 间距 */
.mb-3 { margin-bottom: 20px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-3 { margin-top: 20px !important; }

/* Flex辅助 */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* 响应式 */
@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .header h2 {
        font-size: 17px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .content {
        padding: 20px 16px;
    }
    .page-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 40px 24px;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar .form-control {
        min-width: 100%;
    }
}
