/* CSS变量定义 - 统一管理颜色、间距、圆角等设计系统 */
:root {
  /* 颜色系统 - 品牌主色和辅助色 */
  --color-primary: #4361ee;
  --color-primary-dark: #3a0ca3;
  --color-primary-light: #7209b7;
  --color-secondary: #f72585;
  --color-secondary-dark: #b5179e;
  --color-secondary-light: #f896d8;
  --color-success: #4cc9f0;
  --color-success-dark: #4361ee;
  --color-success-light: #4895ef;
  --color-warning: #fca311;
  --color-warning-dark: #e85d04;
  --color-warning-light: #fb8500;
  --color-danger: #e63946;
  --color-danger-dark: #c1121f;
  --color-danger-light: #f72585;
  --color-info: #4895ef;
  --color-info-dark: #4361ee;
  --color-info-light: #4cc9f0;
  
  /* 中性色 */
  --color-slate-50: #f8f9fa;
  --color-slate-100: #f1f3f5;
  --color-slate-200: #e9ecef;
  --color-slate-300: #dee2e6;
  --color-slate-400: #ced4da;
  --color-slate-500: #adb5bd;
  --color-slate-600: #6c757d;
  --color-slate-700: #495057;
  --color-slate-800: #343a40;
  --color-slate-900: #212529;
  
  /* 间距系统 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* 圆角 */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-3d: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 字体大小 */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  
  /* 字重 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Z-index层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* 全局字体设置 */
* {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-slate-50);
    color: var(--color-slate-800);
    line-height: 1.6;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-slate-100);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

::-webkit-scrollbar-thumb:active {
    background: var(--color-slate-500);
}

/* 卡片悬停效果 */
.hover-card {
    transition: all var(--transition-normal);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 侧边栏工具提示 - 悬浮在图标正右边 */
.sidebar-tooltip {
    position: fixed;
    left: 80px;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: var(--font-medium);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-tooltip);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.sidebar-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--color-primary);
}

.sidebar-collapsed .sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(4px);
}

/* 侧边栏动画 */
.sidebar-transition {
    transition: all var(--transition-normal);
}

/* 响应式设计 - 移动端默认隐藏sidebar */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: var(--z-fixed);
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    
    #sidebar.sidebar-open {
        transform: translateX(0);
        animation: slideIn var(--transition-normal) ease-out;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* 脉动动画 */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* 统计卡片图标装饰 */
.stat-icon-decor {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    font-size: 60px;
    pointer-events: none;
}

/* 操作按钮悬停效果 */
.action-btn {
    transition: all var(--transition-fast);
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 焦点样式 - 提高键盘导航可访问性 */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    z-index: 10;
}

/* 禁用状态样式 */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* 日历样式 */
.calendar-day {
    transition: all var(--transition-fast);
    border-radius: var(--radius-lg);
    padding: 12px;
    text-align: center;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: var(--color-slate-100);
    transform: translateY(-2px);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-md);
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(247, 37, 133, 0.2);
}

.calendar-day.active {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-lg);
}

