:root {
    --app-bg: #f6f7f9;
    --app-text: #172033;
    --app-muted: #667085;
    --app-border: rgba(15, 23, 42, 0.12);
    --app-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);

    --admin-bg: #f4f6fb;
    --admin-primary: #111827;
    --admin-primary-soft: #e5e7eb;

    --teacher-bg: #f2f7ff;
    --teacher-primary: #2563eb;
    --teacher-primary-soft: #dbeafe;

    --parent-bg: #f3fbf5;
    --parent-primary: #16a34a;
    --parent-primary-soft: #dcfce7;

    --student-bg: #fff8e8;
    --student-bg-soft: #fffdf6;
    --student-primary: #2563eb;
    --student-primary-dark: #1d4ed8;
    --student-primary-soft: #dbeafe;
    --student-green: #22c55e;
    --student-green-soft: #dcfce7;
    --student-yellow: #facc15;
    --student-orange: #fb923c;
    --student-red: #ef4444;
    --student-text: #1f2937;
    --student-muted: #667085;
    --student-card: #ffffff;
    --student-border: rgba(37, 99, 235, 0.18);
    --student-shadow: 0 1rem 2.5rem rgba(37, 99, 235, 0.12);
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.card {
    border-radius: 1rem;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    letter-spacing: -0.02em;
}

.navbar .nav-link.active,
.navbar .dropdown-item.active {
    font-weight: 600;
}

.navbar .dropdown-menu {
    border-radius: 0.85rem;
    box-shadow: var(--app-shadow);
}

.app-role-badges {
    max-width: 18rem;
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
}

/* =========================================================
   Admin-, Lehrer- und Elternbereiche
   ========================================================= */

.admin-body,
.teacher-body,
.parent-body {
    min-height: 100vh;
    color: var(--app-text);
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(17, 24, 39, 0.08), transparent 30rem),
        linear-gradient(180deg, var(--admin-bg), #ffffff 62%);
}

.teacher-body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
        linear-gradient(180deg, var(--teacher-bg), #ffffff 62%);
}

.parent-body {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.14), transparent 32rem),
        linear-gradient(180deg, var(--parent-bg), #ffffff 62%);
}

.admin-body main.container,
.teacher-body main.container,
.parent-body main.container {
    min-height: calc(100vh - 13rem);
}

.admin-body .card,
.teacher-body .card,
.parent-body .card {
    border: 1px solid var(--app-border);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.admin-body .card {
    border-color: rgba(17, 24, 39, 0.12);
}

.teacher-body .card {
    border-color: rgba(37, 99, 235, 0.16);
}

.parent-body .card {
    border-color: rgba(22, 163, 74, 0.16);
}

.admin-body .btn,
.teacher-body .btn,
.parent-body .btn {
    border-radius: 999px;
    font-weight: 600;
}

.admin-body .alert,
.teacher-body .alert,
.parent-body .alert {
    border-radius: 1rem;
}

.admin-body .table,
.teacher-body .table,
.parent-body .table {
    vertical-align: middle;
}

.admin-body .table-responsive,
.teacher-body .table-responsive,
.parent-body .table-responsive {
    border-radius: 1rem;
}

.admin-body .progress,
.teacher-body .progress,
.parent-body .progress {
    height: 0.85rem;
    border-radius: 999px;
}

.teacher-body .progress-bar {
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.parent-body .progress-bar {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.admin-body .progress-bar {
    background: linear-gradient(90deg, #111827, #64748b);
}

.teacher-body header.bg-white,
.parent-body header.bg-white {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(12px);
}

.admin-body footer,
.teacher-body footer,
.parent-body footer {
    background: rgba(255, 255, 255, 0.78) !important;
}

.admin-body .navbar,
.teacher-body .navbar,
.parent-body .navbar {
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.10);
}

.teacher-body .navbar.bg-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
}

.parent-body .navbar.bg-success {
    background: linear-gradient(135deg, #15803d, #16a34a) !important;
}

.admin-body .navbar.bg-dark {
    background: linear-gradient(135deg, #020617, #111827) !important;
}

/* =========================================================
   Kinderbereich
   ========================================================= */

.student-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 34rem),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 28rem),
        linear-gradient(180deg, var(--student-bg) 0%, #f5fbff 52%, #ffffff 100%);
    color: var(--student-text);
    font-size: 1.05rem;
}

.student-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 253, 246, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.student-topbar-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.student-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--student-text);
    text-decoration: none;
    line-height: 1.1;
}

