/* =========================================
   BATCHES PAGE — ICT.ABUSAYED.NET
   Light Theme Only
========================================= */

/* Page Header */
.batches-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.batches-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 6px 0 4px;
    color: var(--text);
}

.batches-header .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: uppercase;
}

.batches-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    min-width: 70px;
}

.stat-box .num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--mono);
}

.stat-box .label {
    font-size: 11px;
    color: var(--text-faint);
    font-family: var(--mono);
}

/* Tabs */
.batch-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    font-family: var(--mono);
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-dim);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.tab-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Batch Content */
.batch-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 32px;
    margin-bottom: 30px;
}

.batch-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.batch-meta {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 20px;
}

.batch-meta .time,
.batch-meta .days {
    margin-right: 8px;
}

/* Seat Status */
.seat-status {
    margin-bottom: 28px;
}

.seat-progress {
    max-width: 400px;
}

.seat-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.seat-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.seat-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
}

.seat-text strong {
    color: var(--text);
}

/* Chapter Progress */
.chapter-progress {
    margin-bottom: 28px;
}

.chapter-progress h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapter-name {
    font-size: 14px;
    color: var(--text-dim);
}

.circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-faint);
    background: var(--bg);
    transition: all 0.3s;
    flex-shrink: 0;
}

.circle.pending {
    border-color: var(--border);
}

.circle.playing {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface-2);
}

.circle.completed {
    border-color: #5fbf6f;
    color: #5fbf6f;
    background: rgba(95, 191, 111, 0.1);
}

/* Student Table */
.student-table-wrapper h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.table-responsive {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.student-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2);
    color: var(--text-faint);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.student-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.student-table tr:hover td {
    background: var(--surface-2);
}

.status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--mono);
}

.status-badge.active {
    background: rgba(95, 191, 111, 0.15);
    color: #2e7d32;
}

.status-badge.empty {
    background: var(--surface-2);
    color: var(--text-faint);
}

/* Batch Actions */
.batch-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .batches-header {
        flex-direction: column;
        padding: 20px 0;
    }

    .batches-stats {
        width: 100%;
        justify-content: space-around;
    }

    .batch-content {
        padding: 16px 18px;
    }

    .batch-tabs {
        gap: 4px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .chapter-item {
        gap: 8px;
    }

    .chapter-name {
        font-size: 13px;
    }

    .student-table th,
    .student-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stat-box {
        padding: 6px 10px;
        min-width: 50px;
    }

    .stat-box .num {
        font-size: 16px;
    }

    .stat-box .label {
        font-size: 9px;
    }

    .batch-title {
        font-size: 16px;
    }

    .chapter-name {
        font-size: 12px;
    }

    .circle {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}