    /* 全局變量 */
    :root {
        /* 主色調 */
        --primary: #0071e3;
        --primary-light: #E3F2FF;
        --primary-dark: #0058b0;
        --success: #34C759;
        --success-light: #E3FCE9;
        --warning: #FF9500;
        --warning-light: #FFF4E5;
        --danger: #FF3B30;
        --danger-light: #FFE5E5;
        
        /* 中性色 */
        --bg: #f5f5f7;
        --card-bg: #ffffff;
        --text: #1d1d1f;
        --text-secondary: #6e6e73;
        --border: #d2d2d7;
        
        /* 特效 */
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
        --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        
        /* 補充漸變色 */
        --gradient-blue: linear-gradient(135deg, #0071e3, #00a3ff);
        --gradient-success: linear-gradient(135deg, #34C759, #30db5b);
        --gradient-warning: linear-gradient(135deg, #FF9500, #ffad33);
        --gradient-danger: linear-gradient(135deg, #FF3B30, #ff6961);
        
        /* 補 */
        --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
        --shadow-card: 0 1px 3px rgba(0,0,0,0.1);
        
        /* 動畫時間 */
        --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 基礎樣式 */
    body {
        font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
        margin: 0;
        padding: 0;
        background: var(--bg);
        color: var(--text);
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }

    /* 導航欄 */
    .nav-menu {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius-lg);
        margin-bottom: 24px;
        padding: 16px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .nav-menu .btn {
        background: transparent;
        color: var(--text);
        padding: 8px 16px;
        font-weight: 500;
    }

    .nav-menu .btn:hover {
        background: var(--bg);
        transform: none;
        box-shadow: none;
    }

    .nav-menu .btn.danger {
        color: var(--danger);
    }

    .nav-menu .btn.danger:hover {
        background: var(--danger-light);
    }

    /* 年度選擇器 */
    .year-selector {
        margin-bottom: 32px;
    }

    .year-selector select {
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text);
        background: var(--card-bg);
        min-width: 200px;
        transition: all 0.2s ease;
    }

    .year-selector select:hover {
        border-color: var(--primary);
    }

    .year-selector select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    .dashboard-section {
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        padding: 20px;
        box-shadow: var(--shadow-card);
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        margin: 0 0 16px 0;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .stat-card {
        background: var(--bg);
        border-radius: var(--radius-md);
        padding: 16px;
        transition: var(--transition-normal);
    }

    .stat-card:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, var(--bg), white);
    }

    .stat-card h3 {
        margin: 0 0 8px;
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .stat-value {
        font-size: 28px;
        background: var(--gradient-blue);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 8px;
    }

    /* 動統計區 */
    .activity-overview {
        background: linear-gradient(180deg, var(--card-bg) 0%, rgba(255,255,255,0.95) 100%);
        box-shadow: var(--shadow-card);
        border: none;
        border-radius: var(--radius-md);
        padding: 24px;
        margin-bottom: 24px;
    }

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

    .section-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }

    /* 活動進度 */
    .school-progress {
        background: rgba(255,255,255,0.6);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: var(--shadow-card);
        transition: var(--transition-normal);
        border-radius: var(--radius-sm);
        padding: 20px;
        margin-bottom: 16px;
    }

    .school-progress:hover {
        transform: translateX(8px);
        background: var(--primary-light);
        box-shadow: var(--shadow-hover);
    }

    .school-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }

    .progress-stats {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

    .progress-stats .percentage {
        margin-left: auto;
        font-weight: 500;
        color: var(--primary);
    }

    .progress-percentage {
        font-weight: 500;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 13px;
    }

    .progress-percentage.success { background: var(--success-light); color: var(--success); }
    .progress-percentage.warning { background: var(--warning-light); color: var(--warning); }
    .progress-percentage.danger { background: var(--danger-light); color: var(--danger); }

    /* 活動狀態標籤 */
    .status-tag {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        transition: var(--transition-fast);
    }

    .status-tag:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

    .status-tag.planned { color: var(--primary); }
    .status-tag.confirmed { color: var(--warning); }
    .status-tag.completed { color: var(--success); }
    .status-tag.cancelled { color: var(--danger); }

    /* 按鈕樣式 */
    .btn {
        background: var(--primary);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

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

    /* 響應式設計 */
    @media (max-width: 768px) {
        .app-container {
            padding: 16px;
        }
        
        .nav-menu {
            margin: -16px -16px 16px -16px;
            padding: 12px 16px;
            flex-direction: column;
            gap: 12px;
        }
        
        .dashboard {
            grid-template-columns: 1fr;
        }
        
        .activity-stats-grid {
            grid-template-columns: 1fr;
        }
    }

    /* 進度條優化 */
    .progress-bar {
        height: 8px;
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
        overflow: hidden;
        margin: 12px 0;
    }

    .progress-fill {
        height: 100%;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .progress-fill.success { background: var(--gradient-success); }
    .progress-fill.warning { background: var(--gradient-warning); }
    .progress-fill.danger { background: var(--gradient-danger); }

    /* 近期活動區塊優化 */
    .upcoming-section {
        background: rgba(255,255,255,0.5);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 30px;
    }

    .period-selector {
        display: flex;
        gap: 8px;
    }

    .period-btn {
        padding: 8px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--card-bg);
        font-size: 14px;
        color: var(--text-secondary);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .period-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .period-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    /* 動畫效果 */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stat-card {
        animation: fadeInUp 0.6s backwards;
    }

    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }
    .stat-card:nth-child(5) { animation-delay: 0.5s; }

    /* 修改表容器樣式 */
    .table-container {
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        padding: 32px;
        box-shadow: var(--shadow-card);
        overflow: hidden;
    }

    /* 表格標題區域 */
    .table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
        padding: 24px 0;
    }

    .table-header h2 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }

    /* 確保表格標題區域中的按鈕樣式正確 */
    .table-header .nav-btn {
        margin-left: auto;
    }

    .table-header .nav-btn.primary {
        background: var(--primary);
        color: white;
        border: none;
    }

    .table-header .nav-btn.primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

    /* 表格樣式優化 */
    .table-wrapper {
        overflow-x: auto;
        border-radius: var(--radius-md);
    }

    table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 14px;
    }

    /* 表頭樣式 */
    thead {
        background: var(--bg);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    th {
        padding: 16px;
        font-weight: 500;
        color: var(--text-secondary);
        text-align: left;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    /* 序的表頭 */
    th.sortable {
        cursor: pointer;
        transition: var(--transition-fast);
    }

    th.sortable:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .sort-icon {
        display: inline-block;
        margin-left: 4px;
        opacity: 0.5;
        transition: var(--transition-fast);
    }

    th.sortable:hover .sort-icon {
        opacity: 1;
    }

    th.asc .sort-icon {
        transform: rotate(180deg);
        color: var(--primary);
        opacity: 1;
    }

    th.desc .sort-icon {
        color: var(--primary);
        opacity: 1;
    }

    /* 表格內容樣式 */
    td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }

    /* 表格行停效果 */
    tbody tr {
        transition: var(--transition-fast);
    }

    tbody tr:hover {
        background: var(--primary-light);
    }

    /* 單元格樣式 */
    .cell-wrap {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cell-center {
        text-align: center;
    }

    /* 電訪結果編輯區域 */
    .inline-edit {
        position: relative;
        display: flex;
        align-items: center;
    }

    .inline-edit textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        resize: vertical;
        min-height: 36px;
        transition: var(--transition-fast);
    }

    .inline-edit textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 儲存指器 */
    .save-indicator {
        width: 4px;
        height: 100%;
        position: absolute;
        right: -8px;
        top: 0;
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .save-indicator.saving {
        background: var(--warning);
    }

    .save-indicator.saved {
        background: var(--success);
    }

    .save-indicator.error {
        background: var(--danger);
    }

    /* 操作鈕 */
    .btn-edit {
        padding: 6px 12px;
        font-size: 13px;
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
    }

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

    /* 意願程籤 */
    .interest-tag {
        display: inline-flex;
        align-items: center;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }

    .interest-tag.high {
        background: var(--success-light);
        color: var(--success);
    }

    .interest-tag.medium {
        background: var(--warning-light);
        color: var(--warning);
    }

    .interest-tag.low {
        background: var(--danger-light);
        color: var(--danger);
    }

    /* 空狀態提示 */
    .no-data {
        text-align: center;
        padding: 40px;
        color: var(--text-secondary);
        font-size: 14px;
    }

    /* 過濾器樣式優化 */
    .filter-container {
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        padding: 20px;
        margin-bottom: 24px;
        box-shadow: var(--shadow-card);
    }

    .tab-container {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .tab {
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text-secondary);
        background: var(--bg);
        border: none;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .tab:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .tab.active {
        background: var(--primary);
        color: white;
    }

    .filter-group {
        display: flex;
        gap: 16px;
    }

    .filter-group select {
        flex: 1;
        padding: 8px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text);
        background: white;
        transition: var(--transition-fast);
    }

    .filter-group select:hover {
        border-color: var(--primary);
    }

    .filter-group select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 活動況優化 */
    .activity-overview {
        margin-top: 20px;
    }

    /* 學校執行狀況面板 */
    .school-progress-panel {
        margin-top: 24px;
        border-top: 1px solid var(--border);
    }

    .collapse-btn {
        width: 100%;
        padding: 16px;
        background: none;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
        transition: var(--transition-fast);
    }

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

    .collapse-btn .arrow {
        transition: transform 0.3s ease;
    }

    .collapse-btn.collapsed .arrow {
        transform: rotate(-90deg);
    }

    .school-progress-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .school-progress-content.expanded {
        max-height: 1000px;
    }

    /* 學校進度卡片優化 */
    .school-progress {
        padding: 16px;
        margin: 8px 0;
        background: var(--bg);
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
    }

    .school-progress:hover {
        transform: translateX(4px);
        background: var(--primary-light);
    }

    /* 過濾器標題區域優化 */
    .filter-header {
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
    }

    .header-content {
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .filter-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }

    .year-label {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-secondary);
    }

    /* 登入容器樣式 */
    .login-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg);
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
    }

    .login-card {
        background: var(--card-bg);
        padding: 48px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        text-align: center;
        max-width: 420px;
        width: 100%;
        border: 1px solid var(--border);
        animation: fadeIn 0.3s ease-out;
    }

    .system-title {
        font-size: 28px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 32px;
        letter-spacing: -0.5px;
    }

    .google-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 16px 24px;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 16px;
        color: var(--text);
        cursor: pointer;
        transition: all var(--transition-fast);
        margin: 0 auto;
    }

    .google-login-btn:hover {
        background: var(--bg);
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

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

    /* 登出按鈕樣式優化 */
    .btn-logout {
        background: transparent;
        color: var(--danger);
        border: 1px solid var(--danger);
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .btn-logout:hover {
        background: var(--danger);
        color: white;
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

    /* 使用者資訊樣式 */
    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text);
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-weight: 500;
    }

    .user-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .user-name {
        font-weight: 500;
        color: var(--text);
        font-size: 14px;
        line-height: 1.2;
    }

    .user-email {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* 導航按鈕組 */
    .nav-buttons {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .nav-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 500;
        transition: all var(--transition);
        color: var(--text);
        background: transparent;
        border: 1px solid var(--border);
        text-decoration: none;
        cursor: pointer;
    }

    .nav-btn:hover {
        background: var(--bg);
        transform: translateY(-1px);
    }

    .nav-btn i {
        font-size: 14px;
    }

    .nav-btn.primary {
        background: var(--primary);
        color: white;
        border: none;
    }

    .nav-btn.primary:hover {
        background: var(--primary-dark);
    }

    /* 添加入動畫 */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 主應用容器邊界優化 */
    .app-container {
        margin: 0 auto;
        padding: 32px;
    }

    /* 響應式設計調整 */
    @media (max-width: 768px) {
        .login-card {
            padding: 32px;
        }
        
        .app-container {
            padding: 16px;
        }
        
        .system-title {
            font-size: 24px;
        }
    }

    /* 內容區域樣式優化 */
    #mainContent {
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        margin-bottom: 24px;
    }

    /* 過濾器內容區域樣式 */
    .filter-content {
        
        border-bottom: 1px solid var(--border);
    }

    .filter-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 32px;
    }

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

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .filter-group label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }

    .tab-container {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .select-group {
        display: flex;
        gap: 16px;
    }

    .select-group select {
        flex: 1;
        padding: 8px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text);
        background: white;
        transition: var(--transition-fast);
    }

    .select-group select:hover {
        border-color: var(--primary);
    }

    .select-group select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 響應式調整 */
    @media (max-width: 768px) {
        .filter-row {
            flex-direction: column;
            gap: 20px;
        }
        
        .filter-section {
            gap: 16px;
        }
        
        .select-group {
            flex-direction: column;
            gap: 12px;
        }
        
        .select-group select {
            width: 100%;
        }
        
        .action-section {
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        margin: 0 0 16px 0;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .stat-card {
        background: var(--bg);
        border-radius: var(--radius-md);
        padding: 16px;
        transition: var(--transition-normal);
    }

    .stat-card h3 {
        margin: 0 0 8px;
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .stat-value {
        font-size: 28px;
        margin-bottom: 8px;
    }

    /* 活動概況區域優化 */
    .activity-overview {
        margin-top: 16px;
    }

    /* 響應式設計調整 */
    @media (max-width: 1024px) {
        .dashboard {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .stat-card {
            padding: 12px;
        }
        
        .stat-value {
            font-size: 24px;
        }
    }

    /* 教師統計卡片樣式 */
    .teacher-stat {
        background: linear-gradient(135deg, var(--bg), var(--card-bg));
        border: 1px solid var(--border);
    }

    .teacher-stat:hover {
        border-color: var(--primary);
        background: linear-gradient(135deg, var(--primary-light), white);
    }

    .stat-trend {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 4px;
    }

    .trend-up {
        color: var(--success);
    }

    .trend-down {
        color: var(--danger);
    }

    .stat-label {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 統計卡片網格優化 */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    /* 響應式調整 */
    @media (max-width: 768px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .teacher-stat {
            grid-column: span 2;
        }
    }

    /* 擇器群組樣式 */
    .selector-group {
        display: flex;
        gap: 24px;
        margin-bottom: 32px;
    }

    .year-selector,
    .teacher-selector {
        flex: 1;
        max-width: 350px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .year-selector label,
    .teacher-selector label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }

    .year-selector select,
    .teacher-selector select {
        width: auto;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text);
        background: var(--card-bg);
        transition: all var(--transition-fast);
    }

    .year-selector select:hover,
    .teacher-selector select:hover {
        border-color: var(--primary);
    }

    .year-selector select:focus,
    .teacher-selector select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 響應式調整 */
    @media (max-width: 768px) {
        .selector-group {
            flex-direction: column;
            gap: 16px;
        }
        
        .year-selector,
        .teacher-selector {
            max-width: none;
        }
    }

    /* 更新 dashboard 網格布局 */
    .dashboard {
        display: grid;
        grid-template-columns: 30% 70%;
        gap: 24px;
        margin-bottom: 32px;
    }

    /* 進度卡片樣式 */
    .progress-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .progress-card {
        background: white;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 8px;
        padding: 8px;
    }

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

    .school-name {
        font-size: 13px;
        font-weight: 500;
        color: #1d1d1f;
    }

    .activity-count {
        font-size: 11px;
        color: #86868b;
        white-space: nowrap;
    }

    .progress-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .progress-bars {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .progress-bar-container {
        position: relative;
        padding-top: 14px;
    }

    .progress-label {
        font-size: 11px;
        color: #86868b;
        position: absolute;
        top: 0;
        left: 0;
    }

    .progress-bar {
        height: 6px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
        position: relative;
        overflow: visible;
        margin: 16px 0;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(to right, #007AFF, #5856D6);
        border-radius: 3px;
        transition: width 0.3s ease;
        position: relative;
    }

    .progress-fill.activity {
        background: linear-gradient(to right, #2ecc71, #27ae60);
    }

    .progress-current {
        position: absolute;
        left: 100%;
        top: -16px;
        font-size: 11px;
        color: #007AFF;
        font-weight: 500;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .progress-target {
        position: absolute;
        right: -4px;
        top: -16px;
        font-size: 11px;
        color: #86868b;
        white-space: nowrap;
    }

    .progress-fill.activity .progress-current {
        color: #2ecc71;
    }

    /* Status colors */
    .progress-fill.complete { background: linear-gradient(to right, #2ecc71, #27ae60); }
    .progress-fill.good { background: linear-gradient(to right, #007AFF, #5856D6); }
    .progress-fill.warning { background: linear-gradient(to right, #FF9500, #FF5E3A); }
    .progress-fill.danger { background: linear-gradient(to right, #FF3B30, #FF2D55); }

    .progress-current.complete { color: #2ecc71; }
    .progress-current.good { color: #007AFF; }
    .progress-current.warning { color: #FF9500; }
    .progress-current.danger { color: #FF3B30; }

    .progress-rates {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .progress-rate-section {
        flex: 1;
        text-align: center;
        padding: 4px;
    }

    .progress-percentage {
        display: inline-block;
        font-size: 14px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .progress-rate-label {
        font-size: 11px;
        color: #86868b;
        margin-top: 2px;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .progress-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        
        .progress-card {
            padding: 6px;
            margin-bottom: 6px;
        }
        
        .progress-rates {
            gap: 6px;
        }
        
        .progress-bars {
            gap: 6px;
        }
    }

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

    .progress-header h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
    }

    .progress-percentage {
        font-size: 14px;
        font-weight: 500;
        color: var(--primary);
    }

    .progress-bar {
        height: 8px;
        background: var(--border);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 8px;
    }

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

    .progress-details {
        font-size: 13px;
        color: var(--text-secondary);
        text-align: right;
    }

    /* 響應式調整 */
    @media (max-width: 1200px) {
        .dashboard {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .dashboard {
            grid-template-columns: 1fr;
        }
    }

    /* 學校進度列表樣式 */
    .school-progress-list {
        margin-top: 16px;
        display: grid;
        gap: 12px;
    }

    .school-progress-item {
        background: var(--bg);
        border-radius: var(--radius-sm);
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .school-progress-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .school-name {
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
    }

    .school-count {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* 更新學校進度列表樣式 */
    .school-progress-item {
        background: var(--bg);
        border-radius: var(--radius-sm);
        padding: 16px;
        transition: var(--transition-normal);
    }

    .school-progress-item:hover {
        background: linear-gradient(135deg, var(--bg), white);
    }

    .school-progress-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .school-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }

    .progress-bar-container {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .progress-bar {
        height: 6px;
        background: var(--border);
        border-radius: 3px;
        overflow: hidden;
    }

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

    .progress-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
    }

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

    .progress-percentage {
        color: var(--primary);
        font-weight: 500;
    }

    .no-data {
        text-align: center;
        padding: 16px;
        color: var(--text-secondary);
        font-size: 14px;
    }

    /* 學校進度列表網格布局 */
    .school-progress-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    /* 可編輯欄位樣式 */
    .editable-cell {
        position: relative;
        padding: 0 !important;
    }

    .inline-edit-select {
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        background: white;
        transition: var(--transition-fast);
        min-width: 150px;
    }

    .inline-edit-select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    .inline-edit-select.high {
        background: var(--success-light);
        color: var(--success);
        border-color: var(--success);
    }

    .inline-edit-select.medium {
        background: var(--warning-light);
        color: var(--warning);
        border-color: var(--warning);
    }

    .inline-edit-select.low {
        background: var(--danger-light);
        color: var(--danger);
        border-color: var(--danger);
    }

    .inline-edit-select option {
        background: white;
        color: var(--text);
    }

    .inline-edit-textarea {
        width: 100%;
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        resize: vertical;
        min-height: 36px;
        transition: var(--transition-fast);
    }

    .inline-edit-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 儲存指示器樣式 */
    .save-indicator {
        width: 4px;
        height: 100%;
        position: absolute;
        right: -8px;
        top: 0;
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .save-indicator.saving {
        background: var(--warning);
    }

    .save-indicator.saved {
        background: var(--success);
    }

    .save-indicator.error {
        background: var(--danger);
    }

    /* 對話框基本樣式 */
    dialog {
        padding: 0;
        max-width: 600px;
        width: 90%;
        border: none;
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        background: var(--card-bg);
    }

    dialog::backdrop {
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(4px);
    }

    /* 對話框標題區域 */
    dialog h2 {
        margin: 0;
        padding: 24px 32px;
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }

    /* 表單容器 */
    dialog form {
        padding: 24px 32px;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }

    /* 表單群組 */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group:last-child {
        margin-bottom: 0;
    }

    /* 標籤樣式 */
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }

    .form-group label.required::after {
        content: '*';
        color: var(--danger);
        margin-left: 4px;
    }

    /* 輸入欄位樣式 */
    .form-control {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text);
        background: white;
        transition: all 0.2s ease;
    }

    .form-control:hover {
        border-color: var(--primary);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    /* 下拉選單樣式 */
    select.form-control {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e73' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }

    /* 文字區域樣式 */
    textarea.form-control {
        min-height: 100px;
        resize: vertical;
    }

    /* 按鈕容器 */
    .dialog-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding: 20px 32px;
        border-top: 1px solid var(--border);
        background: var(--bg);
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
    }

    /* 按鈕樣式 */
    .dialog-buttons .btn {
        min-width: 100px;
        padding: 10px 20px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .dialog-buttons .btn-secondary {
        background: var(--bg);
        color: var(--text);
        border: 1px solid var(--border);
    }

    .dialog-buttons .btn-secondary:hover {
        background: var(--border);
    }

    /* 必填欄位提示 */
    .required-hint {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .required-hint span {
        color: var(--danger);
        margin-right: 4px;
    }

    /* 錯誤提示 */
    .form-group.error .form-control {
        border-color: var(--danger);
        background-color: var(--danger-light);
    }

    .form-group.error .error-message {
        color: var(--danger);
        font-size: 12px;
        margin-top: 4px;
    }

    /* Tab 容器樣式 */
    .tab-container {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    /* Tab 標籤樣式 */
    .tab {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .tab input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .tab span {
        font-size: 14px;
        color: var(--text-secondary);
        transition: var(--transition-fast);
    }

    .tab:hover {
        border-color: var(--primary);
    }

    .tab:hover span {
        color: var(--primary);
    }

    .tab input[type="radio"]:checked + span {
        color: var(--primary);
        font-weight: 500;
    }

    .tab input[type="radio"]:checked ~ .tab {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    /* 進度統計區塊樣式 */
    .progress-section {
        margin-top: 24px;
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        padding: 24px;
        box-shadow: var(--shadow-card);
        max-width: var(--content-width);
        margin-left: auto;
        margin-right: auto;
    }

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

    .section-header h2 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }

    .progress-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }

    .progress-card {
        background: white;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 12px;
        transition: all 0.3s ease;
        padding: 8px;
    }

    .progress-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .progress-card.total {
        grid-column: 1 / -1;
        background: var(--primary-light);
        min-height: 100px;
    }

    .progress-card .progress-header {
        margin-bottom: 8px;
    }

    .progress-card .progress-header h3 {
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .progress-bar {
        height: 8px;
        background: var(--border);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .progress-fill {
        height: 100%;
        background: var(--primary);
        border-radius: 4px;
        transition: width 0.6s ease;
    }

    .progress-stats {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

    .progress-stats .percentage {
        margin-left: auto;
        font-weight: 500;
        color: var(--primary);
    }

    .teacher-contributions {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 4px;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .teacher-contributions i {
        font-size: 10px;
        color: var(--primary);
    }

    /* 活動統計區塊樣式 */
    .activity-stats {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .subsection-title {
        font-size: 16px;
        font-weight: 500;
        color: var(--text);
        margin: 0 0 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .activity-type-stats .progress-grid,
    .school-activity-stats .progress-grid {
        display: grid;
        /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
        
        gap: 16px;
    }

    .activity-progress-card {
        background: var(--card-bg);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }

    .activity-progress-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .activity-progress-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .activity-progress-title {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }

    .activity-progress-count {
        font-size: 12px;
        color: var(--text-secondary);
        background: var(--bg);
        padding: 4px 8px;
        border-radius: var(--radius-sm);
    }

    .activity-status-breakdown {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .status-indicator {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 4px;
        border-radius: 6px;
        background: #f5f5f7;
        color: #86868b;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .status-indicator small {
        font-size: 11px;
        opacity: 0.8;
    }

    .status-indicator.status-planned { 
        color: #FF9500; 
        background: var(--warning-light);
    }
    .status-indicator.status-confirmed { 
        color: #007AFF; 
        background: var(--primary-light);
    }
    .status-indicator.status-completed { 
        color: #2ecc71; 
        background: var(--success-light);
    }

    .student-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .student-stat small {
        font-size: 11px;
        color: var(--text-secondary);
    }

    /* Dashboard 展開/收合樣式 */
    .dashboard-section {
        position: relative;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding-bottom: 16px;
    }

    .section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    .toggle-icon {
        font-size: 16px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
    }

    .dashboard-section.collapsed .toggle-icon {
        transform: rotate(-90deg);
    }

    .dashboard-section.collapsed .section-content {
        display: none;
    }

    .section-content {
        transition: all 0.3s ease;
    }

    /* 全部展開/收合按鈕樣式 */
    .dashboard-controls {
        display: flex;
        gap: 8px;
        margin-left: auto; /* 靠右對齊 */
        background: var(--card-bg);
        padding: 8px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
    }

    .dashboard-controls .control-btn {
        padding: 6px 12px;
        font-size: 14px;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
    }

    .dashboard-controls .control-btn:hover {
        background: var(--primary-light);
        color: var(--text);
    }

    .dashboard-controls .control-btn:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -4px;
        top: 50%;
        transform: translateY(-50%);
        height: 16px;
        width: 1px;
        background: var(--border);
    }

    /* 調整選擇器組的布局 */
    .selector-group {
        display: flex;
        align-items: center;
        gap: 24px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .year-selector,
    .teacher-selector {
        flex: 1;
        min-width: 200px;
    }

    .select-group {
        display: flex;
        gap: 8px;
    }

    /* 表單樣式 */
    .form {
        background: var(--card-bg);
        padding: 24px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text);
        font-weight: 500;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 95%;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--bg);
        color: var(--text);
    }

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

    .form-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        margin-top: 24px;
    }

    /* 在現有樣式中添加 */
    .school-info-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .school-name {
        font-weight: 500;
        color: var(--text);
    }

    .school-details {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        font-size: 12px;
    }

    .grade-tag,
    .category-tag,
    .department-tag {
        display: inline-flex;
        align-items: center;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
    }

    .grade-tag {
        background: var(--primary-light);
        color: var(--primary);
    }

    .category-tag {
        background: #f0f0f0;
        color: var(--text);
    }

    .department-tag {
        background: #e8f5e9;
        color: #2e7d32;
    }

    /* 調整表格列高度 */
    #studentTable td {
        padding: 12px 16px;
        vertical-align: top;
    }

    /* 聯絡資訊樣式 */
    .contact-info-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-secondary);
        font-size: 13px;
    }

    .contact-item i {
        width: 14px;
        color: var(--primary);
        font-size: 12px;
    }

    .contact-item a {
        color: var(--primary);
        text-decoration: none;
    }

    .contact-item a:hover {
        text-decoration: underline;
    }

    .contact-item.empty {
        color: var(--text-secondary);
        font-style: italic;
        opacity: 0.7;
    }

    /* 學校資訊樣式 */
    .school-info-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .school-name {
        font-weight: 500;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .area-tag {
        font-size: 11px;
        color: var(--text-secondary);
        background: #f5f5f7;
        padding: 1px 6px;
        border-radius: 4px;
        font-weight: normal;
    }

    .school-details {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .grade-tag,
    .category-tag,
    .department-tag {
        display: inline-flex;
        align-items: center;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
    }

    .grade-tag {
        background: #fff3e0;
        color: #e65100;
    }

    .category-tag {
        background: var(--primary-light);
        color: var(--primary);
    }

    .department-tag {
        background: #e3f2fd;
        color: #1565c0;
    }

    /* 年級標籤顏色 */
    .grade-tag.grade-1 {
        background: #E8F5E9;
        color: #2E7D32;
    }

    .grade-tag.grade-2 {
        background: #FFF3E0;
        color: #E65100;
    }

    .grade-tag.grade-3 {
        background: #E3F2FD;
        color: #1565C0;
    }

    /* 類群標籤顏色 */
    .category-tag.category-business {
        background: #EDE7F6;
        color: #4527A0;
    }

    .category-tag.category-technology {
        background: #E0F2F1;
        color: #00695C;
    }

    .category-tag.category-design {
        background: #FBE9E7;
        color: #D84315;
    }

    .category-tag.category-media {
        background: #F3E5F5;
        color: #6A1B9A;
    }

    .category-tag.category-general {
        background: #E1F5FE;
        color: #0277BD;
    }

    .category-tag.category-noExam {
        background: #F1F8E9;
        color: #558B2F;
    }

    .category-tag.category-other {
        background: #EFEBE9;
        color: #4E342E;
    }

    /* 標籤圖示間距 */
    .grade-tag i,
    .category-tag i,
    .department-tag i {
        margin-right: 4px;
    }

    /* 電訪資訊樣式 */
    .call-info-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .teacher-info {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text);
        font-size: 13px;
    }

    .teacher-info i {
        color: var(--primary);
        font-size: 12px;
    }

    .visit-info {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-secondary);
        font-size: 12px;
    }

    .visit-info i {
        color: var(--success);
        font-size: 11px;
    }

    .no-visit {
        color: var(--text-secondary);
        font-style: italic;
        opacity: 0.7;
        font-size: 12px;
    }

    .call-result {
        font-size: 13px;
        color: var(--text);
        background: var(--bg);
        padding: 8px;
        border-radius: 6px;
        margin-top: 4px;
    }

    .no-call-result {
        color: var(--text-secondary);
        font-style: italic;
        opacity: 0.7;
        font-size: 12px;
    }

    /* 操作按鈕樣式 */
    .action-buttons {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .btn-edit,
    .btn-delete {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: var(--bg);
    }

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

    .btn-edit:hover {
        background: var(--primary-light);
    }

    .btn-delete {
        color: var(--danger);
    }

    .btn-delete:hover {
        background: var(--danger-light);
    }

    .btn-edit i,
    .btn-delete i {
        font-size: 14px;
    }

    /* 確保表格最後一欄寬度合適 */
    #studentTable th:last-child,
    #studentTable td:last-child {
        width: 100px;
        min-width: 100px;
    }

    /* 教師進度區塊優化 */
    #teacherProgressSection .progress-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    /* 總計進度卡片跨欄顯示 */
    #teacherProgressSection .progress-card.total {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, var(--primary-light), white);
        max-height: none;  /* 移除總計卡片的高度限制 */
    }

    /* 響應式調整 */
    @media (max-width: 1200px) {
        #teacherProgressSection .progress-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        #teacherProgressSection .progress-grid {
            grid-template-columns: 1fr;
        }
    }

    /* 學校進度卡片最大高度 */
    #teacherProgressSection .progress-card {
        max-height: 120px;
        overflow: hidden;
        position: relative;
    }

    /* 教師貢獻資訊優化 */
    .teacher-contributions {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 4px;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .teacher-contributions i {
        font-size: 10px;
        color: var(--primary);
    }

    /* 進度條和統計資訊優化 */
    .progress-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .progress-bar {
        height: 6px;
        background: rgba(0,0,0,0.05);
        border-radius: 3px;
    }

    .progress-stats {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
    }

    .progress-stats .percentage {
        margin-left: auto;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
        background: var(--primary-light);
        color: var(--primary);
    }

    .dashboard-container {
        padding: 20px;
    }

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

    .dashboard-grid {
        display: grid;
        grid-template-columns: 30% 70%;
        gap: 20px;
    }

    .dashboard-section {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: #f8f9fa;
        cursor: pointer;
    }

    .section-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #1d1d1f;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-header h3 i {
        color: #007AFF;
    }

    .section-content {
        transition: all 0.3s ease;
    }

    .dashboard-section.collapsed .section-content {
        display: none;
    }

    .dashboard-section.collapsed .toggle-btn i {
        transform: rotate(180deg);
    }

    .toggle-btn {
        background: none;
        border: none;
        color: #86868b;
        cursor: pointer;
        padding: 4px;
        transition: all 0.3s ease;
    }

    .toggle-btn:hover {
        color: #1d1d1f;
    }

    .toggle-btn i {
        transition: transform 0.3s ease;
    }

    .stats-overview {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    .stat-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #007AFF;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .stat-icon.planned { background: #FF9500; }
    .stat-icon.ongoing { background: #007AFF; }
    .stat-icon.completed { background: #2ecc71; }

    .stat-content {
        flex: 1;
    }

    .stat-value {
        font-size: 24px;
        font-weight: 600;
        color: #1d1d1f;
        line-height: 1.2;
    }

    .stat-label {
        font-size: 13px;
        color: #86868b;
    }

    .activity-type-stats,
    .school-activity-stats {
        margin-top: 24px;
    }

    .activity-type-stats h4,
    .school-activity-stats h4 {
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f;
        margin-bottom: 16px;
    }

    .activity-progress-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .activity-progress-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .activity-progress-title {
        font-size: 14px;
        font-weight: 500;
        color: #1d1d1f;
    }

    .activity-progress-count {
        font-size: 14px;
        font-weight: 600;
        color: #007AFF;
    }

    .activity-status-breakdown {
        display: flex;
        gap: 8px;
    }

    .status-indicator {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 4px;
        border-radius: 6px;
        background: #f5f5f7;
        color: #86868b;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .status-indicator small {
        font-size: 11px;
        opacity: 0.8;
    }

    .status-indicator.status-planned { 
        color: #FF9500; 
        background: var(--warning-light);
    }
    .status-indicator.status-confirmed { 
        color: #007AFF; 
        background: var(--primary-light);
    }
    .status-indicator.status-completed { 
        color: #2ecc71; 
        background: var(--success-light);
    }

    .student-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .student-stat small {
        font-size: 11px;
        color: var(--text-secondary);
    }

    .dashboard-actions {
        display: flex;
        gap: 8px;
    }

    .action-btn {
        background: none;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        color: #1d1d1f;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }

    .action-btn:hover {
        background: #f5f5f7;
    }

    .action-btn i {
        font-size: 12px;
    }

    @media (max-width: 1200px) {
        .dashboard-grid {
            grid-template-columns: 1fr;
        }
    }

    .conversion-indicator {
        padding: 4px 8px;
        border-radius: 12px;
        font-weight: 500;
        font-size: 14px;
        text-align: center;
        margin: 4px 0;
    }

    .conversion-indicator.excellent {
        background-color: #d4edda;
        color: #155724;
    }

    .conversion-indicator.good {
        background-color: #cce5ff;
        color: #004085;
    }

    .conversion-indicator.fair {
        background-color: #fff3cd;
        color: #856404;
    }

    .conversion-indicator.poor {
        background-color: #f8d7da;
        color: #721c24;
    }

    .conversion-indicator.very-poor {
        background-color: #f5c6cb;
        color: #721c24;
    }

/* 進度卡片網格 */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* 進度卡片基本樣式 */
.progress-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.progress-card:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

/* 學校名稱 */
.school-name {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 進度內容 */
.progress-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.progress-percentage {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-numbers {
    font-size: 13px;
    font-weight: 400;
    color: #86868b;
    text-align: center;
}

/* 教師貢獻資訊 */
.teacher-contributions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: #1d1d1f;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-y: auto;
}

.progress-card:hover .teacher-contributions {
    opacity: 1;
}

/* 狀態顏色 - Apple 風格 */
.progress-fill.complete { background: #2ecc71; }
.progress-fill.good { background: #007AFF; }
.progress-fill.warning { background: #FF9500; }
.progress-fill.danger { background: #FF3B30; }

.progress-percentage.complete { color: #2ecc71; }
.progress-percentage.good { color: #007AFF; }
.progress-percentage.warning { color: #FF9500; }
.progress-percentage.danger { color: #FF3B30; }

/* 卡片邊框顏色 */
.progress-card.complete { border-color: rgba(46, 204, 113, 0.1); }
.progress-card.good { border-color: rgba(0, 122, 255, 0.1); }
.progress-card.warning { border-color: rgba(255, 149, 0, 0.1); }
.progress-card.danger { border-color: rgba(255, 59, 48, 0.1); }

/* 卡片狀態背景 */
.progress-card.complete { background: linear-gradient(to bottom right, rgba(46, 204, 113, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.good { background: linear-gradient(to bottom right, rgba(0, 122, 255, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.warning { background: linear-gradient(to bottom right, rgba(255, 149, 0, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.danger { background: linear-gradient(to bottom right, rgba(255, 59, 48, 0.02), rgba(255, 255, 255, 0.8)); }

/* 總計卡片樣式 */
.progress-card.total {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
}

.progress-card.total .progress-header {
    margin-bottom: 8px;
}

.progress-card.total h3 {
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
}

.progress-card.total h3 i {
    font-size: 14px;
    color: #007AFF;
}

.progress-card.total .progress-percentage {
    margin-left: auto;
    font-size: 16px;
    font-weight: 600;
    color: #007AFF;
}

.progress-card.total .progress-content {
    gap: 8px;
}

/* 統計列 */
.stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.stats-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
}

.stats-group {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

/* 統計項目 */
.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stats-item.primary .value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.stats-item .label {
    font-size: 11px;
    color: #86868b;
}

.stats-item .value {
    font-size: 13px;
    font-weight: 500;
}

.stats-item .value.high { color: #2ecc71; }
.stats-item .value.medium { color: #007AFF; }
.stats-item .value.low { color: #FF3B30; }

/* 活動統計卡片 */
.activity-progress-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.activity-progress-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.activity-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.activity-progress-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.activity-progress-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.activity-status-breakdown {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.status-indicator {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 4px;
    border-radius: 6px;
    background: #f5f5f7;
    color: #86868b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.status-indicator small {
    font-size: 11px;
    opacity: 0.8;
}

.status-indicator.status-planned { 
    color: #FF9500; 
    background: var(--warning-light);
}

.status-indicator.status-confirmed { 
    color: #007AFF; 
    background: var(--primary-light);
}

.status-indicator.status-completed { 
    color: #2ecc71; 
    background: var(--success-light);
}

/* 轉換率指標 */
.conversion-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    margin: 4px 0;
}

.conversion-indicator.excellent {
    background-color: #d4edda;
    color: #155724;
}

.conversion-indicator.good {
    background-color: #cce5ff;
    color: #004085;
}

.conversion-indicator.fair {
    background-color: #fff3cd;
    color: #856404;
}

.conversion-indicator.poor {
    background-color: #f8d7da;
    color: #721c24;
}

.conversion-indicator.very-poor {
    background-color: #f5c6cb;
    color: #721c24;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* 分頁控制項樣式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg);
}

.page-info {
    font-size: 14px;
    color: var(--text);
    padding: 0 12px;
    white-space: nowrap;
}

#pageSizeSelect {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 12px;
}

#pageSizeSelect:hover {
    border-color: var(--primary);
}

#pageSizeSelect:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
    }

    #pageSizeSelect {
        margin-left: 0;
    }
}

/* 固定在頂部的過濾器和分頁控制項 */
.sticky-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 -20px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    height: 90px;
}

.sticky-container.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sticky-container .filter-content {
    margin-bottom: 12px;
}

.sticky-container .pagination {
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* 確保表格內容不會被固定區域遮擋 */
.table-container {
    padding-top: 12px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .sticky-container {
        margin: 0 -12px;
        padding: 12px;
    }
}

/* Teacher Progress Section Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.school-name {
    font-weight: 500;
    color: #1d1d1f;
}

.activity-count {
    font-size: 14px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-rates {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin: 12px;
}

.progress-rate-section {
    text-align: center;
}

.progress-rate-label {
    font-size: 12px;
    color: #86868b;
    margin-top: 4px;
}

.progress-bars {
    padding: 12px 16px;
}

.progress-bar-container {
    margin-bottom: 12px;
}

.progress-bar-container:last-child {
    margin-bottom: 0;
}

.progress-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 4px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #007AFF, #5856D6);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill.activity {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.progress-current {
    position: absolute;
    right: 4px;
    top: -18px;
    font-size: 12px;
    color: #007AFF;
    font-weight: 500;
}

.progress-target {
    position: absolute;
    right: 4px;
    top: -18px;
    font-size: 12px;
    color: #86868b;
}

.stats-container {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recruitment-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.stat-divider {
    color: #86868b;
    font-size: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.stat-label {
    font-size: 12px;
    color: #86868b;
}

.stat-hint {
    display: block;
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
}

.activity-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chart Container Styles */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .progress-rates {
        flex-direction: column;
        gap: 12px;
    }

    .activity-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-item {
        width: 100%;
    }
}

/* Progress Bars Layout */
.progress-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
}

.progress-bar-container {
    margin-bottom: 0;
}

.progress-bar-container .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-bar-container .progress-label span {
    font-size: 12px;
    color: #86868b;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #007AFF, #5856D6);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill.activity {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.progress-current {
    position: absolute;
    left: 4px;
    top: -18px;
    font-size: 12px;
    color: #007AFF;
    font-weight: 500;
}

.progress-target {
    position: absolute;
    right: 4px;
    top: -18px;
    font-size: 12px;
    color: #86868b;
}

.progress-fill.activity .progress-current {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-bars {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .progress-bar-container {
        margin-bottom: 12px;
    }
    
    .progress-bar-container:last-child {
        margin-bottom: 0;
    }
}

/* Progress status colors */
.progress-fill.complete { background: linear-gradient(to right, #2ecc71, #27ae60); }
.progress-fill.good { background: linear-gradient(to right, #007AFF, #5856D6); }
.progress-fill.warning { background: linear-gradient(to right, #FF9500, #FF5E3A); }
.progress-fill.danger { background: linear-gradient(to right, #FF3B30, #FF2D55); }

.progress-current.complete { color: #2ecc71; }
.progress-current.good { color: #007AFF; }
.progress-current.warning { color: #FF9500; }
.progress-current.danger { color: #FF3B30; }

/* Progress card status colors */
.progress-card.complete { border-color: rgba(46, 204, 113, 0.1); }
.progress-card.good { border-color: rgba(0, 122, 255, 0.1); }
.progress-card.warning { border-color: rgba(255, 149, 0, 0.1); }
.progress-card.danger { border-color: rgba(255, 59, 48, 0.1); }

.progress-card.complete { background: linear-gradient(to bottom right, rgba(46, 204, 113, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.good { background: linear-gradient(to bottom right, rgba(0, 122, 255, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.warning { background: linear-gradient(to bottom right, rgba(255, 149, 0, 0.02), rgba(255, 255, 255, 0.8)); }
.progress-card.danger { background: linear-gradient(to bottom right, rgba(255, 59, 48, 0.02), rgba(255, 255, 255, 0.8)); }

/* Progress card layout */
.progress-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    padding: 8px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.school-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.activity-count {
    font-size: 12px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-rates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 8px;
}

.progress-rate-section {
    text-align: center;
    padding: 4px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.progress-percentage {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.progress-rate-label {
    font-size: 11px;
    color: #86868b;
}

.progress-bars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 8px;
}

.progress-bar-container {
    margin-bottom: 0;
}

.progress-bar-container .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
    color: #86868b;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #007AFF, #5856D6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.activity {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.progress-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 2px;
}

.progress-current {
    font-size: 11px;
    color: #007AFF;
    font-weight: 500;
    position: absolute;
    left: 0;
    top: -16px;
}

.progress-target {
    font-size: 11px;
    color: #86868b;
    position: absolute;
    right: 0;
    top: -16px;
}

.stats-container {
    padding: 4px 8px;
    margin-top: 4px;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
}

.stat-item {
    padding: 4px;
    text-align: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #86868b;
}

.stat-hint {
    font-size: 10px;
    color: #86868b;
    margin-top: 2px;
}

/* Status colors */
.progress-card.complete { border-color: rgba(46, 204, 113, 0.2); }
.progress-card.good { border-color: rgba(0, 122, 255, 0.2); }
.progress-card.warning { border-color: rgba(255, 149, 0, 0.2); }
.progress-card.danger { border-color: rgba(255, 59, 48, 0.2); }

/* Responsive design */
@media (max-width: 768px) {
    .progress-rates,
    .progress-bars,
    .activity-stats {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .progress-bar-container {
        padding: 4px;
    }

    .stat-item {
        padding: 4px;
    }
}