.student-brand:hover {
    color: var(--student-primary-dark);
}

.student-brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--student-yellow), var(--student-orange));
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: 0 0.75rem 1.5rem rgba(251, 146, 60, 0.24);
}

.student-brand strong {
    display: block;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.student-brand small {
    display: block;
    color: var(--student-muted);
    font-size: 0.9rem;
}

.student-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-nav-link,
.student-nav-button {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: #ffffff;
    color: var(--student-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.06);
}

.student-nav-button {
    appearance: none;
    cursor: pointer;
}

.student-nav-link:hover,
.student-nav-button:hover,
.student-nav-link.active {
    border-color: var(--student-primary);
    background: var(--student-primary-soft);
    color: var(--student-primary-dark);
}

.student-nav-link-muted {
    color: var(--student-muted);
    font-weight: 600;
}

.student-hero {
    padding: 1.25rem 0 0;
}

.student-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(34, 197, 94, 0.82)),
        var(--student-primary);
    color: #ffffff;
    box-shadow: var(--student-shadow);
    overflow: hidden;
    position: relative;
}

.student-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -3rem -5rem auto;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.student-hero-kicker {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.95;
}

.student-hero-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.student-hero-text {
    margin: 0.65rem 0 0;
    max-width: 46rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.95;
}

.student-hero-badge {
    flex: 0 0 auto;
    width: clamp(4rem, 14vw, 7rem);
    height: clamp(4rem, 14vw, 7rem);
    display: grid;
    place-items: center;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: clamp(2.2rem, 6vw, 4rem);
    position: relative;
    z-index: 1;
}

.student-main {
    padding: 1.5rem 0 2rem;
}

.student-footer {
    padding: 1.5rem 0;
    color: var(--student-muted);
}

.student-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.student-body .card {
    border: 1px solid var(--student-border);
    border-radius: 1.5rem;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.student-body .card-body {
    border-radius: 1.5rem;
}

.student-body .btn {
    border-radius: 999px;
    font-weight: 700;
    padding-inline: 1.1rem;
}

.student-body .btn-primary {
    background: var(--student-primary);
    border-color: var(--student-primary);
}

.student-body .btn-primary:hover,
.student-body .btn-primary:focus {
    background: var(--student-primary-dark);
    border-color: var(--student-primary-dark);
}

.student-body .btn-success {
    background: var(--student-green);
    border-color: var(--student-green);
}

.student-body .alert {
    border-radius: 1.25rem;
    border-width: 1px;
}

.student-body .alert-info {
    background: var(--student-primary-soft);
    border-color: rgba(37, 99, 235, 0.22);
    color: #1e3a8a;
}

.student-body .alert-success {
    background: var(--student-green-soft);
    border-color: rgba(34, 197, 94, 0.25);
    color: #14532d;
}

.student-body .alert-warning {
    background: #fef3c7;
    border-color: rgba(250, 204, 21, 0.45);
    color: #713f12;
}

.student-body .alert-danger {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.25);
    color: #7f1d1d;
}

.student-body .progress {
    height: 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
}

.student-body .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--student-primary), var(--student-green));
}

.student-body .badge {
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
}

.student-body .form-control,
.student-body .form-select {
    border-radius: 1rem;
    min-height: 3rem;
}

.student-body .form-control:focus,
.student-body .form-select:focus,
.student-body .form-check-input:focus {
    border-color: var(--student-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.18);
}

