/* 家校工作系统 - 现代化主题样式 */
:root {
    /* 主色调 - 使用更现代的蓝色系 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* 状态颜色 */
    --success-500: #10b981;
    --success-600: #059669;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    
    /* 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 语义变量 */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-card: #ffffff;
    --border-light: var(--gray-200);
    --border-default: var(--gray-300);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--gray-50);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 应用容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 头部 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to right, var(--primary-600), var(--primary-700));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--primary-800);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.user-name {
    font-size: 14px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: white;
    border-right: 1px solid var(--light-color);
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 90;
}

.sidebar.collapsed {
    transform: translateX(-260px);
}

.nav-menu {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.nav-item.active {
    background: var(--primary-100);
    color: var(--primary-700);
    border-left-color: var(--primary-600);
    font-weight: 500;
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-size: 14px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-top: 60px;
    padding: 24px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* 页面头部 */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.page-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger-500);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: var(--danger-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-500);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: var(--success-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 响应式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-260px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Auto-fixed by fix-smart-management-css */
.action-bar {
    display: flex; gap: var(--spacing-md, 1rem); margin-bottom: var(--spacing-lg, 1.5rem);
}

.action-btns {
    display: flex; gap: var(--spacing-xs, 0.25rem);
}

.action-buttons {
    display: flex; gap: var(--spacing-sm, 0.5rem);
}

.btn-delete {
    color: var(--color-error, #ff3d71);
}

.btn-edit {
    color: var(--color-primary);
}

.btn-icon {
    padding: var(--spacing-sm, 0.5rem);
}

.data-section {
    margin-bottom: var(--spacing-xl, 1.5rem);
}

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

.empty-state {
    text-align: center; padding: var(--spacing-2xl, 2rem); color: var(--text-secondary, #94a3b8);
}

.filter-bar {
    display: flex; gap: var(--spacing-md, 1rem); margin-bottom: var(--spacing-lg, 1.5rem); flex-wrap: wrap;
}

.filter-group {
    display: flex; align-items: center; gap: var(--spacing-sm, 0.5rem);
}

.filter-section {
    margin-bottom: var(--spacing-md, 1rem);
}

.filter-select {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem); border-radius: var(--radius-md, 8px);
}

.form-actions {
    display: flex; gap: var(--spacing-md, 1rem); margin-top: var(--spacing-xl, 1.5rem);
}

.form-group {
    margin-bottom: var(--spacing-md, 1rem);
}

.form-input {
    width: 100%; padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem); border: 1px solid var(--border-color); border-radius: var(--radius-md, 8px); background: var(--bg-input, rgba(255,255,255,0.05)); color: inherit;
}

.form-label {
    display: block; font-weight: 500; margin-bottom: var(--spacing-xs, 0.25rem); color: var(--text-primary, #f8fafc);
}

.form-row {
    display: flex; gap: var(--spacing-md, 1rem); margin-bottom: var(--spacing-md, 1rem);
}

.form-section {
    margin-bottom: var(--spacing-xl, 1.5rem);
}

.form-select {
    width: 100%; padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem); border: 1px solid var(--border-color); border-radius: var(--radius-md, 8px); background: var(--bg-input, rgba(255,255,255,0.05)); color: inherit;
}

.form-textarea {
    width: 100%; padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem); border: 1px solid var(--border-color); border-radius: var(--radius-md, 8px); background: var(--bg-input, rgba(255,255,255,0.05)); color: inherit; min-height: 100px;
}

.full-width {
    width: 100%;
}

.label {
    font-weight: 500; margin-bottom: var(--spacing-xs, 0.25rem);
}

.loading {
    display: flex; align-items: center; justify-content: center; padding: var(--spacing-2xl, 2rem);
}

.logo {
    font-size: var(--font-size-xl, 1.25rem); font-weight: 700;
}

.modal {
    position: relative;
}

.modal-body {
    padding: var(--spacing-md, 1rem) 0;
}

.modal-close {
    position: absolute; top: var(--spacing-md, 1rem); right: var(--spacing-md, 1rem); background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary, #94a3b8); line-height: 1;
}

.modal-content {
    background: var(--bg-card, #1e293b); border-radius: var(--radius-lg, 12px); padding: var(--spacing-xl, 1.5rem); max-width: 90vw; max-height: 85vh; overflow-y: auto;
}

.modal-footer {
    padding-top: var(--spacing-md, 1rem); margin-top: var(--spacing-md, 1rem); border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.modal-header {
    padding-bottom: var(--spacing-md, 1rem); margin-bottom: var(--spacing-md, 1rem); border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.modal-title {
    font-size: var(--font-size-xl, 1.25rem); font-weight: var(--font-weight-semibold, 600); margin-bottom: var(--spacing-md, 1rem);
}

.page-container {
    max-width: var(--container-xl, 1280px); margin: 0 auto; padding: var(--spacing-lg, 1.5rem);
}

.progress-bar {
    height: 8px; background: var(--bg-input, rgba(255,255,255,0.1)); border-radius: var(--radius-full, 9999px); overflow: hidden;
}

.progress-fill {
    height: 100%; background: var(--gradient-primary); transition: width 0.3s;
}

.quick-actions {
    display: flex; gap: var(--spacing-sm, 0.5rem); flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-md, 1rem);
}

.section-title {
    font-size: var(--font-size-lg, 1.125rem); font-weight: 600; margin-bottom: var(--spacing-md, 1rem);
}

.sidebar-header {
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.stat-card {
    background: var(--bg-glass, rgba(255,255,255,0.05)); backdrop-filter: blur(12px); border: 1px solid var(--border-color, rgba(255,255,255,0.1)); border-radius: var(--radius-lg, 12px); padding: var(--spacing-lg, 1.5rem);
}

.stat-icon {
    font-size: var(--font-size-2xl, 1.5rem); opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: var(--font-size-sm, 0.875rem); color: var(--text-secondary, #94a3b8);
}

.stat-value {
    font-size: var(--font-size-xl, 1.25rem); font-weight: 700; color: var(--color-primary, #00d4ff);
}

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--spacing-md, 1rem);
}

.status-badge {
    display: inline-block; padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem); border-radius: var(--radius-full, 9999px); font-size: var(--font-size-xs, 0.75rem); font-weight: 500;
}

.success {
    color: var(--color-success, #00ff88);
}

.tab-content {
    padding: var(--spacing-lg, 1.5rem) 0;
}

.table-header {
    font-weight: 600; background: rgba(255,255,255,0.05);
}

.table-title {
    font-size: var(--font-size-lg, 1.125rem); font-weight: 600; margin-bottom: var(--spacing-md, 1rem);
}

.value {
    color: var(--text-secondary);
}

/* Auto-fixed by fix-smart-management-css */
.btn-view {
    color: #00d4ff;
}

.card-header {
    font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chart-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1rem;
}

.chart-container {
    padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 12px;
}

.chart-title {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem;
}

.content-section {
    margin-bottom: 1.5rem;
}

.content-tabs {
    margin-bottom: 1rem;
}

.count {
    font-weight: 700;
}

.desc {
    font-size: 0.875rem; color: #94a3b8;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.empty-state-icon {
    font-size: 3rem; opacity: 0.5; margin-bottom: 1rem;
}

.filter-actions {
    display: flex; gap: 0.5rem;
}

.filter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}

.filter-item {
    margin-bottom: 0.5rem;
}

.form-container {
    max-width: 600px;
}

.form-section-title {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem;
}

.header-actions {
    display: flex; gap: 0.5rem;
}

.header-title {
    font-size: 1.125rem; font-weight: 600;
}

.header-top {
    display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem;
}

.history-item {
    padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info {
    color: #0095ff;
}

.meta {
    font-size: 0.75rem; color: #64748b;
}

.modal-lg {
    max-width: 800px;
}

.pending {
    color: #ffab00;
}

.primary {
    color: #00d4ff;
}

.profile-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}

.profile-header {
    margin-bottom: 1rem;
}

.profile-info {
    font-size: 0.875rem;
}

.ranking-item {
    display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0;
}

.rating-stars {
    color: #ffab00;
}

.required {
    color: #ff3d71;
}

.stat-content {
    flex: 1;
}

.status-pending {
    color: #ffab00;
}

.student-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}

.student-basic-info {
    margin-bottom: 1rem;
}

.student-info {
    font-size: 0.875rem;
}

.student-item {
    padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.student-meta {
    font-size: 0.75rem; color: #94a3b8;
}

.tab-item {
    padding: 0.5rem 1rem; cursor: pointer;
}

.table-card {
    background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem;
}

.timeline-content {
    padding: 1rem;
}

.warning {
    color: #ffab00;
}

/* Auto-fixed by fix-smart-management-css */
.profile-main {
    flex: 1; padding: 1.5rem;
}

.search-results {
    margin-top: 1rem;
}

.student-profile-card {
    background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.1);
}

.student-result-item {
    padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Auto-fixed by fix-smart-management-css */
.error {
    color: var(--color-error, #ff3d71);
}

.history-content {
    padding: 1rem 0;
}

.history-header {
    font-weight: 600; margin-bottom: 0.75rem;
}

.history-list {
    list-style: none; padding: 0;
}

.load-more {
    text-align: center; padding: 1rem; color: var(--text-secondary, #94a3b8); cursor: pointer;
}

/* Auto-fixed by fix-smart-management-css */
.history-date {
    font-size: 0.875rem; color: #94a3b8;
}

.history-teacher {
    font-size: 0.875rem;
}
