@import url("../styles.css");

.student-page .entry-card > label { display: block; margin: 12px 0 7px; color: #4b586e; font-size: 10px; font-weight: 600; }
.student-page .entry-card > select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #e4e9f0; border-radius: 6px; background: #fff; color: #465269; font-size: 10px; }
.student-page-label { padding: 8px 0; color: #70809a; font-size: 12px; }
.student-topline-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #e4e9f1; border-radius: 20px; background: #fff; color: #75849b; font: 700 9px "DM Sans", sans-serif; cursor: pointer; }
.language-switch { display: grid; width: 27px; height: 15px; align-items: center; padding: 2px; border-radius: 10px; background: #dfe5f0; transition: background .2s; }
.language-switch i { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #34405744; transition: transform .2s; }
.language-toggle[aria-pressed="true"] .language-switch { background: #5878e8; }
.language-toggle[aria-pressed="true"] .language-switch i { transform: translateX(12px); }
.profile-setup-card, .student-profile-card, .student-summary-card, .student-tests-card { border: 1px solid #e8edf4; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px #3440570a; }
.profile-setup-card { width: min(100%, 480px); margin: 24px auto 0; padding: 24px; }
.setup-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.setup-step > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: #edf1ff; color: #5878e8; font-size: 14px; font-weight: 700; }
.setup-step h2, .student-summary-card h2, .student-section-heading h2 { margin: 0; color: #344057; font-size: 17px; }
.setup-step p { margin: 5px 0 0; color: #8994a7; font-size: 11px; line-height: 1.5; }
#profile-form { display: grid; gap: 9px; }
#student-register-fields { display: grid; gap: 9px; }
#quick-entry-form { display: grid; gap: 9px; }
#quick-entry-form[hidden] { display: none; }
#quick-entry-form label { margin-top: 5px; color: #4b586e; font-size: 11px; font-weight: 600; }
#quick-entry-form input, #quick-entry-form select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e4e9f0; border-radius: 7px; background: #fff; color: #344057; font: 13px "DM Sans", sans-serif; }
#quick-entry-form input:focus, #quick-entry-form select:focus { border-color: #8298eb; outline: 0; box-shadow: 0 0 0 3px #edf1ff; }
.quick-test-meta { margin: 0 0 12px; color: #8290a3; font-size: 11px; }
#profile-form label { margin-top: 5px; color: #4b586e; font-size: 11px; font-weight: 600; }
#profile-form input, #profile-form select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e4e9f0; border-radius: 7px; background: #fff; color: #344057; font: 13px "DM Sans", sans-serif; }
#profile-form input:focus, #profile-form select:focus { border-color: #8298eb; outline: 0; box-shadow: 0 0 0 3px #edf1ff; }
.profile-setup-card .privacy-note { margin: 5px 0 4px; color: #8994a7; font-size: 10px; }
.student-password-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: visible; border: 0; border-radius: 14px; background: transparent; }
.student-password-dialog::backdrop { background: #1c294466; backdrop-filter: blur(3px); }
.password-recovery { position: relative; display: grid; max-height: calc(100dvh - 32px); gap: 9px; overflow-y: auto; margin: 0; padding: 24px; border: 1px solid #e4e9f1; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px #1c294433; }
.password-recovery h3 { margin: 0; color: #344057; font-size: 13px; }
.password-recovery > p { margin: 0; color: #8290a3; font-size: 10px; line-height: 1.5; }
.password-recovery label { margin-top: 3px; color: #4b586e; font-size: 10px; font-weight: 600; }
.password-recovery input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e4e9f0; border-radius: 6px; background: #fff; color: #344057; font: 12px "DM Sans", sans-serif; }
.password-dialog-close { position: absolute; top: 10px; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #f1f3f8; color: #66738a; font: 24px/1 "DM Sans", sans-serif; cursor: pointer; }
.password-dialog-close:hover { background: #e7ebf3; }
.password-recovery .auth-error { overflow-wrap: anywhere; }
.auth-mode-toggle { padding: 8px 4px; border: 0; background: transparent; color: #5878e8; font: 600 11px "DM Sans", sans-serif; cursor: pointer; }
.auth-error { min-height: 0; margin: 0; color: #bb4343; font-size: 10px; line-height: 1.5; }
.auth-error:not(:empty) { min-height: 15px; }
.student-dashboard { display: grid; grid-template-columns: 225px minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 24px; }
.student-profile-card { position: sticky; top: 16px; display: grid; justify-items: start; gap: 11px; padding: 20px; }
.student-profile-avatar { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: linear-gradient(135deg, #5878e8, #8398f0); color: #fff; font-size: 18px; font-weight: 700; }
.profile-label { color: #929dae; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.student-profile-card h2 { margin: -5px 0 0; color: #344057; font-size: 17px; overflow-wrap: anywhere; }
.student-group-pill { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border-radius: 8px; background: #f5f7fb; color: #7d899e; font-size: 10px; }
.student-group-pill strong { color: #465269; font-size: 11px; }
.student-profile-card .locked-note { margin: 0; color: #8994a7; font-size: 9px; line-height: 1.5; }
.student-dashboard-main { display: grid; min-width: 0; gap: 16px; }
.student-summary-card, .student-tests-card { padding: 20px; }
.student-summary-card h2, .student-section-heading h2 { margin-top: 5px; }
.student-overall-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.student-overall-stats > div { display: grid; gap: 5px; padding: 12px; border: 1px solid #edf0f5; border-radius: 9px; }
.student-overall-stats strong { color: #344057; font-size: 20px; }
.student-overall-stats span { color: #8994a7; font-size: 9px; }
.student-subject-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.subject-progress-card { min-width: 0; padding: 12px; border-radius: 9px; background: #f8f9fc; }
.subject-progress-heading, .subject-progress-detail { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subject-progress-heading strong { overflow: hidden; color: #465269; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.subject-progress-heading > span { color: #5878e8; font-size: 12px; font-weight: 700; }
.subject-progress-track { height: 5px; margin: 10px 0; overflow: hidden; border-radius: 9px; background: #e7ebf3; }
.subject-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #5878e8; }
.subject-progress-detail { flex-wrap: wrap; color: #8994a7; font-size: 8px; }
.student-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.student-test-list { display: grid; }
.student-test-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0f5; }
.student-test-symbol { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #edf1ff; color: #5878e8; font-size: 16px; font-weight: 700; }
.student-test-copy { min-width: 0; flex: 1; }
.student-test-copy > span { color: #8793a7; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.student-test-copy h3 { margin: 4px 0; color: #344057; font-size: 12px; overflow-wrap: anywhere; }
.student-test-copy p { margin: 0; color: #929dae; font-size: 9px; }
.student-test-item .button { min-height: 34px; padding: 0 11px; font-size: 9px; }
.student-test-item .button:disabled { cursor: default; opacity: .75; }
.student-tests-card > .empty-state { margin: 8px 0 0; }
.student-tests-card > .empty-state strong, .student-tests-card > .empty-state span { display: block; }
.legacy-entry-card { display: none !important; }
.quiz-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.quiz-heading-actions > .button { min-height: 33px; font-size: 9px; white-space: nowrap; }
@media (max-width: 760px) {
  .student-dashboard { grid-template-columns: 1fr; }
  .student-profile-card { position: static; grid-template-columns: auto 1fr; align-items: center; }
  .student-profile-avatar { grid-row: span 2; }
  .student-profile-card .profile-label { align-self: end; }
  .student-profile-card h2 { align-self: start; }
  .student-group-pill, .student-profile-card .locked-note { grid-column: 1 / -1; }
  .student-profile-card #open-student-password-dialog, .student-profile-card #student-signout { grid-column: 1 / -1; }
  .student-profile-card #student-signout { min-height: 42px; }
  .student-overall-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .profile-setup-card, .student-summary-card, .student-tests-card { padding: 16px; }
  .student-subject-stats { grid-template-columns: 1fr; }
  .student-test-item { align-items: flex-start; flex-wrap: wrap; }
  .student-test-item .button { margin-left: 52px; }
  .student-topline-actions { gap: 6px; }
}