.student-body label.border {
    border-color: rgba(37, 99, 235, 0.18) !important;
    background: #ffffff;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.student-body label.border:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.5) !important;
    background: #f8fbff;
}

.student-body .form-check-input,
.student-body input[type="radio"],
.student-body input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
}

.student-body .display-6 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.student-body h1,
.student-body h2,
.student-body h3 {
    letter-spacing: -0.035em;
}

.student-body .table {
    --bs-table-bg: transparent;
}

.student-body .table-responsive {
    border-radius: 1rem;
}

/* =========================================================
   Kinder-Dashboard
   ========================================================= */

.student-dashboard-page {
    display: grid;
    gap: 1.25rem;
}

.student-alert-big {
    font-size: 1.05rem;
    padding: 1.2rem 1.35rem;
}

.student-dashboard-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.student-dashboard-intro h2,
.student-section-heading h2,
.student-next-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 850;
    letter-spacing: -0.05em;
}

.student-dashboard-intro p {
    margin-bottom: 0;
    color: var(--student-muted);
}

.student-section-kicker {
    margin: 0 0 0.35rem;
    color: var(--student-primary-dark);
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.student-progress-ring {
    --progress: 0;
    width: clamp(8rem, 22vw, 11rem);
    height: clamp(8rem, 22vw, 11rem);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(var(--student-green) calc(var(--progress) * 1%), rgba(37, 99, 235, 0.12) 0),
        #ffffff;
    box-shadow: inset 0 0 0 0.65rem #ffffff, 0 0.75rem 2rem rgba(34, 197, 94, 0.18);
}

.student-progress-ring-inner {
    width: 72%;
    height: 72%;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #ffffff;
    text-align: center;
}

.student-progress-ring-inner strong {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1;
    font-weight: 900;
    color: var(--student-primary-dark);
}

.student-progress-ring-inner span {
    display: block;
    color: var(--student-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.student-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.student-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 7rem;
    padding: 1.25rem;
    border-radius: 1.65rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.student-stat-icon {
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 1.1rem;
    font-size: 1.65rem;
    background: var(--student-primary-soft);
}

.student-stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.student-stat-card span:last-child {
    color: var(--student-muted);
    font-weight: 750;
}

.student-stat-total .student-stat-icon {
    background: #ede9fe;
}

.student-stat-open .student-stat-icon {
    background: #fef3c7;
}

.student-stat-progress .student-stat-icon {
    background: #dbeafe;
}

.student-stat-done .student-stat-icon {
    background: #dcfce7;
}

.student-next-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(251, 146, 60, 0.92)),
        #facc15;
    color: #3b2600;
    box-shadow: 0 1rem 2.2rem rgba(251, 146, 60, 0.22);
}

.student-next-card .student-section-kicker {
    color: #7c2d12;
}

.student-next-card p {
    margin: 0.45rem 0 0;
    font-weight: 700;
}

.student-next-button {
    min-width: 11rem;
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--student-primary-dark) !important;
    box-shadow: 0 0.8rem 1.4rem rgba(124, 45, 18, 0.16);
}

.student-subject-strip,
.student-section {
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.05);
}

.student-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.student-subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.student-subject-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.05);
}

.student-subject-pill strong {
    font-weight: 850;
}

.student-subject-pill small {
    color: var(--student-muted);
    font-weight: 700;
}

.student-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.student-module-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.2rem;
    border-radius: 1.75rem;
    background: #ffffff;
    border: 2px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.student-module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.45rem;
    background: var(--student-primary);
}

.student-module-card.student-status-open::before {
    background: var(--student-yellow);
}

.student-module-card.student-status-progress::before {
    background: var(--student-primary);
}

.student-module-card.student-status-done::before {
    background: var(--student-green);
}

.student-module-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.student-module-subject,
.student-module-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 850;
}

.student-module-subject {
    background: var(--student-primary-soft);
    color: var(--student-primary-dark);
}

.student-module-status {
    background: #f3f4f6;
    color: var(--student-text);
}

