/* ==================== 管理后台公共样式 ==================== */

.admin-container {
    padding: 2rem 0;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--airtable-blue) 0%, #2d7ff9 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.page-header.vehicles {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.page-header.courses {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.page-header.appointments {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.page-header.announcements {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* 侧边栏卡片 */
.sidebar-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sidebar-card .user-profile {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.sidebar-card .user-profile.coach {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.sidebar-card .user-profile.student {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.sidebar-card .nav-link {
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--deep-navy);
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.sidebar-card .nav-link:hover {
    background: rgba(27, 97, 201, 0.05);
    color: var(--airtable-blue);
}

.sidebar-card .nav-link.active {
    background: rgba(27, 97, 201, 0.1);
    color: var(--airtable-blue);
    border-right-color: var(--airtable-blue);
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--text-weak);
    font-size: 0.875rem;
}

/* 表格样式 */
.table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table th {
    background-color: var(--light-surface);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

.table-card .table td {
    padding: 1rem;
    vertical-align: middle;
}

/* 表单卡片 */
.form-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

/* 搜索栏 */
.search-bar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 0.5rem;
}

.action-btns .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: 300px;
}

/* 趋势图 */
.trend-chart {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* 快速操作 */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

/* 最近活动 */
.activity-list {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-weak);
}

/* 响应式 */
@media (max-width: 991.98px) {
    .admin-container {
        padding: 1rem 0;
    }
    
    .sidebar-card {
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
}
