/* ============================================
   LMS SMKN 1 Punggelan - Custom Stylesheet
   Learning Management System terpadu
   ============================================ */

/* --- Base & Typography --- */
:root {
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --lms-primary: #4361ee;
    --lms-sidebar: #1a1d3a;
    --lms-bg: #f0f2f5;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--lms-bg);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Public Landing Extensions --- */
.public-page {
    background: #0a0f1f;
    color: #edf3ff;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: rgba(10, 15, 31, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.public-brand,
.public-nav a {
    color: #edf3ff;
    text-decoration: none;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
}

.public-brand i {
    color: #ffc107;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-nav-links a {
    padding: .55rem .8rem;
    border-radius: 8px;
    color: rgba(237, 243, 255, .68);
    font-size: .92rem;
}

.public-nav-links a:hover,
.public-nav-links .public-login {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.public-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) 0;
}

.public-hero {
    padding: clamp(2rem, 5vw, 5rem) 0;
}

.public-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #00d4ff;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.public-hero h1 {
    max-width: 820px;
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.public-hero p {
    max-width: 680px;
    color: rgba(237, 243, 255, .64);
    font-size: 1.08rem;
    line-height: 1.75;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.public-card,
.memory-tile,
.structure-row,
.public-band {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
}

.public-card {
    padding: 1.25rem;
}

.public-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #00d4ff;
    background: rgba(0, 212, 255, .11);
    margin-bottom: 1rem;
}

.public-chip {
    color: #ffc107;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.public-card h2 {
    color: #fff;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.35;
}

.public-card p,
.structure-row span,
.public-band p {
    color: rgba(237, 243, 255, .6);
    line-height: 1.65;
}

.public-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    font-size: .84rem;
}

.public-card-footer span {
    color: rgba(237, 243, 255, .45);
}

.public-card-footer a,
.public-action {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 800;
}

.public-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.4rem;
}

.public-band h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 850;
    margin-bottom: .35rem;
}

.public-action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 212, 255, .1);
}

.memory-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.memory-tile {
    padding: 1.25rem;
}

.memory-tile i {
    color: #ffc107;
    font-size: 1.45rem;
}

.memory-tile span,
.memory-tile strong {
    display: block;
}

.memory-tile span {
    color: rgba(237, 243, 255, .52);
    margin-top: .8rem;
}

.memory-tile strong {
    color: #fff;
    font-size: 1.05rem;
    margin-top: .2rem;
}

.structure-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.structure-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.structure-row strong {
    display: block;
    color: #fff;
    margin-bottom: .35rem;
}

.public-action-sm {
    padding: .5rem .75rem;
    font-size: .84rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
}

.gallery-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0, 212, 255, .08);
}

.gallery-media img,
.gallery-detail img {
    width: 100%;
    object-fit: cover;
}

.gallery-media img {
    height: 100%;
    transition: transform .25s ease;
}

.gallery-card:hover .gallery-media img {
    transform: scale(1.04);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, .12), rgba(255, 193, 7, .08));
    font-size: 2rem;
}

.gallery-body {
    padding: 1.1rem;
}

.gallery-body h2 {
    color: #fff;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.35;
}

.gallery-body p {
    color: rgba(237, 243, 255, .6);
    line-height: 1.65;
}

.gallery-empty {
    grid-column: 1 / -1;
}

.gallery-detail {
    width: 100%;
}

.gallery-detail img,
.gallery-detail-placeholder {
    width: 100%;
    max-height: 560px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .14);
}

.gallery-detail img {
    height: auto;
    object-fit: contain;
}

.gallery-detail-placeholder {
    min-height: 320px;
}

@media (max-width: 991px) {
    .public-grid,
    .memory-strip,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .public-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-grid,
    .memory-strip,
    .structure-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .structure-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --- Navbar Fixed Top Spacing --- */
.main-content {
    padding-top: 76px; /* navbar height + gap */
    min-height: calc(100vh - 60px);
}

/* --- Cards --- */
.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

/* --- Materi Content Styling --- */
.materi-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    overflow-wrap: break-word;
}