.student-status-open .student-module-status {
    background: #fef3c7;
    color: #713f12;
}

.student-status-progress .student-module-status {
    background: #dbeafe;
    color: #1e3a8a;
}

.student-status-done .student-module-status {
    background: #dcfce7;
    color: #14532d;
}

.student-module-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 900;
}

.student-module-meta {
    display: grid;
    gap: 0.25rem;
    color: var(--student-muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.student-module-description {
    margin: 0;
    color: #475467;
    line-height: 1.45;
}

.student-module-description-muted {
    color: var(--student-muted);
}

.student-module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.student-module-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 750;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.student-module-date {
    color: var(--student-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.student-module-date-done {
    color: #166534;
}

.student-module-button {
    width: 100%;
    min-height: 3.1rem;
    margin-top: 0.1rem;
}

.student-empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 2rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.student-empty-state-small {
    padding: 2rem;
}

.student-empty-icon {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 1.5rem;
    background: var(--student-primary-soft);
    font-size: 2.5rem;
}

.student-empty-state h1,
.student-empty-state h3 {
    margin: 0;
    font-weight: 900;
}

.student-empty-state p {
    max-width: 38rem;
    margin: 0;
    color: var(--student-muted);
}

.student-soft-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px dashed rgba(37, 99, 235, 0.22);
    color: var(--student-muted);
    font-weight: 700;
}

.student-soft-note span {
    font-size: 1.5rem;
}

.student-soft-note p {
    margin: 0;
}

.student-scheduled-list {
    display: grid;
    gap: 0.75rem;
}

.student-scheduled-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.student-scheduled-date {
    flex: 0 0 auto;
    display: grid;
    gap: 0.1rem;
    min-width: 7.5rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: var(--student-primary-soft);
    color: var(--student-primary-dark);
    text-align: center;
}

.student-scheduled-date span {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.student-scheduled-date strong {
    font-size: 0.95rem;
}

.student-scheduled-card p {
    margin: 0.25rem 0 0;
    color: var(--student-muted);
}

@media (max-width: 767.98px) {
    .student-body {
        font-size: 1rem;
    }

    .student-topbar-inner {
        min-height: auto;
        padding: 0.85rem 0;
        align-items: flex-start;
    }

    .student-brand-mark {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 0.9rem;
    }

    .student-nav {
        width: 100%;
        justify-content: stretch;
    }

    .student-nav-link,
    .student-nav-button {
        flex: 1 1 auto;
        min-height: 2.75rem;
        padding-inline: 0.75rem;
    }

    .student-topbar-inner {
        flex-wrap: wrap;
    }

    .student-hero {
        padding-top: 0.9rem;
    }

    .student-hero-card {
        align-items: flex-start;
        border-radius: 1.5rem;
    }

    .student-hero-badge {
        display: none;
    }

    .student-main {
        padding-top: 1rem;
    }

    .student-body .card-body {
        padding: 1.15rem !important;
    }

    .student-body .btn {
        width: 100%;
        min-height: 3rem;
    }

    .student-footer-inner {
        flex-direction: column;
    }

    .student-dashboard-intro,
    .student-next-card {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1.5rem;
    }

    .student-progress-ring {
        margin-inline: auto;
    }

    .student-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-stat-card {
        min-height: 6rem;
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .student-stat-icon {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.35rem;
    }

    .student-stat-card strong {
        font-size: 1.65rem;
    }

    .student-module-grid {
        grid-template-columns: 1fr;
    }

    .student-module-card {
        border-radius: 1.5rem;
    }

    .student-module-card-top {
        flex-direction: column;
    }

    .student-subject-strip,
    .student-section {
        border-radius: 1.5rem;
        padding: 1rem;
    }

    .student-subject-pill {
        width: 100%;
        justify-content: space-between;
    }

    .student-scheduled-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-scheduled-date {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .student-body .container {
        max-width: 94%;
    }

    .student-body .card-body {
        padding: 1.5rem !important;
    }

    .student-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}