/* Student portal — dashboard & lessons */
.student-portal-body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: #eef3fb;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(0, 130, 251, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(0, 198, 255, 0.08) 0%, transparent 40%);
    color: #0f172a;
    min-height: 100vh;
}

.student-portal-flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.student-portal-flash--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.student-portal-flash--err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.student-portal-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}
.student-portal-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.student-portal-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #0f172a;
}
.student-portal-header__brand strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}
.student-portal-header__brand small {
    display: block;
    font-size: 0.68rem;
    color: #0082fb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.student-portal-header__nav {
    display: flex;
    gap: 0.35rem;
    flex: 1;
}
.student-portal-header__nav a {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
}
.student-portal-header__nav a:hover,
.student-portal-header__nav a.is-active {
    background: rgba(0, 130, 251, 0.1);
    color: #0082fb;
}
.student-portal-header__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}
.student-portal-header__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
}
.student-portal-header__user form button {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}
.student-portal-header__user form button:hover {
    background: #fef2f2;
}

.student-portal-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

/* Student login page */
.student-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(160deg, #f0f4ff 0%, #e8f2ff 50%, #dbeafe 100%);
}
.student-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 82, 251, 0.12);
    border: 1px solid rgba(0, 130, 251, 0.12);
    overflow: hidden;
}
.student-login-card__head {
    background: linear-gradient(135deg, #0d1b3e, #0082fb);
    color: #fff;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.student-login-card__head img {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
}
.student-login-card__head h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}
.student-login-card__head p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}
.student-login-card__body {
    padding: 1.25rem;
}
.student-login-card__body label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.3rem;
}
.student-login-card__body input[type="email"],
.student-login-card__body input[type="password"],
.student-login-card__body input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    background: #f8fafc;
}
.student-login-card__body input:focus {
    outline: none;
    border-color: #0082fb;
    box-shadow: 0 0 0 3px rgba(0, 130, 251, 0.15);
}
.student-login-card__error {
    font-size: 0.78rem;
    color: #dc2626;
    margin: -0.5rem 0 0.75rem;
}
.student-login-card__remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.student-login-card__submit {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #0082fb, #00c6ff);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}
.student-login-card__submit:hover {
    filter: brightness(1.05);
}
.student-login-card__foot {
    padding: 0.85rem 1.25rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
}
.student-login-card__foot a {
    color: #0082fb;
    font-weight: 700;
    text-decoration: none;
}
.student-login-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
}
.student-login-back:hover {
    color: #0082fb;
}

.student-dash-hero {
    background: linear-gradient(135deg, #0d1b3e 0%, #0082fb 55%, #00c6ff 100%);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 130, 251, 0.25);
}
.student-dash-hero h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
}
.student-dash-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}
.student-dash-hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.student-nav-login-btn {
    border: 1px solid rgba(4, 159, 217, 0.35);
    background: rgba(4, 159, 217, 0.08);
    padding: 0.45rem 0.9rem !important;
    text-decoration: none;
    display: inline-block;
}

/* Classroom mode — lessons + video only */
.student-portal--classroom {
    background: #e8eef6;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(0, 130, 251, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(0, 212, 170, 0.06) 0%, transparent 40%);
}

.student-portal-main--classroom {
    max-width: 96rem;
    padding: 0.85rem 1rem 1.25rem;
}

.student-classroom-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.student-classroom-header__course-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.55rem;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.student-classroom-header__inner {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.student-classroom-header__course {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.student-classroom-header__course img {
    border-radius: 0.5rem;
}

.student-classroom-header__course small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.2;
}

.student-classroom-header__course strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.student-classroom-header__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.student-classroom-header__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.student-classroom-header__info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.student-classroom-header__info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.student-classroom-header__info span {
    font-size: 0.75rem;
    color: #64748b;
}

.student-classroom-header__logout {
    border: none;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.55rem;
    cursor: pointer;
    transition: background 0.15s;
}

.student-classroom-header__logout:hover {
    background: #fee2e2;
}

@media (max-width: 640px) {
    .student-classroom-header__info {
        display: none;
    }
}

.student-classroom-notice {
    margin-bottom: 0.75rem;
}

.student-no-course {
    text-align: center;
    max-width: 24rem;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.student-no-course__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    margin: 0 auto 1rem;
}

.student-no-course h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.student-no-course p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.student-no-course__pending {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    background: #fffbeb;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    color: #92400e;
}

.student-learn-layout--focus {
    min-height: calc(100vh - 5.5rem);
}

.student-lessons-list {
    max-height: calc(100vh - 8rem);
}