/* Tailwind 自定义配置 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    
    /* 玻璃态效果 */
    .glass-effect {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
    
    /* 文字渐变 */
    .text-gradient {
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* 按钮渐变 */
    .btn-gradient {
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
        color: white;
        transition: all var(--transition-normal);
    }
    
    .btn-gradient:hover {
        background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }
    
    /* 卡片阴影 */
    .card-shadow {
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
    }
    
    .card-shadow:hover {
        box-shadow: var(--shadow-xl);
    }
}

/* 欢迎卡片样式 */
.welcome-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* 按钮样式增强 */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 工作时间表样式 */
.schedule-grid {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 1px;
    background-color: var(--color-slate-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.schedule-grid:hover {
    box-shadow: var(--shadow-xl);
}

.schedule-header {
    background: linear-gradient(135deg, var(--color-slate-50), var(--color-slate-100));
    padding: 0.75rem;
    text-align: center;
    font-weight: var(--font-semibold);
    border-bottom: 1px solid var(--color-slate-200);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.schedule-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.schedule-header:hover {
    background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
    transform: translateY(-1px);
}

.schedule-header:hover::before {
    transform: scaleX(1);
}

.schedule-time-slot {
    background: linear-gradient(135deg, var(--color-slate-50), var(--color-slate-100));
    padding: 0.5rem;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--color-slate-600);
    border-right: 1px solid var(--color-slate-200);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.schedule-time-slot:hover {
    background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
    color: var(--color-primary);
}

.schedule-cell {
    background-color: white;
    padding: 0.5rem;
    min-height: 80px;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.schedule-cell:hover {
    background-color: var(--color-slate-50);
    box-shadow: inset 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.schedule-cell.today {
    background-color: rgba(67, 97, 238, 0.05);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.schedule-item {
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    font-size: var(--font-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.schedule-item:hover::before {
    transform: translateX(100%);
}

.schedule-item.consultation {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.schedule-item.consultation:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.2);
}

.schedule-item.supervision {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #5b21b6;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

.schedule-item.supervision:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    box-shadow: 0 10px 15px rgba(79, 70, 229, 0.2);
}

.schedule-item.group {
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
    color: #9a3412;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.schedule-item.group:hover {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    box-shadow: 0 10px 15px rgba(245, 158, 11, 0.2);
}

.schedule-item.teaching {
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    color: #065f46;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
}

.schedule-item.teaching:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    box-shadow: 0 10px 15px rgba(16, 185, 129, 0.2);
}

/* 日视图样式 */
.day-schedule-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1px;
    background-color: var(--color-slate-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.day-schedule-grid:hover {
    box-shadow: var(--shadow-xl);
}

.day-schedule-time-slot {
    background: linear-gradient(135deg, var(--color-slate-50), var(--color-slate-100));
    padding: 0.5rem;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--color-slate-600);
    border-right: 1px solid var(--color-slate-200);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.day-schedule-time-slot:hover {
    background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
    color: var(--color-primary);
}

.day-schedule-cell {
    background-color: white;
    padding: 0.5rem;
    min-height: 90px;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.day-schedule-cell:hover {
    background-color: var(--color-slate-50);
    box-shadow: inset 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.day-schedule-cell.today {
    background-color: rgba(67, 97, 238, 0.05);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

/* 列表视图样式 */
.list-view {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.list-view:hover {
    box-shadow: var(--shadow-xl);
}

.list-view table {
    border-collapse: separate;
    border-spacing: 0;
}

.list-view th {
    background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
    padding: 1rem;
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--color-slate-700);
    border-bottom: 2px solid var(--color-primary);
}

.list-view td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-slate-100);
    transition: all var(--transition-fast);
}

.list-view tr:hover td {
    background-color: var(--color-slate-50);
    transform: translateX(4px);
}

.list-view tr:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 状态标签样式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.status-badge.available {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success-dark);
}

.status-badge.occupied {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger-dark);
}

.status-badge.cancelled {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--color-slate-700);
}

/* 活动类型标签样式 */
.activity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.activity-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.activity-badge.consultation {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-info-dark);
}

.activity-badge.supervision {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary-dark);
}

.activity-badge.group {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-dark);
}

.activity-badge.teaching {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success-dark);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: all var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.flex {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, white, var(--color-slate-50));
    border-radius: var(--radius-2xl);
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-slate-100);
    background: linear-gradient(135deg, var(--color-slate-50), white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-title {
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
    color: var(--color-slate-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: var(--color-primary);
    font-size: var(--font-xl);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-slate-100);
    background: linear-gradient(135deg, white, var(--color-slate-50));
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: var(--font-xl);
    color: var(--color-slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.close-modal-btn:hover {
    color: var(--color-slate-700);
    background-color: var(--color-slate-100);
    transform: rotate(90deg);
}

/* 模态框动画 */
.modal-enter {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.modal-exit {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: opacity 300ms ease-in, transform 300ms ease-in;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    color: var(--color-slate-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--color-slate-400);
}

.form-control:disabled {
    background-color: var(--color-slate-50);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    transform: translateY(-1px);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
}

.btn-outline {
    background: transparent;
    color: var(--color-slate-700);
    border: 2px solid var(--color-slate-200);
}

.btn-outline:hover {
    background: var(--color-slate-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-danger-dark), var(--color-danger));
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .schedule-grid {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .schedule-time-slot {
        font-size: var(--font-xs);
        padding: 0.25rem;
    }
    
    .schedule-item {
        padding: 0.5rem;
        font-size: var(--font-xs);
    }
    
    .day-schedule-grid {
        grid-template-columns: 80px 1fr;
    }
    
    .day-schedule-time-slot {
        font-size: var(--font-xs);
        padding: 0.25rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --color-slate-50: #0f172a;
        --color-slate-100: #1e293b;
        --color-slate-200: #334155;
        --color-slate-300: #475569;
        --color-slate-400: #64748b;
        --color-slate-500: #94a3b8;
        --color-slate-600: #cbd5e1;
        --color-slate-700: #e2e8f0;
        --color-slate-800: #f1f5f9;
        --color-slate-900: #f8fafc;
    }
    
    body {
        background-color: var(--color-slate-50);
        color: var(--color-slate-800);
    }
    
    .schedule-cell {
        background-color: var(--color-slate-100);
    }
    
    .schedule-cell:hover {
        background-color: var(--color-slate-200);
    }
    
    .modal-content {
        background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-50));
        border: 1px solid var(--color-slate-300);
    }
    
    .modal-header {
        background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-50));
        border-bottom: 1px solid var(--color-slate-300);
    }
    
    .modal-footer {
        background: linear-gradient(135deg, var(--color-slate-50), var(--color-slate-100));
        border-top: 1px solid var(--color-slate-300);
    }
    
    .form-control {
        background-color: var(--color-slate-100);
        border-color: var(--color-slate-300);
        color: var(--color-slate-800);
    }
    
    .form-select {
        background-color: var(--color-slate-100);
        border-color: var(--color-slate-300);
        color: var(--color-slate-800);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    }
}