/* ============================================
   TEACHER-SPECIFIC STYLES
   ============================================ */

/* === Teacher Dashboard === */
.teacher-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.teacher-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--duration-fast);
}

.teacher-stat-card:hover { box-shadow: var(--shadow-md); }

.teacher-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.teacher-stat-info h4 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.teacher-stat-info p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Teaching Schedule Calendar === */
.calendar-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    overflow-y: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.calendar-title {
    font-size: var(--font-size-base);
    font-weight: 700;
}

.calendar-nav {
    display: flex;
    gap: var(--space-2);
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    border: 1px solid var(--border-color);
    transition: all var(--duration-fast);
}

.calendar-nav button:hover {
    background: var(--gray-50);
    color: var(--gray-700);
}

.calendar-legend {
    padding: var(--space-3) var(--space-5);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

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

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
}

.legend-dot.speaking { background: var(--primary-500); }
.legend-dot.review { background: var(--accent-500); }
.legend-dot.test { background: var(--warm-500); }

.weekly-calendar {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    min-height: 500px;
    overflow-x: auto;
}

.teacher-schedule-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.teacher-schedule-summary div {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.teacher-schedule-summary strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 850;
    line-height: 1;
}

.teacher-schedule-summary span,
.teacher-calendar-range {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.calendar-header,
.calendar-legend,
.teacher-week-calendar {
    min-width: 1120px;
}

.cal-day-header {
    padding: var(--space-3);
    text-align: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.cal-day-name {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
}

.cal-day-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.cal-day-header.today .cal-day-number {
    background: var(--primary-500);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-time-slot {
    padding: var(--space-2);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    text-align: center;
    background: var(--gray-50);
}

.cal-cell {
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-2);
    min-height: 112px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cal-event {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 650;
    margin-bottom: 0;
    cursor: pointer;
    transition: all var(--duration-fast);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cal-event:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.cal-event:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.cal-event.speaking { background: var(--primary-100); color: var(--primary-700); border-left: 3px solid var(--primary-500); }
.cal-event.business { background: var(--warm-100); color: var(--warm-600); border-left: 3px solid var(--warm-500); }
.cal-event.general { background: var(--accent-100); color: var(--accent-700); border-left: 3px solid var(--accent-500); }
.cal-event.review { background: var(--accent-100); color: var(--accent-700); border-left: 3px solid var(--accent-500); }
.cal-event.test { background: var(--warm-100); color: var(--warm-600); border-left: 3px solid var(--warm-500); }

.cal-event strong,
.cal-event small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cal-event small {
    color: currentColor;
    opacity: 0.82;
}

.cal-event-top,
.cal-event-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.cal-event-top span {
    font-size: 0.68rem;
    font-weight: 800;
}

.cal-event-actions a,
.cal-event-actions span {
    display: inline-flex;
    width: fit-content;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.58);
    color: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    text-decoration: none;
}

.teacher-agenda-section {
    margin-top: var(--space-6);
}

.teacher-agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.teacher-agenda-header h3 {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: 800;
}

.teacher-agenda-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.teacher-agenda-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.teacher-agenda-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.teacher-agenda-item.review { border-left-color: var(--accent-500); }
.teacher-agenda-item.test { border-left-color: var(--warm-500); }

.teacher-agenda-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.teacher-agenda-time strong {
    color: var(--text-primary);
    font-weight: 800;
}

.teacher-agenda-time span,
.teacher-agenda-main p,
.teacher-agenda-metrics span,
.teacher-student-chip small,
.teacher-student-chip em {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.teacher-agenda-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.teacher-agenda-title,
.teacher-agenda-actions,
.teacher-agenda-metrics,
.teacher-student-chip-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.teacher-agenda-title {
    justify-content: space-between;
}

.teacher-agenda-title h4 {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.teacher-agenda-metrics span {
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    padding: 4px 8px;
    font-weight: 700;
}

.teacher-student-chip {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    background: var(--gray-50);
}

.teacher-student-chip.meets {
    border-color: var(--accent-200);
    background: var(--accent-50);
}

.teacher-student-chip.watch {
    border-color: var(--warm-200);
    background: var(--warm-50);
}

.teacher-student-chip.needs,
.teacher-student-chip.missing {
    border-color: var(--danger-100);
    background: var(--danger-50, #fef2f2);
}

.teacher-student-chip strong {
    color: var(--text-primary);
    font-size: var(--font-size-xs);
    font-weight: 800;
}

.teacher-student-chip a,
.teacher-student-chip em {
    font-size: var(--font-size-xs);
    font-style: normal;
    font-weight: 800;
}

.teacher-student-chip a {
    color: var(--primary-600);
    text-decoration: none;
}

.teaching-prep-modal {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.prep-hero {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
}

.prep-hero span,
.prep-hero p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.prep-hero h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 850;
    margin: 4px 0;
}

.prep-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.prep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-4);
}

.prep-panel {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: var(--space-4);
}

.prep-panel h4 {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 850;
    margin-bottom: var(--space-3);
}

.prep-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.prep-panel-title h4 {
    margin-bottom: 0;
}

.prep-panel > strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.prep-panel p,
.prep-mini-list span,
.prep-note-list li,
.prep-material-row span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.prep-mini-list,
.prep-note-list,
.prep-material-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.prep-mini-list span,
.prep-note-item,
.prep-material-row {
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    padding: var(--space-2) var(--space-3);
}

.prep-note-item,
.prep-material-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
}

.prep-note-item {
    flex-direction: column;
}

.prep-note-item strong,
.prep-material-row strong {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.prep-material-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.prep-material-row a,
.prep-material-row button {
    color: var(--primary-600);
    font-size: var(--font-size-sm);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.prep-material-row button {
    padding: 0;
}

.prep-student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-3);
}

.prep-student-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.prep-student-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
}

.prep-student-head h4 {
    margin: 0 0 2px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 850;
}

.prep-student-head p {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.prep-pill {
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: var(--font-size-xs);
    font-weight: 800;
    white-space: nowrap;
}

.prep-pill.meets {
    background: var(--accent-100);
    color: var(--accent-700);
}

.prep-pill.watch {
    background: var(--warm-100);
    color: var(--warm-600);
}

.prep-pill.needs,
.prep-pill.missing {
    background: var(--danger-100);
    color: var(--danger-600);
}

.prep-progress {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr);
    align-items: center;
    gap: var(--space-2);
}

.prep-progress span {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 800;
}

.prep-progress div {
    height: 8px;
    border-radius: 999px;
    background: var(--gray-200);
    overflow: hidden;
}

.prep-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-500);
}