.materi-content > :first-child {
    margin-top: 0;
}

.materi-content h1 { font-size: 1.75rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: #1a1d3a; }
.materi-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.25rem; margin-bottom: 0.75rem; padding-top: 1.25rem; border-top: 1px solid #e9ecef; color: #1a1d3a; }
.materi-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #333; }
.materi-content h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }

.materi-content p {
    margin-bottom: 1rem;
}

.materi-content ul, .materi-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.materi-content li {
    margin-bottom: 0.25rem;
}

.materi-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.55;
    white-space: pre;
    margin-bottom: 1rem;
}

.materi-content code {
    background: #e8eaed;
    color: #d63384;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    overflow-wrap: anywhere;
}

.materi-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    overflow-wrap: normal;
}

.materi-content blockquote {
    border-left: 4px solid var(--lms-primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 0 8px 8px 0;
}

.materi-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.materi-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.materi-content table th,
.materi-content table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    min-width: 9rem;
    vertical-align: top;
}

.materi-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.materi-content table tr:hover {
    background: #f8f9fa;
}

.materi-content hr {
    margin: 2rem 0;
    border-color: #dee2e6;
}

/* --- Badge Overrides --- */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Progress Bar --- */
.progress {
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 20px;
    transition: width 0.6s ease;
}

