/* ============================================
   STUDENT-SPECIFIC STYLES
   ============================================ */

/* === Student Profile Header === */
.student-profile-header {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.profile-avatar-section {
    text-align: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.profile-details { flex: 1; }

.profile-name {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-1);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.profile-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.profile-level-section {
    text-align: center;
    min-width: 180px;
}

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

.level-badge-lg {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.level-progress-info {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* === Class Registration === */
.registration-section {
    margin-bottom: var(--space-6);
}

.available-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.reg-class-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    padding: var(--space-5);
    transition: all var(--duration-normal) var(--ease-smooth);
    cursor: pointer;
    position: relative;
}

.reg-class-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.reg-class-card.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
    box-shadow: var(--shadow-glow);
}

.reg-class-card.selected::after {
    content: '✓';
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 24px;
    height: 24px;
    background: var(--primary-500);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.reg-class-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.reg-class-level.beginner { background: var(--accent-100); color: var(--accent-700); }
.reg-class-level.elementary { background: var(--info-100); color: var(--info-500); }
.reg-class-level.intermediate { background: var(--warm-100); color: var(--warm-600); }
.reg-class-level.upper { background: var(--primary-100); color: var(--primary-700); }
.reg-class-level.advanced { background: var(--danger-100); color: var(--danger-600); }

.reg-class-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.reg-class-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.reg-class-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.reg-class-price {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-600);
}

.reg-class-price small {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

/* === Student Schedule View === */
.my-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.schedule-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--duration-fast);
}

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

.schedule-card-date {
    padding: var(--space-3) var(--space-4);
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}

.schedule-day {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.schedule-date-num {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

.schedule-card-body {
    padding: var(--space-4);
}

.schedule-class-name {
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.schedule-detail {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.schedule-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 1px solid var(--primary-200);
    transition: all var(--duration-fast);
}

.schedule-link-btn:hover {
    background: var(--primary-100);
    border-color: var(--primary-300);
}

/* === Google Calendar-style Student Schedule === */
.student-calendar-shell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow-sm);
}

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

.student-calendar-toolbar h3 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: 2px;
}

.student-calendar-toolbar p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.calendar-summary-pill {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: nowrap;
}

.student-week-calendar {
    display: grid;
    grid-template-columns: 76px repeat(7, minmax(136px, 1fr));
    min-width: 1040px;
    overflow-x: auto;
    position: relative;
}

.calendar-time-head,
.calendar-day-head,
.calendar-time-cell,
.calendar-grid-cell {
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.calendar-day-head {
    padding: 12px 10px;
    background: var(--gray-50);
    text-align: center;
}

.calendar-day-head span {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.calendar-day-head strong {
    display: block;
    margin-top: 2px;
    font-size: var(--font-size-base);
}

.calendar-day-head.today {
    background: var(--primary-50);
    color: var(--primary-700);
}

.calendar-time-cell {
    padding: 10px 8px;
    background: var(--gray-50);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-align: right;
}

.calendar-grid-cell {
    min-height: 76px;
    background: var(--bg-secondary);
}

.student-calendar-event {
    z-index: 2;
    margin: 6px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.calendar-event-time {
    font-size: var(--font-size-xs);
    color: var(--primary-700);
    font-weight: 800;
    margin-bottom: 3px;
}

.calendar-event-title {
    font-size: var(--font-size-sm);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.calendar-event-topic,
.calendar-event-meta {
    margin-top: 3px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.35;
}

.calendar-event-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.calendar-event-links a,
.calendar-event-links span {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--primary-700);
    border: 1px solid var(--primary-100);
}

.student-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.student-agenda-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.agenda-date {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agenda-date strong {
    font-size: var(--font-size-lg);
    line-height: 1;
}

.agenda-date span,
.agenda-meta {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.agenda-title {
    font-weight: 800;
    margin-bottom: 2px;
}

.agenda-body p {
    margin-top: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.agenda-actions a,
.agenda-actions span {
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--primary-700);
}

/* === LEO Professional Curriculum === */
.leo-gap-chip {
    min-width: 56px;
    text-align: center;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.leo-adaptive-grid,
.curriculum-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.leo-adaptive-card,
.curriculum-summary > div {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.leo-adaptive-card span,
.curriculum-summary span {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.leo-adaptive-card strong,
.curriculum-summary strong {
    display: block;
    font-size: var(--font-size-base);
    margin-bottom: 6px;
}

.leo-adaptive-card p,
.curriculum-summary p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.curriculum-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.curriculum-session {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.curriculum-session.completed {
    background: var(--accent-50, #ecfdf5);
    border-color: var(--accent-100);
}

.curriculum-session.current {
    background: var(--warm-50, #fffbeb);
    border-color: var(--warm-100);
}

.curriculum-session-index {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--gray-900);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.curriculum-session-index strong {
    font-size: var(--font-size-lg);
    line-height: 1;
}

.curriculum-session-index span {
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.8;
    text-transform: uppercase;
}

.curriculum-session-body {
    flex: 1;
    min-width: 0;
}

.curriculum-session-body h4 {
    font-size: var(--font-size-base);
    font-weight: 800;
}

.curriculum-tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.curriculum-tags span {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.curriculum-session-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.curriculum-session-footer a,
.curriculum-session-footer span,
.curriculum-session-footer strong {
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--gray-50);
    color: var(--primary-700);
    border: 1px solid var(--border-light);
}

/* === Score / Assessment View === */
.score-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.score-ring-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--space-5);
    text-align: center;
}

.score-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-500) var(--score-pct, 0%), var(--gray-100) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    position: relative;
}

.score-ring::before {
    content: '';
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    position: absolute;
}

.score-ring-value {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--primary-600);
}

.score-ring-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 600;
}

/* === Payment Section === */
.payment-section {
    margin-bottom: var(--space-6);
}

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

.payment-info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.payment-info-row:last-child { border-bottom: none; }
.payment-info-label { color: var(--text-secondary); }
.payment-info-value { font-weight: 600; }

.payment-total {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-600);
}

.upload-proof {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-light);
}

.upload-proof-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .student-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-meta { justify-content: center; }
    .available-classes { grid-template-columns: 1fr; }
    .my-schedule { grid-template-columns: 1fr; }
    .student-calendar-shell { overflow-x: auto; }
    .student-calendar-toolbar { align-items: flex-start; flex-direction: column; }
    .leo-adaptive-grid,
    .curriculum-summary { grid-template-columns: 1fr; }
    .curriculum-session { flex-direction: column; }
    .score-overview { grid-template-columns: repeat(2, 1fr); }
    .att-row { flex-direction: column; align-items: flex-start; }
    .att-status-group { margin-left: 40px; }
    .payment-history-main { flex-direction: column; gap: 8px; }
}

/* === Payment History Items === */
.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-history-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.payment-history-item:last-child {
    border-bottom: none;
}

.payment-history-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upload-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px dashed var(--primary-300);
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-mini-btn:hover {
    background: var(--primary-100);
    border-color: var(--primary-400);
}

.proof-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-preview img {
    transition: transform 0.2s;
}

.proof-preview img:hover {
    transform: scale(1.05);
}
