/* ===============================================
   填報狀況頁面樣式 - iOS風格毛玻璃設計
   =============================================== */

/* 主容器 */
.submission-status-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    min-height: calc(100vh - 120px);
}

/* 頁面標題 */
.page-header {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.page-title i {
    font-size: var(--text-3xl);
    color: var(--primary-color);
}

/* 統計卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--glass-regular);
    backdrop-filter: var(--glass-backdrop-regular);
    -webkit-backdrop-filter: var(--glass-backdrop-regular);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2);
    color: var(--text-on-color);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-300) var(--ease-ios);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    border-radius: var(--radius-xl);
}

.stat-card.primary::before {
    background: linear-gradient(135deg, var(--primary-color), var(--ios-blue-light));
}

.stat-card.success::before {
    background: linear-gradient(135deg, var(--success-color), #28A745);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, var(--warning-color), #FD7E14);
}

.stat-card.info::before {
    background: linear-gradient(135deg, var(--info-color), var(--ios-blue-light));
}

.stat-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-info h6 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
    opacity: 0.9;
    color: var(--text-on-color);
}

.stat-card-info h4 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-1);
    color: var(--text-on-color);
}

.stat-card-info small {
    font-size: var(--text-xs);
    opacity: 0.8;
    color: var(--text-on-color);
}

.stat-card-icon {
    font-size: var(--text-4xl);
    opacity: 0.7;
    color: var(--text-on-color);
}

/* 學校列表卡片 */
.school-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.school-list-card {
    background: var(--glass-regular);
    backdrop-filter: var(--glass-backdrop-regular);
    -webkit-backdrop-filter: var(--glass-backdrop-regular);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    transition: all var(--duration-300) var(--ease-ios);
}

.school-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.school-list-header {
    padding: var(--space-4) var(--space-6);
    color: var(--text-on-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-lg);
    position: relative;
}

.school-list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

.school-list-header.submitted::before {
    background: linear-gradient(135deg, var(--success-color), #28A745);
}

.school-list-header.not-submitted::before {
    background: linear-gradient(135deg, var(--warning-color), #FD7E14);
}

.school-list-header i,
.school-list-header span {
    position: relative;
    z-index: 2;
}

.school-list-body {
    background: var(--bg-primary);
    max-height: 600px;
    overflow-y: auto;
    padding: 0;
}

/* 學校表格 */
.school-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.school-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 2px solid var(--ios-gray-5);
    position: sticky;
    top: 0;
    z-index: 3;
}

.school-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--ios-gray-6);
    font-size: var(--text-sm);
    color: var(--text-primary);
    vertical-align: middle;
}

.school-table tbody tr {
    transition: all var(--duration-150) var(--ease-ios);
}

.school-table tbody tr:hover {
    background: var(--ios-blue-ultra-light);
}

.school-table tbody tr:last-child td {
    border-bottom: none;
}

/* 學校代碼徽章 */
.school-code-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background: var(--primary-color);
    color: var(--text-on-color);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    min-width: 60px;
    justify-content: center;
}

/* 狀態徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.status-badge.pending {
    background: rgba(255, 149, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.status-badge.completed {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-4);
    opacity: 0.6;
}

.empty-state h5 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* 進度條區域 */
.progress-section {
    background: var(--glass-regular);
    backdrop-filter: var(--glass-backdrop-regular);
    -webkit-backdrop-filter: var(--glass-backdrop-regular);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-2);
}

.progress-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.progress-bar-container {
    background: var(--ios-gray-6);
    border-radius: var(--radius-full);
    height: 32px;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-3);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #28A745);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-color);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: width var(--duration-500) var(--ease-ios);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-info {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .school-list-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .submission-status-container {
        padding: var(--space-4) var(--space-3);
    }
    
    .page-title {
        font-size: var(--text-3xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .stat-card-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .school-list-container {
        gap: var(--space-4);
    }
    
    .school-table th,
    .school-table td {
        padding: var(--space-2);
        font-size: var(--text-xs);
    }
    
    .school-code-badge {
        font-size: 10px;
        padding: 2px var(--space-1);
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .stat-card-info h4 {
        font-size: var(--text-2xl);
    }
    
    .progress-section {
        padding: var(--space-4);
    }
    
    .progress-bar-container {
        height: 28px;
    }
}