/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 管理后台容器 */
.admin-container {
    min-height: 100vh;
    background: #f8f9fa;
}

/* 顶部导航样式 */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* 主要内容区域 */
.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* 数据管理区域 */
.data-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 标签页按钮 */
.tab-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 表格容器 */
.table-container {
    padding: 2rem;
}

/* 筛选区域 */
.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.filter-section label {
    font-weight: 500;
    margin-right: 1rem;
    color: #495057;
}

.filter-section select {
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.data-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

/* 表格头部操作按钮 */
.table-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* 操作按钮 */
.action-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-approve {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-approve:hover {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-reject {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-reject:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-edit {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn-edit:hover {
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.btn-delete {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

.modal-body-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-body {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-body:last-child {
    border-bottom: none;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 二维码预览 */
#qrCodePreview {
    margin: 1rem 0;
    text-align: center;
}

#qrCodeImage {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tab-buttons {
        justify-content: center;
    }
    
    .table-container {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
}

/* 成功/错误消息提示 */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 登录页面样式 */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: loginSlideIn 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 3rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    height: 3.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.login-btn {
    width: 100%;
    height: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 响应式登录页面 */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        max-width: 100%;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
    }
} 
/* ===================== 全新仪表盘样式 ===================== */
:root {
    --primary-color: #4c6fff;
    --primary-dark: #3b5bdb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --purple-color: #8b5cf6;
    --sidebar-gradient: linear-gradient(180deg, #1e293b 0%, #111827 100%);
    --card-bg: #ffffff;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body {
    background: #f5f7fb;
    color: #1f2937;
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--sidebar-gradient);
    color: #fff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.brand-text h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.brand-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 导航项带子菜单 */
.nav-item-with-sub {
    position: relative;
}

.nav-item-with-sub > .nav-link {
    position: relative;
    padding-right: 40px;
}

.nav-arrow {
    position: absolute;
    right: 20px;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-item-with-sub.active .nav-arrow {
    transform: rotate(180deg);
}

/* 子导航菜单 */
.sub-nav {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.sub-nav.show {
    display: block;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.sub-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sub-nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.sub-nav-link.active::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(76, 111, 255, 0.18);
    color: #fff;
    transform: translateX(4px);
}

.nav-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: auto;
}

.footer-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.6;
}

.dashboard-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.header-left h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #111827;
}

.header-left p {
    color: var(--muted-color);
}

.header-welcome {
    font-size: 1rem;
}

.header-description {
    margin-top: 4px;
    color: var(--muted-color);
    font-size: 0.95rem;
}

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

.datetime-card {
    background: #eef2ff;
    color: #4c6fff;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.2;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(76, 111, 255, 0.12);
}

.datetime-card span:last-child {
    font-size: 1.4rem;
}

.header-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e2e8f0;
    color: #1f2937;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.header-btn.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.overview-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.overview-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.card-icon.primary {
    background: linear-gradient(135deg, #4c6fff, #809bff);
}

.card-icon.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.card-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.card-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-label {
    font-size: 0.95rem;
    color: var(--muted-color);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.status-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title {
    font-size: 0.9rem;
    color: var(--muted-color);
}

.status-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
}

.status-caption {
    font-size: 0.8rem;
    color: #9ca3af;
}

.quick-actions {
    margin: 32px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.quick-action {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-action:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f5ff;
    color: #4c6fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.action-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.action-text p {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.data-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    margin-bottom: 48px;
}

.data-card-header {
    padding: 28px 32px 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.data-card-header h2 {
    font-size: 1.6rem;
    color: #111827;
    margin-bottom: 6px;
}

.data-card-header p {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.tab-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #eef2ff;
    color: #4c6fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 0 rgba(76, 111, 255, 0.25);
}

.tab-btn:hover {
    box-shadow: inset 0 0 0 2px rgba(76, 111, 255, 0.25);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4c6fff, #809bff);
    color: #fff;
    box-shadow: 0 14px 30px rgba(76, 111, 255, 0.25);
}

.data-panels {
    padding: 0 32px 32px;
}

.data-panel {
    display: none;
    padding-top: 24px;
}

.data-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h3 {
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 4px;
}

.panel-header p {
    color: var(--muted-color);
    font-size: 0.9rem;
    max-width: 640px;
}

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

.panel-actions label {
    font-weight: 600;
    color: var(--muted-color);
}

.panel-actions select {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 0.9rem;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-actions select:focus {
    outline: none;
    border-color: #4c6fff;
    box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.15);
}

.table-container {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f3f6ff;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4c6fff;
    border-bottom: 1px solid #e1e7ff;
    letter-spacing: 0.5px;
    text-transform: none;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f6;
    font-size: 0.92rem;
    color: #1f2937;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f9fbff;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(76, 111, 255, 0.08);
}

.data-table .empty-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted-color);
    font-size: 0.95rem;
}

.action-btn {
    background: linear-gradient(135deg, #4c6fff, #5f7bff);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 20px rgba(76, 111, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(76, 111, 255, 0.24);
}

.btn-approve {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.24);
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.status-pending {
    background: rgba(249, 168, 37, 0.12);
    color: #b45309;
}

.status-approved {
    background: rgba(52, 211, 153, 0.12);
    color: #047857;
}

.status-rejected {
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
}

.status-matched {
    background: rgba(129, 140, 248, 0.15);
    color: #4338ca;
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 18px 24px;
    gap: 12px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.form-group textarea {
    min-height: 100px;
}

#teacherDetails,
#parentDetails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 18px;
}

#teacherDetails p,
#parentDetails p {
    font-size: 0.92rem;
    color: #374151;
}

#teacherDetails strong,
#parentDetails strong {
    color: #111827;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-brand {
        margin-bottom: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-main {
        padding: 24px;
    }

    .data-card-header {
        padding: 24px 20px 0;
    }

    .data-panels {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .dashboard-sidebar {
        align-items: flex-start;
    }
}