.prep-note-list {
    margin: 0;
    padding-left: var(--space-4);
}

.prep-student-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.prep-student-actions a,
.prep-student-actions span,
.prep-student-actions button {
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--primary-600);
    font-size: var(--font-size-xs);
    font-weight: 800;
    padding: 4px 8px;
    text-decoration: none;
}

.prep-student-actions button {
    cursor: pointer;
}

.prep-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.prep-form-grid textarea,
.prep-form-grid input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    color: var(--text-primary);
    background: var(--bg-primary);
    font: inherit;
}

.prep-form-grid textarea {
    grid-column: 1 / -1;
    resize: vertical;
}

/* === Material Upload === */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--duration-fast);
    cursor: pointer;
    background: var(--gray-50);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.upload-zone-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

.upload-zone h3 {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.upload-zone p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.material-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.material-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.material-item:hover { box-shadow: var(--shadow-sm); }

.material-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--primary-100);
    flex-shrink: 0;
}

.material-info { flex: 1; }
.material-name { font-size: var(--font-size-sm); font-weight: 600; }
.material-meta { font-size: var(--font-size-xs); color: var(--text-secondary); }

.material-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 4px;
}

/* === Assessment Form / Star Rating === */
.assessment-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.score-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.score-item {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
}

.score-item label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.score-item input {
    width: 80px;
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    padding: var(--space-2);
    margin: 0 auto;
}

/* Star Rating Display */
.star-rating {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.star-rating .star {
    font-size: 1.1rem;
    color: var(--gray-300);
    transition: color 0.15s;
}

.star-rating .star.filled {
    color: #F59E0B;
}

/* Star Rating Input */
.star-input {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.star-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-300);
    transition: all 0.15s;
    user-select: none;
}

.star-btn.active {
    color: #F59E0B;
}

.star-btn:hover {
    transform: scale(1.2);
    color: #FCD34D;
}

