﻿/* Student dashboard template.
   Scoped classes avoid touching public pages, admin pages, and exam screens. */

:root {
    --dash-bg: #dedde2;
    --dash-panel: #eeeeef;
    --dash-card: #ffffff;
    --dash-text: #080a12;
    --dash-muted: #74727b;
    --dash-soft: #f5f5f6;
    --dash-line: #e7e7ea;
    --dash-green: #0ea5e9;
    --dash-green-dark: #0369a1;
    --dash-green-soft: #e0f2fe;
    --dash-radius-lg: 1.5rem;
    --dash-radius-md: 1.15rem;
    --dash-shadow: 0 22px 55px rgb(15 23 42 / 0.08);
}

.student-shell {
    min-height: calc(100vh - 4rem);
    max-width: 1380px;
    margin: 2rem auto;
    display: flex;
    overflow: hidden;
    color: var(--dash-text);
    background: var(--dash-panel);
    border: 1px solid rgb(255 255 255 / 0.78);
    border-radius: 1.35rem;
    box-shadow: 0 30px 80px rgb(15 23 42 / 0.11);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.student-shell-rail {
    width: 15.5rem;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.35rem;
}

.student-shell-logo,
.student-shell-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dash-green);
    color: #ffffff;
    text-decoration: none;
    font-weight: 650;
}

.student-shell-logo {
    width: 100%;
    height: 3.2rem;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 0.95rem;
    background: #ffffff;
    color: var(--dash-green);
    box-shadow: 0 12px 30px rgb(16 138 82 / 0.25);
}

.student-shell-logo span {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dash-green);
    color: #ffffff;
}

.student-shell-logo strong {
    font-size: 1rem;
    font-weight: 600;
}

.student-shell-nav,
.student-shell-foot {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.55rem;
    background: #ffffff;
    border-radius: 1.7rem;
    box-shadow: var(--dash-shadow);
}

.student-shell-link,
.student-shell-foot .shad-sidebar-link {
    width: 100%;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 0.95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #2f333b;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.student-shell-link span {
    font-size: inherit;
}

.student-shell-link i,
.student-shell-foot .shad-sidebar-link i {
    width: 1.05rem;
    font-size: 0.92rem;
    text-align: center;
}

.student-shell-link.active,
.student-shell-link:hover,
.student-shell-foot .shad-sidebar-link:hover {
    background: var(--dash-green);
    color: #ffffff;
}

.student-shell-spacer {
    flex: 1;
}

.student-shell-main {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.25rem 0;
}

.student-shell-topbar {
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgb(255 255 255 / 0.96);
    border-radius: 999px;
    box-shadow: var(--dash-shadow);
}

.student-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--dash-green);
    text-decoration: none;
}

.student-shell-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
}

.student-shell-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    background: var(--dash-soft);
    border-radius: 999px;
}

.student-shell-tab {
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: #34343a;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.student-shell-tab.active,
.student-shell-tab:hover {
    background: #ffffff;
    color: #05070d;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
}

.student-shell-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.student-shell-icon,
.student-shell-avatar {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--dash-soft);
    color: #111827;
}

.student-shell-avatar {
    background: #111827;
    color: #ffffff;
    font-weight: 650;
    overflow: hidden;
    cursor: pointer;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Added: 2026-09-17 22:39:08 +06:00 | Added by: Niloy.
   Student dashboard avatar shares the account popup behavior used in the admin shell. */
.student-shell-actions .profile-avatar-menu {
    border-color: var(--dash-line);
    box-shadow: 0 22px 55px rgb(15 23 42 / 0.16);
}

.student-shell-actions .profile-avatar-menu__item i {
    color: var(--dash-green);
}

.student-shell-actions .profile-avatar-menu__item:hover {
    background: var(--dash-green-soft);
    color: var(--dash-green-dark);
}

.student-shell-actions .profile-avatar-menu__item.is-danger,
.student-shell-actions .profile-avatar-menu__item.is-danger i {
    color: #dc2626;
}

.dash-page {
    padding: 1.7rem 0 0;
}

.dash-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.dash-kicker {
    margin: 0 0 0.35rem;
    color: var(--dash-green);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-hero h1 {
    margin: 0;
    color: #05070d;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 500;
}

.dash-hero h1 span {
    color: var(--dash-muted);
    font-weight: 400;
}

.dash-hero p {
    max-width: 39rem;
    margin: 0.75rem 0 0;
    color: var(--dash-muted);
    font-size: 0.98rem;
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-date-chip,
.dash-primary-action {
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    box-shadow: 0 10px 26px rgb(15 23 42 / 0.06);
}

.dash-primary-action {
    background: #ffffff;
}

.dash-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.35fr 0.85fr;
    gap: 1.25rem;
    align-items: stretch;
}

.dash-left-column,
.dash-right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-card {
    background: var(--dash-card);
    border: 1px solid rgb(255 255 255 / 0.82);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
}

.dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.dash-card-head p,
.dash-card-head h2 {
    margin: 0;
}

.dash-card-head p {
    color: var(--dash-muted);
    font-size: 0.78rem;
}

.dash-card-head h2 {
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 600;
}

.dash-card-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dash-soft);
    color: #111827;
    text-decoration: none;
}

.dash-band-card {
    margin: 1.25rem;
    min-height: 10.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem;
    border-radius: 1.2rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgb(255 255 255 / 0.25), transparent 18%),
        linear-gradient(135deg, #0ea5e9, #0369a1);
}

.dash-band-label {
    font-size: 0.78rem;
    opacity: 0.8;
}

.dash-band-card strong {
    margin-top: 0.45rem;
    font-size: clamp(1.9rem, 3vw, 2.25rem);
    line-height: 1;
}