/* --- Dashboard Unit Materi --- */
.dashboard-unit-card {
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-unit-card:hover {
    border-color: rgba(67, 97, 238, 0.35) !important;
    box-shadow: 0 8px 24px rgba(26, 29, 58, 0.08);
}

.dashboard-unit-heading {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dashboard-unit-heading .fw-semibold {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-materi-groups {
    margin-top: 0.75rem;
}

.dashboard-materi-group + .dashboard-materi-group {
    margin-top: 0.65rem;
}

.dashboard-materi-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.dashboard-materi-link {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    color: #343a40;
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
}

.dashboard-materi-link:hover {
    color: var(--lms-primary);
    background: #f3f6ff;
}

.dashboard-materi-link i {
    flex: 0 0 auto;
    font-size: 0.7rem;
    margin-top: 0.18rem;
}

.dashboard-materi-link span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- Profile & Achievement --- */
.profile-photo,
.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo {
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(26, 29, 58, 0.16);
}

.profile-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    color: var(--lms-primary);
}

.profile-photo-placeholder i {
    font-size: 3.75rem;
}

.profile-photo-sm,
.profile-photo-placeholder-sm {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.profile-photo-placeholder-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    color: var(--lms-primary);
}

.profile-photo-placeholder-sm i {
    font-size: 2rem;
}

.achievement-semester {
    background: #fff;
}

/* --- Admin Student Form --- */
.admin-student-form,
.admin-student-form .row,
.admin-student-form [class*="col-"],
.admin-student-form .input-group,
.admin-student-form .form-control,
.admin-student-form .form-select {
    min-width: 0;
}

.admin-form-section {
    padding: 0 0 1.5rem;
}

.admin-form-section + .admin-form-section {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.admin-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.student-print-sheet {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    color: #111827;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.student-print-header,
.student-print-summary,
.student-print-semester-head,
.student-print-signature {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.student-print-header {
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 2px solid #111827;
}

.student-print-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0;
}

.student-print-photo-wrap {
    flex: 0 0 auto;
}

.student-print-photo {
    width: 112px;
    height: 112px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d1d5db;
}

.student-print-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--lms-primary);
}

.student-print-photo-placeholder i {
    font-size: 3rem;
}

.student-print-summary {
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.student-print-summary h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.student-print-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    min-width: min(100%, 460px);
}

.student-print-stat,
.student-print-field,
.student-print-textbox,
.student-print-semester {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.student-print-stat {
    padding: 10px 12px;
}

.student-print-stat span,
.student-print-field span,
.student-print-signature span {
    display: block;
    color: #6b7280;
    font-size: 0.76rem;
    font-weight: 600;
}

.student-print-stat strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.student-print-stat small {
    color: #6b7280;
}

.student-print-section {
    margin-top: 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.student-print-section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.student-print-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-print-field {
    padding: 10px 12px;
    min-height: 64px;
}

.student-print-field strong {
    display: block;
    margin-top: 3px;
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-print-textbox {
    height: 100%;
    padding: 12px;
}

.student-print-textbox h4,
.student-print-semester h4 {
    margin: 0 0 6px;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
}

.student-print-textbox p,
.student-print-semester p {
    margin: 0;
    color: #4b5563;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.student-print-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    color: #4b5563;
    font-size: 0.88rem;
}

.student-print-links span {
    font-weight: 700;
    color: #111827;
}

.student-print-semester {
    padding: 14px;
    margin-bottom: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.student-print-semester-head {
    align-items: flex-start;
    margin-bottom: 10px;
}

.student-print-note {
    padding: 10px 12px;
    border-left: 4px solid #d1d5db;
    background: #f9fafb;
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.student-print-note:last-child {
    margin-bottom: 0;
}

.student-print-signature {
    margin-top: 36px;
    padding-top: 18px;
}

.student-print-signature > div {
    width: 240px;
    min-height: 92px;
    border-top: 1px solid #d1d5db;
    padding-top: 8px;
}

/* --- Navbar Styling --- */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Landing Page --- */
.landing-hero {
    background: linear-gradient(135deg, #1a1d3a 0%, #4361ee 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.feature-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* --- Quiz Timer --- */
#timer {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

/* --- Form Styling --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.form-check-input:checked {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--lms-primary);
}

/* --- Admin Mobile Navigation --- */
.admin-subnav {
    position: sticky;
    top: 56px;
    z-index: 1010;
}

.admin-subnav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 0;
}

.admin-subnav-current {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-subnav-current strong {
    font-size: .95rem;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-subnav-kicker {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-subnav-toggle {
    flex: 0 0 auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-content {
        padding-top: 66px;
    }
    
    .materi-content pre {
        font-size: 0.75rem;
    }

    .materi-content table th,
    .materi-content table td {
        min-width: 8rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar.fixed-top .navbar-collapse {
        max-height: calc(100vh - 58px);
        overflow-y: auto;
        padding: .75rem 0 1rem;
    }

    .main-content > .container-fluid {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .admin-subnav {
        top: 56px;
        margin-left: -.75rem;
        margin-right: -.75rem;
        border-top: 1px solid #eef2f7;
    }

    .admin-subnav .container-fluid {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .admin-subnav-collapse {
        padding-bottom: .75rem;
    }

    .admin-subnav-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
        overflow: visible !important;
        padding: .25rem 0 .5rem !important;
        white-space: normal;
    }

    .admin-subnav-scroll .nav-link {
        min-width: 0;
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: .45rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        color: #1f2937 !important;
        font-weight: 600;
        line-height: 1.15;
        padding: .62rem .7rem !important;
        white-space: normal;
    }

    .admin-subnav-scroll .nav-link i {
        width: 1rem;
        flex: 0 0 auto;
        margin-right: 0 !important;
        color: #64748b;
    }

    .admin-subnav-scroll .nav-link span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-subnav-scroll .nav-link.active {
        color: #fff !important;
        border-color: var(--lms-primary);
        box-shadow: 0 8px 18px rgba(67, 97, 238, .18);
    }

    .admin-subnav-scroll .nav-link.active i {
        color: #fff;
    }
}

@media (max-width: 380px) {
    .admin-subnav-scroll {
        grid-template-columns: 1fr;
    }
}

@media print {
    .navbar, .admin-subnav, .btn, .breadcrumb, .no-print, footer {
        display: none !important;
    }

    body {
        background: #fff !important;
    }
    
    .main-content {
        padding-top: 0 !important;
    }

    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .student-profile-print {
        padding: 0 !important;
    }

    .student-print-sheet {
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .student-print-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-print-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-print-section,
    .student-print-semester,
    .student-print-note {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* --- Table --- */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 600;
}

/* --- Toast / Alert --- */
.alert {
    border: none;
    border-radius: 10px;
}

/* --- Question Navigator --- */
.question-nav {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
}