/* === Income Summary === */
.income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.income-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--border-light);
}

.income-card h4 {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.income-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--accent-600);
}

.income-detail {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* === Attendance Marking === */
.att-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    flex-wrap: wrap;
    transition: background 0.15s;
}

.att-row:hover {
    background: var(--gray-50);
}

.att-row:last-child {
    border-bottom: none;
}

.att-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
}

.att-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.att-status-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.att-radio {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--bg-secondary);
    white-space: nowrap;
}

.att-radio input[type="radio"] {
    display: none;
}

.att-radio.present.active {
    background: var(--accent-100);
    border-color: var(--accent-500);
    color: var(--accent-700);
}

.att-radio.late.active {
    background: var(--warm-100);
    border-color: var(--warm-500);
    color: var(--warm-600);
}

.att-radio.absent.active,
.att-radio.absent_unexcused.active {
    background: var(--danger-100);
    border-color: var(--danger-500);
    color: var(--danger-600);
}

.att-radio.absent_excused.active {
    background: var(--info-100, #e0f2fe);
    border-color: var(--info-500, #0ea5e9);
    color: var(--info-700, #0369a1);
}

.att-radio:hover {
    border-color: var(--gray-400);
}

.att-note {
    width: 100%;
    max-width: 280px;
}

/* === Lesson Progress === */
.lesson-progress-section {
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.current-lesson-badge {
    font-size: var(--font-size-xs);
    color: var(--primary-600);
    font-weight: 600;
    padding: 4px 8px;
    background: var(--primary-50, #eef2ff);
    border-radius: 6px;
    display: inline-block;
}

.lesson-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-left: 2px solid var(--border-light);
    padding-left: 16px;
    margin-left: 12px;
    position: relative;
}

.lesson-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.lesson-item.completed::before { background: var(--accent-500); }
.lesson-item.in-progress::before { background: var(--primary-500); }
.lesson-item.upcoming::before { background: var(--gray-300); }

.lesson-item.completed { border-left-color: var(--accent-500); }
.lesson-item.in-progress { border-left-color: var(--primary-500); }

.lesson-status-icon { font-size: 1.2rem; }
.lesson-info { flex: 1; }

/* === Video Player === */
.video-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.video-mini:hover {
    background: var(--primary-50, #eef2ff);
}

.video-player-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* === Class "My Classes" Quick Links === */
.class-links-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.class-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.class-quick-link.meeting {
    background: var(--primary-50, #eef2ff);
    color: var(--primary-600);
    border: 1px solid var(--primary-200, #c7d2fe);
}

.class-quick-link.meeting:hover {
    background: var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.class-quick-link.drive {
    background: var(--accent-50, #ecfdf5);
    color: var(--accent-700);
    border: 1px solid var(--accent-200, #a7f3d0);
}

.class-quick-link.drive:hover {
    background: var(--accent-100);
    box-shadow: var(--shadow-sm);
}

.class-quick-link.disabled {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 1px solid var(--border-light);
    cursor: not-allowed;
}

/* === Monthly Performance Chart === */
.monthly-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 16px;
    justify-content: center;
}

.monthly-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 80px;
    height: 100%;
    justify-content: flex-end;
}

.monthly-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.monthly-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    border-radius: 6px 6px 2px 2px;
    min-height: 8px;
    transition: height 0.5s ease;
}

.monthly-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}

/* === Class Grid in My Classes === */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 480px) {
    .teacher-schedule-summary {
        grid-template-columns: 1fr 1fr;
    }
    .prep-hero,
    .prep-note-item,
    .prep-material-row {
        flex-direction: column;
    }
    .prep-grid,
    .prep-form-grid {
        grid-template-columns: 1fr;
    }
    .teacher-agenda-item {
        grid-template-columns: 1fr;
    }
    .teacher-agenda-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .teacher-student-chip {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .class-grid {
        grid-template-columns: 1fr;
    }
    .class-links-grid {
        grid-template-columns: 1fr;
    }
    .att-status-group {
        flex-direction: column;
        align-items: stretch;
    }
    .att-radio {
        justify-content: center;
    }
}

/* === Progress Bar === */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* === Waiting Test Status === */
.class-status.waiting_test {
    background: var(--warm-100);
    color: var(--warm-600);
}