.dash-band-card span {
    margin-top: 0.45rem;
    opacity: 0.82;
    font-size: 0.82rem;
}

.dash-inline-action {
    width: fit-content;
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dash-green-dark);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}

.dash-mini-metric,
.dash-compact-card,
.dash-score-card {
    padding: 1rem 1.15rem;
}

.dash-mini-metric {
    margin: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 1rem;
    background: var(--dash-soft);
}

.dash-mini-metric span,
.dash-compact-card span,
.dash-score-card span {
    color: var(--dash-muted);
    font-size: 0.78rem;
}

.dash-mini-metric strong,
.dash-compact-card strong,
.dash-score-card strong {
    color: #080a12;
    font-size: 1.7rem;
    line-height: 1.1;
}

.dash-compact-card,
.dash-score-card {
    min-height: 6.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-compact-card small,
.dash-score-card small,
.dash-profile-card small {
    color: var(--dash-muted);
}

.dash-chart-card {
    min-height: 22.4rem;
}

.dash-segment {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--dash-soft);
    color: var(--dash-muted);
    font-size: 0.76rem;
}

.dash-segment span,
.dash-segment strong {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
}

.dash-segment strong {
    background: var(--dash-green);
    color: #ffffff;
}

.dash-chart {
    height: 16.7rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(2rem, 1fr));
    align-items: end;
    gap: 1.1rem;
    padding: 2.5rem 1.5rem 1.3rem;
}

.dash-chart div {
    position: relative;
    min-height: 3rem;
    height: var(--bar);
    border-radius: 999px;
    background:
        repeating-linear-gradient(135deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.18) 4px, transparent 4px, transparent 8px),
        #9fcfb8;
}

.dash-chart div.is-active {
    background:
        repeating-linear-gradient(135deg, rgb(0 0 0 / 0.07), rgb(0 0 0 / 0.07) 4px, transparent 4px, transparent 8px),
        var(--dash-green);
}

.dash-chart span {
    position: absolute;
    left: 50%;
    bottom: -1.4rem;
    transform: translateX(-50%);
    color: #65646c;
    font-size: 0.72rem;
}

.dash-chart em {
    position: absolute;
    top: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--dash-green);
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
}

.dash-countdown-value {
    padding: 1.25rem 1.25rem 0.25rem;
    text-align: center;
}

.dash-countdown-value strong {
    display: block;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1;
}

.dash-countdown-value span {
    display: block;
    max-width: 13rem;
    margin: 0.75rem auto 0;
    color: var(--dash-muted);
}

.dash-wave {
    height: 6.4rem;
    margin: 0.5rem 1rem 1rem;
    border-radius: 1.1rem;
    background:
        radial-gradient(80% 60% at 20% 40%, rgb(16 138 82 / 0.22), transparent 55%),
        radial-gradient(70% 55% at 82% 55%, rgb(16 138 82 / 0.26), transparent 58%),
        linear-gradient(180deg, transparent 0 24%, rgb(16 138 82 / 0.10) 24% 26%, transparent 26% 49%, rgb(16 138 82 / 0.10) 49% 51%, transparent 51% 74%, rgb(16 138 82 / 0.10) 74% 76%, transparent 76%);
}

.dash-action-pair {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    padding: 0 1rem 1rem;
}

.dash-action-pair a {
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--dash-green);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.dash-action-pair a + a {
    background: var(--dash-soft);
    color: #3f3f46;
}

.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 0.38fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.dash-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.25rem 1.25rem;
}

.dash-task-list > div {
    min-height: 4.1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 1rem;
}

.dash-task-list > div:nth-child(even) {
    background: var(--dash-soft);
}

.dash-task-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dash-green-soft);
    color: var(--dash-green);
}

.dash-task-list strong,
.dash-task-list small {
    display: block;
}

.dash-task-list small {
    color: var(--dash-muted);
}

.dash-task-list a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgb(15 23 42 / 0.06);
}

.dash-profile-card {
    padding: 1.2rem;
}

.dash-profile-stack {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dash-profile-avatar {
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dash-green);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 650;
}

.dash-profile-stack h2,
.dash-profile-stack p {
    margin: 0;
}

.dash-profile-stack h2 {
    font-size: 1rem;
}

.dash-profile-stack p {
    color: var(--dash-muted);
    font-size: 0.8rem;
}

.dash-profile-meter {
    height: 0.65rem;
    margin: 1.25rem 0 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--dash-soft);
}

.dash-profile-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--dash-green);
}

.dash-loading-card,
.dash-alert {
    min-height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--dash-radius-lg);
    background: #ffffff;
    box-shadow: var(--dash-shadow);
}

.dash-alert {
    color: #991b1b;
    background: #fff1f2;
}

.dash-spinner {
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid var(--dash-green);
    border-right-color: transparent;
    border-radius: 999px;
    animation: dash-spin 0.7s linear infinite;
}

@keyframes dash-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .dash-grid,
    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .student-shell {
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .student-shell-rail {
        display: none;
    }

    .student-shell-main {
        padding: 0.8rem;
    }

    .student-shell-topbar {
        border-radius: 1rem;
        flex-wrap: wrap;
    }

    .student-shell-tabs {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .dash-hero {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .dash-page {
        padding-top: 1.1rem;
    }

    .student-shell-actions {
        display: none;
    }

    .student-shell-tab {
        padding: 0 0.85rem;
    }

    .dash-hero-actions,
    .dash-date-chip,
    .dash-primary-action {
        width: 100%;
        justify-content: center;
    }

    .dash-chart {
        gap: 0.65rem;
        padding-inline: 1rem;
    }

    .dash-task-list > div {
        grid-template-columns: auto 1fr;
    }

    .dash-task-list a {
        grid-column: 2;
        width: fit-content;
    }
}
