@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
}

.Parents {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

/* Naviagtion */

.Navigation-bar {
    width: 300px;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #1a0f25;
    transition: width 0.3s ease;
}

.side-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.sidebar-logo {
    display: block;
    width: 250px;
    height: auto;
    margin: 0 auto 20px;
    transition: width 0.3s ease, margin 0.3s ease;
}

/* Vision */

.Vision {
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.Vision ul {
    margin: 0;
    padding: 0;
}

.Vision li {
    width: 300px;
    margin: 1px auto;
    list-style: none;
}

.Vision a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: whitesmoke;
    text-align: justify;
    text-decoration: none;
}

.Vision a:hover,
.Vision a.active {
    background: linear-gradient(90deg, #5865FF, #b36bff);
}

/* Bottom */

.Bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 48vh;
}

.Bottom ul {
    justify-content: center;
    margin: 0 0 37px;
    padding: 0;
    font-size: 18px;
}

.Bottom li {
    width: 300px;
    margin: 0;
    padding: 9px;
    border: 1px;
    border-radius: 8px;
    list-style: none;
}

.Bottom a {
    align-items: center;
    color: whitesmoke;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
}

.Bottom ul a:hover li {
    background: linear-gradient(90deg, #5865FF, #b36bff);
}

.menu-toggle {
    position: fixed;
    top: 10px;
    left: 240px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: #2c1455;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: left 0.3s ease, background 0.2s ease;
}

.menu-toggle:hover {
    background: #5865FF;
}

.Navigation-bar.collapsed {
    width: 80px;
}

.Navigation-bar.collapsed .Vision span,
.Navigation-bar.collapsed .Bottom {
    display: none;
}

.Navigation-bar.collapsed .Vision li {
    width: 60px;
    margin: 5px auto;
}

.Navigation-bar.collapsed .Vision a {
    justify-content: center;
    padding: 12px 0;
}

.Navigation-bar.collapsed .sidebar-logo {
    width: 55px;
    margin: 0 auto 20px;
}

.menu-toggle.collapsed {
    left: 18px;
}

/* PHONE */

/* Navigation */

@media (max-width: 600px) {
    body {
        overflow: hidden;
    }

    .Navigation-bar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9000;
        width: 0;
        height: 100vh;
        transition: width 0.3s ease;
    }

    .Navigation-bar.collapsed {
        width: 0;
    }

    .Navigation-bar .side-bar {
        width: 260px;
        transition: visibility 0.3s ease;
    }

    .Navigation-bar.collapsed .side-bar {
        visibility: hidden;
    }

    .Navigation-bar:not(.collapsed) {
        width: 260px;
    }

    .Navigation-bar:not(.collapsed) .sidebar-logo {
        width: 180px;
        margin: 30px auto 25px;
    }

    .Navigation-bar:not(.collapsed) .Vision span {
        display: inline;
    }

    .Navigation-bar:not(.collapsed) .Vision li {
        width: 230px;
        margin: 3px auto;
    }

    .Navigation-bar:not(.collapsed) .Vision a {
        justify-content: flex-start;
        padding: 12px 18px;
    }

    .Navigation-bar:not(.collapsed) .Bottom {
        display: flex;
        height: auto;
    }

    .Navigation-bar:not(.collapsed) .Bottom li {
        width: 230px;
        margin: 0 auto;
    }

    .menu-toggle {
        position: fixed;
        top: 10px;
        left: 170px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border: none;
        border-radius: 10px;
        background: #2c1455;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: #5865FF;
    }

    .menu-toggle.collapsed {
        left: 18px;
    }
}

/* page-nav */

.page-nav {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgb(233, 233, 233);
}

.page-content {
    display: none;
}

.page-content.active-page {
    display: block;
}

/* DASHBOARD */
#dashboard {
    --dashboard-primary: #5865f2;
    --dashboard-purple: #9065e8;
    --dashboard-text: #202846;
    --dashboard-muted: #78829c;
    --dashboard-border: #e8ebf4;
    --dashboard-surface: #ffffff;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 28px;
    color: var(--dashboard-text);
    box-sizing: border-box;
}

#dashboard *,
#dashboard *::before,
#dashboard *::after {
    box-sizing: border-box;
}

#dashboard.page-content:not(.active-page) {
    display: none !important;
}

#dashboard.page-content.active-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

/* =========================================================
   WELCOME BANNER
========================================================= */

#dashboard .txt-background {
    position: relative;
    display: flex;
    align-items: center;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 190px;
    margin: 0;
    padding: 32px 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(174, 153, 255, 0.32),
            transparent 35%
        ),
        linear-gradient(120deg, #2c1455, #100915);
    box-shadow: 0 12px 32px rgba(47, 57, 115, 0.12);
}

#dashboard .dashboard-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

#dashboard .dashboard-welcome-text {
    min-width: 0;
}

#dashboard .dashboard-content h1 {
    margin: 0 0 12px;
    padding: 0;
    color: #ffffff;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

#dashboard .dashboard-content h4 {
    margin: 0;
    padding: 0;
    color: #d8e0ff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    background: none;
    -webkit-text-fill-color: #d8e0ff;
}

#dashboard .dashboard-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7770df;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

#dashboard .dashboard-welcome-text .dashboard-eyebrow {
    color: #c5bcff;
}

#dashboard .welcome-divider {
    margin: 0 6px;
}

#dashboard .dashboard-welcome-icon {
    display: flex;
    flex: 0 0 76px;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    color: #e0d9ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

#dashboard .dashboard-welcome-icon svg {
    width: 38px;
    height: 38px;
}

/* =========================================================
   SHARED CARD STYLES
========================================================= */

#dashboard .dashboard-card {
    min-width: 0;
    margin: 0;
    padding: 24px;
    color: var(--dashboard-text);
    border: 1px solid var(--dashboard-border);
    border-radius: 20px;
    background: var(--dashboard-surface);
    box-shadow: 0 5px 20px rgba(35, 49, 91, 0.045);
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#dashboard .dashboard-card:hover {
    border-color: #dce1f5;
    box-shadow: 0 9px 26px rgba(35, 49, 91, 0.075);
}

/* =========================================================
   PROGRESS CHART
========================================================= */

#dashboard .Grap-Progress {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 390px;
}

#dashboard .chart-graph {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

#dashboard .dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

#dashboard .dashboard-section-heading h2 {
    margin: 0;
    color: var(--dashboard-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
}

#dashboard .dashboard-section-heading p {
    margin: 6px 0 0;
    color: var(--dashboard-muted);
    font-size: 12px;
    line-height: 1.6;
}

#dashboard .dashboard-heading-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #625de0;
    background: #f0efff;
}

#dashboard .dashboard-heading-icon svg {
    width: 21px;
    height: 21px;
}

#dashboard .training-icon {
    color: #4277d4;
    background: #edf4ff;
}

#dashboard .subject-icon {
    color: #7b5bd6;
    background: #f3efff;
}

#dashboard .chart-container {
    position: relative;
    display: block;
    width: 100%;
    height: 290px;
    min-height: 220px;
    margin: 0;
    overflow: hidden;
}

/* =========================================================
   DASHBOARD CONTENT GRID
========================================================= */

#dashboard .dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#dashboard .dashboard-content-grid > .dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: 210px;
}

/* =========================================================
   CARD HEADINGS
========================================================= */

#dashboard .dashboard-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

#dashboard .dashboard-card-heading > div:last-child {
    min-width: 0;
}

#dashboard .dashboard-card-heading h2 {
    margin: 0;
    color: var(--dashboard-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

#dashboard .dashboard-card-heading p {
    margin: 5px 0 0;
    color: var(--dashboard-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================================
   RECENT TRAINING AND SUBJECT LISTS
========================================================= */

#dashboard .dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

#dashboard .shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 12px;
    color: var(--dashboard-text);
    text-decoration: none;
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    background: #fafbff;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#dashboard .shortcut-item:hover {
    transform: translateY(-2px);
    border-color: #cfd6ff;
    background: #f2f3ff;
}

#dashboard .dashboard-list-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #6962d9;
    background: #eeedff;
}

#dashboard .dashboard-list-icon svg {
    width: 18px;
    height: 18px;
}

#dashboard .dashboard-list-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#dashboard .dashboard-list-text strong {
    color: #303852;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#dashboard .dashboard-list-text small {
    color: #8991a7;
    font-size: 10px;
    line-height: 1.5;
}

#dashboard .dashboard-list-arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #a1a8bb;
}

#dashboard .shortcut-item:focus-visible {
    outline: 3px solid rgba(88, 101, 242, 0.45);
    outline-offset: 2px;
}

/* =========================================================
   TOTAL SUBJECTS
========================================================= */

#dashboard .total-number {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    margin-top: auto;
    padding: 20px;
    border: 1px solid #e4e8ff;
    border-radius: 16px;
    background: linear-gradient(135deg, #f2f4ff, #f8f5ff);
}

#dashboard .total-number h3 {
    margin: 0;
    color: var(--dashboard-primary);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

#dashboard .total-number span {
    color: var(--dashboard-muted);
    font-size: 12px;
}

/* =========================================================
   EMPTY STATES
========================================================= */

#dashboard .dashboard-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 100px;
    padding: 18px;
    color: #9aa2b7;
    text-align: center;
    border: 1px dashed #e3e7f1;
    border-radius: 13px;
    background: #fafbff;
}

#dashboard .dashboard-empty svg {
    width: 26px;
    height: 26px;
    color: #a4a6d7;
}

#dashboard .dashboard-empty p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   OPTIONAL DASHBOARD STATISTICS
========================================================= */

#dashboard .dashboard-stats {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

#dashboard .dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 22px 18px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(35, 49, 91, 0.045);
}

#dashboard .dashboard-stat-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

#dashboard .dashboard-stat-icon svg {
    width: 23px;
    height: 23px;
}

#dashboard .study-tools-icon {
    color: #5865f2;
    background: #eef0ff;
}

#dashboard .study-space-icon {
    color: #9065e8;
    background: #f3edff;
}

#dashboard .gamified-icon {
    color: #d88a20;
    background: #fff4df;
}

#dashboard .progress-icon {
    color: #159b79;
    background: #e5f8f1;
}

#dashboard .dashboard-stat-info {
    min-width: 0;
}

#dashboard .dashboard-stat-info p {
    margin: 0 0 7px;
    color: var(--dashboard-muted);
    font-size: 12px;
    font-weight: 600;
}

#dashboard .dashboard-stat-info h2 {
    margin: 0 0 6px;
    color: var(--dashboard-text);
    font-size: 27px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

#dashboard .dashboard-stat-info span {
    color: #8991a7;
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 601px) and (max-width: 1099px) {
    #dashboard {
        gap: 18px;
        padding: 22px;
    }

    #dashboard .dashboard-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #dashboard .dashboard-content-grid > .dashboard-card {
        min-height: 190px;
    }

    #dashboard .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #dashboard .Grap-Progress {
        min-height: 340px;
    }

    #dashboard .chart-container {
        height: 260px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    #dashboard,
    #dashboard.page-content.active-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
        width: 100%;
        padding: 72px 16px 16px;
    }

    #dashboard .txt-background {
        min-height: 150px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    #dashboard .dashboard-content {
        gap: 12px;
    }

    #dashboard .dashboard-content h1 {
        font-size: clamp(24px, 7vw, 32px);
        letter-spacing: -0.5px;
    }

    #dashboard .dashboard-content h4 {
        font-size: 13px;
    }

    #dashboard .dashboard-welcome-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    #dashboard .dashboard-welcome-icon svg {
        width: 27px;
        height: 27px;
    }

    #dashboard .dashboard-card {
        padding: 18px;
        border-radius: 16px;
    }

    #dashboard .dashboard-content-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #dashboard .dashboard-content-grid > .dashboard-card {
        min-height: 0;
    }

    #dashboard .Grap-Progress {
        min-height: 300px;
    }

    #dashboard .chart-container {
        height: 230px;
        min-height: 200px;
    }

    #dashboard .dashboard-section-heading h2 {
        font-size: 18px;
    }

    #dashboard .total-number {
        min-height: 80px;
        padding: 16px;
    }

    #dashboard .total-number h3 {
        font-size: 34px;
    }

    #dashboard .dashboard-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #dashboard .dashboard-stat-card {
        padding: 18px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    #dashboard .dashboard-card,
    #dashboard .shortcut-item {
        transition: none;
    }

    #dashboard .shortcut-item:hover {
        transform: none;
    }
}

/* STUDY TOOLS */

.study-tools,
.desktop-study-tools,
.div-2 {
    width: 100%;
}

.workspace {
    width: 100%;
    padding: 28px 32px 40px;
}

.overline {
    display: block;
    margin-bottom: 6px;
    color: #8b35e8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.heading-row {
    width: 100%;
    margin-bottom: 24px;
}

.heading-copy {
    flex: 1;
}

.heading-copy .title {
    margin: 0;
    color: #17121f;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.heading-copy .subtitle {
    margin: 8px 0 0;
    color: #77717e;
    font-size: 14px;
    line-height: 1.5;
}

.reviewer-search {
    position: relative;
    width: 260px;
    margin-left: auto;
}

.reviewer-search .search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    pointer-events: none;
}

.reviewer-search input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border: 1px solid #e4dfe8;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #2a2430;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reviewer-search input:focus {
    border-color: #b36bff;
    box-shadow: 0 0 0 3px rgba(179, 107, 255, 0.1);
}

.reviewer-search input::placeholder {
    color: #a29ba8;
}

/* AI REVIEWER GENERATOR */

.AI-reviewer {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 34px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #e6dced;
    border-radius: 18px;
    background: linear-gradient(135deg, #2c1455 0%, #100915 100%);
}

.generator-content-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 34px;
    width: 100%;
}

.left-hero {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ai-header-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-sparkle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(179, 107, 255, 0.25);
}

.label-2 {
    color: #d8b8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.hero-title {
    max-width: 470px;
    margin: 0;
    color: #ffffff;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.15;
}

.hero-desc {
    max-width: 470px;
    margin: 12px 0 0;
    color: #c7bcd0;
    font-size: 14px;
    line-height: 1.6;
}

.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 500px);
    min-width: 0;
}

/* FILE UPLOAD */

.file-card-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px;
    padding: 15px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.file-card-box:hover {
    border-color: rgba(179, 107, 255, 0.75);
    background: rgba(255, 255, 255, 0.09);
}

.file-card-box.dragover {
    transform: translateY(-1px);
    border-color: #b36bff;
    background: rgba(179, 107, 255, 0.12);
}

.file-card-box.uploaded {
    border-style: solid;
    border-color: rgba(179, 107, 255, 0.55);
    background: rgba(179, 107, 255, 0.08);
}

.upload-icon-box,
.file-badge-small {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.upload-icon-box {
    background: rgba(179, 107, 255, 0.14);
}

.file-badge-small {
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.file-badge-small.pdf {
    background: rgba(255, 92, 92, 0.13);
    color: #ff7a7a;
}

.file-badge-small.ppt,
.file-badge-small.pptx {
    background: rgba(255, 173, 102, 0.13);
    color: #ffad66;
}

.file-card-info {
    flex: 1;
    min-width: 0;
}

.file-card-info .prompt {
    overflow: hidden;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card-info .formats {
    margin: 5px 0 0;
    color: #a99fb2;
    font-size: 11px;
    line-height: 1.4;
}

.browse-files-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.browse-files-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(179, 107, 255, 0.6);
    background: rgba(179, 107, 255, 0.18);
}

.file-card-box input[type="file"] {
    display: none;
}

.remove-file-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #c9bfce;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.remove-file-btn:hover {
    background: rgba(255, 80, 80, 0.15);
    color: #ff8585;
}

/* GENERATE BUTTON */

.controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-top: 14px;
}

.generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 164px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #8b35e8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(139, 53, 232, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.generate-button:hover:not(:disabled) {
    transform: none;
    background: #9b4cf0;
    box-shadow: 0 9px 22px rgba(139, 53, 232, 0.32);
}

.generate-button:active:not(:disabled) {
    transform: translateY(0);
}

.generate-button:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
}

.spin-icon {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* READY TO STUDY */

.ready-to-study-container {
    display: none;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(179, 107, 255, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ready-to-study-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.ready-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ready-check-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #8b35e8;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

.ready-label {
    display: block;
    margin-bottom: 3px;
    color: #c596ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.ready-filename {
    overflow: hidden;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ready-sub {
    margin: 3px 0 0;
    color: #aaa0b4;
    font-size: 11px;
}

.study-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.study-card {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-height: 72px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    animation: cardSlide 0.3s ease both;
}

@keyframes cardSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-icon-box {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.card-icon-box.purple {
    background: rgba(179, 107, 255, 0.13);
    color: #c18aff;
}

.card-icon-box.orange {
    background: rgba(255, 166, 92, 0.13);
    color: #ffad66;
}

.card-details {
    min-width: 0;
}

.card-details h5 {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.card-details p {
    margin: 4px 0 0;
    color: #aaa0b4;
    font-size: 10px;
    line-height: 1.4;
}

.ready-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 30px;
    margin-top: 13px;
    padding: 0 12px;
    border: 1px solid rgba(179, 107, 255, 0.3);
    border-radius: 8px;
    background: rgba(179, 107, 255, 0.1);
    color: #d3aeff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* YOUR COLLECTION */

.your-collection {
    box-sizing: border-box;
    width: 100%;
    padding: 0 24px 40px;
}

.your-collection > .div-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 18px;
}

.title-2 {
    margin: 0 0 15px;
    color: #17121f;
    font-size: 39px;
    font-weight: 700;
}

.collection-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.active-tab,
.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.active-tab {
    background: #eee3fa;
    color: #7d2bc7;
}

.tab {
    background: transparent;
    color: #77717e;
}

.tab:hover {
    background: #f5f0f8;
    color: #5e5265;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: #e3d7eb;
    color: #67576e;
    font-size: 9px;
    font-weight: 700;
}

.reviewer-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.reviewer-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
    width: 100%;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid #ebe6ef;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.reviewer-row:hover {
    border-color: #ddd0e8;
    box-shadow: 0 5px 16px rgba(46, 23, 61, 0.06);
}

.reviewer-row.deleting {
    opacity: 0;
    transform: translateX(8px);
}

.file-badge {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.file-badge span {
    display: block;
}

.file-badge.pdf {
    background: #fff0f0;
    color: #e25d5d;
}

.file-badge.ppt {
    background: #fff4e9;
    color: #e88a36;
}

.reviewer-details {
    flex: 1;
    min-width: 0;
}

.title-3 {
    overflow: hidden;
    margin: 0;
    color: #27202c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #938b98;
    font-size: 10px;
}

.bookmark-btn,
.more-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bookmark-btn {
    color: #aaa2ae;
}

.bookmark-btn:hover,
.more-btn:hover {
    background: #f5eff8;
    color: #8b35e8;
}

.open-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    background: #f3eafa;
    color: #7d2bc7;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.open-link:hover {
    background: #e8d8f5;
    color: #6b20b4;
}

.more-btn-wrapper {
    position: relative;
    flex-shrink: 0;
}

.more-btn {
    color: #958c9b;
}

.more-btn:hover {
    color: #5f5268;
}

.action-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 130px;
    padding: 5px;
    border: 1px solid #e8e1eb;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(32, 20, 40, 0.12);
}

.action-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4e4652;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f6f2f8;
}

.dropdown-item.delete {
    color: #df5c5c;
}

.dropdown-item.delete:hover {
    background: #fff1f1;
}



/* RESPONSIVE */

@media (max-width: 1100px) {
    .generator-content-wrapper {
        flex-direction: column;
    }

    .left-hero,
    .right-panel,
    .ready-to-study-container {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .workspace {
        padding: 20px 16px 32px;
    }

    .heading-row .div-2 {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .reviewer-search {
        width: 100%;
    }

    .AI-reviewer {
        padding: 20px;
        border-radius: 14px;
    }

    .hero-title {
        font-size: 25px;
    }

    .generator-content-wrapper {
        gap: 24px;
    }

    .file-card-box {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .file-card-info {
        min-width: calc(100% - 60px);
    }

    .browse-files-btn {
        margin-left: 56px;
    }

    .remove-file-btn {
        margin-left: auto;
    }

    .study-cards-grid {
        grid-template-columns: 1fr;
    }

    .reviewer-row {
        align-items: flex-start;
    }

    .open-link {
        display: none;
    }

    .metadata {
        flex-wrap: wrap;
    }
}

/* Study Tools phone */

@media (max-width: 600px) {
    .workspace {
        padding: 20px 16px 32px;
    }

    .heading-row .div-2 {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .reviewer-search {
        width: 100%;
    }

    .AI-reviewer {
        padding: 20px;
        border-radius: 14px;
    }

    .hero-title {
        font-size: 25px;
    }

    .generator-content-wrapper {
        gap: 24px;
    }

    .file-card-box {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .file-card-info {
        min-width: calc(100% - 60px);
    }

    .browse-files-btn {
        margin-left: 56px;
    }

    .remove-file-btn {
        margin-left: auto;
    }

    .study-cards-grid {
        grid-template-columns: 1fr;
    }

    .reviewer-row {
        align-items: flex-start;
    }

    .open-link {
        display: none;
    }

    .metadata {
        flex-wrap: wrap;
    }
}

/* REVIEWER PREVIEW */

.reviewer-preview {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(179, 107, 255, 0.2);
    border-radius: 14px;
    background: #ececef;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.reviewer-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 13, 30, 0.96);
}

.reviewer-preview-label {
    display: block;
    margin-bottom: 5px;
    color: #b36bff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.reviewer-preview-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.reviewer-content-count {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid rgba(179, 107, 255, 0.25);
    border-radius: 8px;
    background: rgba(179, 107, 255, 0.1);
    color: #cda0ff;
    font-size: 12px;
    font-weight: 600;
}

.reviewer-content-list {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-height: 850px;
    padding: 40px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ececef;
}

.reviewer-content-list::-webkit-scrollbar {
    width: 10px;
}

.reviewer-content-list::-webkit-scrollbar-track {
    background: #dedee2;
}

.reviewer-content-list::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aaaab0;
}

.reviewer-content-list::-webkit-scrollbar-thumb:hover {
    background: #929298;
}

/* DOCUMENT */

.reviewer-document {
    box-sizing: border-box;
    width: min(100%, 794px);
    margin: 0 auto;
    padding: 76px 76px 70px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

/* DOCUMENT HEADER */

.reviewer-document-header {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 2px solid #ece7f0;
}

.reviewer-document-title {
    margin: 0 0 12px;
    color: #161616;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.25;
}

.reviewer-document-description {
    margin: 0 0 15px;
    color: #666666;
    font-size: 14px;
    line-height: 1.65;
}

.reviewer-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #777777;
    font-size: 12px;
}

.reviewer-document-meta span {
    display: inline-flex;
    align-items: center;
}

/* DOCUMENT BODY */

.reviewer-document-body {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* CONTENT SECTION */

.reviewer-section {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 0 24px;
    border-bottom: 1px solid #e9e4ec;
    background: transparent;
    color: #222222;
}

.reviewer-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.reviewer-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 30px;
    height: 30px;
    margin-bottom: 10px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f0e5ff;
    color: #6f35a8;
    font-size: 12px;
    font-weight: 700;
}

.reviewer-section-title {
    margin: 0 0 12px;
    color: #171717;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.reviewer-section-text {
    margin: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.85;
}

/* QUESTIONS */

.reviewer-question {
    margin-top: 16px;
    padding: 19px 21px;
    border: 1px solid #e2dce8;
    border-left: 4px solid #8d4dcc;
    border-radius: 8px;
    background: #faf8fc;
    break-inside: avoid;
}

.reviewer-question-label {
    display: block;
    margin-bottom: 8px;
    color: #7a3ca8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reviewer-question-text {
    margin: 0;
    color: #222222;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}

.reviewer-question-answer {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed #d8d0df;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.reviewer-question-answer strong {
    color: #7a3ca8;
}

/* DOCUMENT FOOTER */

.reviewer-document-footer {
    margin-top: 42px;
    padding-top: 16px;
    border-top: 1px solid #e6e1e9;
    color: #888888;
    font-size: 11px;
    text-align: center;
}

/* EMPTY STATE */

.reviewer-empty {
    padding: 60px 20px;
    color: #777777;
    font-size: 14px;
    text-align: center;
}

/* MOBILE */

@media (max-width: 700px) {
    .reviewer-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviewer-content-count {
        align-self: flex-start;
    }

    .reviewer-content-list {
        max-height: 750px;
        padding: 18px 10px;
    }

    .reviewer-document {
        width: 100%;
        padding: 38px 28px 42px;
    }

    .reviewer-document-title {
        font-size: 24px;
    }

    .reviewer-section-title {
        font-size: 18px;
    }

    .reviewer-section-text,
    .reviewer-question-text {
        font-size: 14px;
    }

    .reviewer-question {
        padding: 16px 18px;
    }
}

/* PRINT */

@media print {
    body {
        background: #ffffff !important;
    }

    .reviewer-preview {
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .reviewer-preview-header {
        display: none;
    }

    .reviewer-content-list {
        max-height: none;
        padding: 0;
        overflow: visible;
        background: #ffffff;
    }

    .reviewer-document {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .reviewer-section,
    .reviewer-question,
    .reviewer-document-footer {
        break-inside: avoid;
    }
}

.reviewer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    gap: 7px;
    margin-bottom: 12px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8d8dc;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reviewer-close-btn span {
    font-size: 20px;
    font-weight: 400;
    line-height: 12px;
}

.reviewer-close-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(179, 107, 255, 0.35);
    background: rgba(179, 107, 255, 0.12);
    color: #ffffff;
}

.reviewer-close-btn:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .reviewer-close-btn {
        align-self: stretch;
        width: 100%;
    }
}

.limit-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: min(380px, calc(100vw - 32px));
    padding: 16px 17px;
    border: 1px solid rgba(179, 107, 255, 0.3);
    border-radius: 12px;
    background: #1b1224;
    color: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.limit-toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.limit-toast-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(179, 107, 255, 0.16);
    color: #c58aff;
    font-size: 16px;
    font-weight: 700;
}

.limit-toast-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.limit-toast-content strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.limit-toast-content span {
    color: #c7bdce;
    font-size: 12px;
    line-height: 1.5;
}

.limit-toast-close {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9f96a6;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.limit-toast-close:hover {
    color: #ffffff;
}

/* Gamified */

.gami-border {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    box-sizing: border-box;
    width: 100%;
    min-height: 30vh;
    padding: 35px;
    background-color: #ffffff;
    font-family: "Poppins", sans-serif;
}

.gami-header h1 {
    margin: 0;
    background: linear-gradient(90deg, #b36bff, #5865FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
}

.gami-header p {
    margin: 5px 0 0;
    color: #666666;
    font-size: 14px;
}

/* Difficulty */

.difficulty-section,
.upload-section {
    width: 100%;
}

.difficulty-section h3,
.upload-section h3 {
    margin: 0 0 12px;
    color: #261832;
    font-size: 17px;
}

.difficulty-options,
.quiz-type-options {
    display: flex;
    gap: 15px;
}

.difficulty-card,
.quiz-type-card {
    flex: 1;
    cursor: pointer;
}

.difficulty-card input,
.quiz-type-card input {
    display: none;
}

.difficulty-content,
.quiz-type-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f5f5f7;
    transition: 0.2s ease;
}

.difficulty-card:hover .difficulty-content,
.quiz-type-card:hover .quiz-type-content {
    transform: translateY(-2px);
    border-color: #7650c9;
}

.difficulty-card input:checked + .difficulty-content,
.quiz-type-card input:checked + .quiz-type-content {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f5eaff, #eef0ff);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.difficulty-title,
.quiz-type-title {
    color: #261832;
    font-size: 18px;
    font-weight: 600;
}

.difficulty-hearts {
    color: #e85d75;
    font-size: 14px;
}

/* Quiz type */

.quiz-type-section {
    width: 100%;
    margin-top: 25px;
}

.quiz-type-section h3 {
    margin: 0 0 12px;
    color: #261832;
    font-size: 17px;
}

.quiz-type-description {
    color: #777777;
    font-size: 13px;
}

/* Question count */

.question-count-section {
    width: 100%;
    margin-top: 25px;
}

.question-count-section h3 {
    margin: 0 0 12px;
    color: #261832;
    font-size: 17px;
}

#question-count {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    background: #f5f5f7;
    color: #261832;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

#question-count:hover,
#question-count:focus {
    border-color: #8b5cf6;
    background: #faf8ff;
}

#question-count option {
    background: #ffffff;
    color: #261832;
}

/* Learning material */

.upload-box {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100px;
    padding: 20px;
    border: 2px dashed #4a3b59;
    border-radius: 12px;
    background: #21152d;
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-box:hover {
    border-color: #8b5cf6;
    background: #261832;
}

.upload-empty,
.uploaded-file {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.uploaded-file {
    display: none;
}

.upload-icon,
.file-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(90deg, #b36bff, #5865FF);
    color: #ffffff;
}

.upload-icon {
    font-size: 28px;
    font-weight: 300;
}

.file-icon {
    font-size: 20px;
}

.upload-box strong {
    display: block;
    font-size: 15px;
}

.upload-box p {
    margin: 3px 0 0;
    color: #999999;
    font-size: 13px;
}

.uploaded-file-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.uploaded-file-info strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uploaded-file-info p {
    margin: 3px 0 0;
    color: #999999;
    font-size: 13px;
}

.remove-file {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.remove-file:hover {
    background: #e85d75;
}

/* Generator button */

.generator-button {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 20px 0 0;
}

#get-API {
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #b36bff, #5865FF);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#get-API:hover:not(:disabled) {
    transform: translateY(-2px);
}

#get-API:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Generated quizzes */

.generated-activity {
    box-sizing: border-box;
    width: 100%;
    margin-top: 25px;
    padding: 30px;
    border-radius: 18px;
    background: #f9f9fa;
    font-family: "Poppins", sans-serif;
}

.generated-activity h2 {
    margin: 0;
    background: linear-gradient(90deg, #b36bff, #5865FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.generated-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.generated-quiz-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    transition: 0.2s ease;
}

.generated-quiz-card:hover {
    transform: translateY(-2px);
    border-color: #5865FF;
    box-shadow: 0 5px 15px rgba(88, 101, 255, 0.15);
}

.generated-quiz-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 65px 20px 20px;
    color: #222222;
    text-decoration: none;
}

.quiz-card-info {
    min-width: 0;
}

.quiz-label {
    display: block;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #b36bff, #5865FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.quiz-card-info h3 {
    margin: 0 0 8px;
    color: #261832;
    font-size: 20px;
    word-break: break-word;
}

.quiz-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666666;
    font-size: 14px;
}

.quiz-card-arrow {
    flex-shrink: 0;
    color: #5865FF;
    font-size: 28px;
    transition: 0.2s ease;
}

.generated-quiz-card:hover .quiz-card-arrow {
    transform: translateX(5px);
}

.no-generated-quiz {
    margin-top: 20px;
    padding: 30px;
    border-radius: 14px;
    background: #ffffff;
    color: #777777;
    text-align: center;
}

.no-generated-quiz p {
    margin: 0;
}

/* Quiz Actions */

.quiz-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.quiz-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #666666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.quiz-more-button:hover {
    background: #f1eafa;
    color: #5865FF;
}

.quiz-action-menu {
    position: absolute;
    top: 40px;
    right: 0;
    display: none;
    min-width: 120px;
    padding: 6px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(40, 20, 60, 0.15);
}

.quiz-action-menu.show {
    display: block;
}

.quiz-delete-button {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #d34b61;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.quiz-delete-button:hover {
    background: #fff0f2;
}

/* Delete Modal */

.gamified-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 10, 30, 0.45);
    backdrop-filter: blur(5px);
}

.gamified-delete-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    padding: 30px;
    border-radius: 18px;
    background: #f9f9fa;
    box-shadow: 0 20px 60px rgba(30, 15, 50, 0.2);
}

.gamified-delete-label {
    display: block;
    margin-bottom: 7px;
    color: #d34b61;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gamified-delete-card h2 {
    margin: 0;
    color: #261832;
    font-size: 23px;
}

.gamified-delete-card p {
    margin: 10px 0 25px;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}

.gamified-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gamified-cancel-delete,
.gamified-confirm-delete {
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gamified-cancel-delete {
    background: #eeeeef;
    color: #555555;
}

.gamified-confirm-delete {
    background: #d34b61;
    color: #ffffff;
}

.gamified-cancel-delete:hover {
    background: #e4e4e5;
}

.gamified-confirm-delete:hover {
    background: #bd3d52;
}

/* Mobile */

@media (max-width: 600px) {
    .generated-quiz-link {
        padding-right: 55px;
    }

    .quiz-card-actions {
        top: 12px;
        right: 12px;
    }

    .quiz-details {
        gap: 10px;
    }

    .gamified-delete-actions {
        flex-direction: column;
    }

    .gamified-cancel-delete,
    .gamified-confirm-delete {
        width: 100%;
    }
}

/* Gamified phone */

@media (max-width: 600px) {
    .gami-border {
        padding: 65px 20px 25px;
    }

    .difficulty-options,
    .quiz-type-options {
        flex-direction: column;
    }

    .generated-activity {
        padding: 20px;
    }

    .generated-quiz-link {
        padding: 18px 55px 18px 16px;
    }

    .quiz-card-actions {
        top: 12px;
        right: 12px;
    }

    .quiz-details {
        gap: 10px;
    }

    .gamified-delete-actions {
        flex-direction: column;
    }

    .gamified-cancel-delete,
    .gamified-confirm-delete {
        width: 100%;
    }
}

.generation-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 9, 21, 0.65);
    backdrop-filter: blur(8px);
}

.generation-loading-card {
    width: min(380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 30px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.generation-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 20px;
    border: 4px solid #eee5f5;
    border-top-color: #b36bff;
    border-right-color: #5865ff;
    border-radius: 50%;
    animation: generationSpin 0.8s linear infinite;
}

.generation-loading-card h2 {
    margin: 0 0 8px;
    color: #222222;
    font-size: 22px;
    font-weight: 600;
}

.generation-loading-card p {
    margin: 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes generationSpin {
    to { transform: rotate(360deg); }
}

/* Progress */

.progress-page {
    width: 100%;
    min-height: 100%;
    height: auto;
    padding: 30px;
    box-sizing: border-box;
}

.progress-header {
    margin-bottom: 25px;
}

.progress-heading {
    width: 100%;
}

.progress-overline {
    display: block;
    margin-bottom: 5px;
    color: #b36bff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.progress-heading h1 {
    margin: 0 0 6px;
    color: #b36bff;
    font-size: 28px;
    font-weight: 700;
}

.progress-heading p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}


/* Progress tabs */

.progress-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 5px;
    width: fit-content;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(179, 107, 255, 0.08);
}

.progress-tab {
    border: none;
    padding: 10px 22px;
    background: transparent;
    color: #b36bff;
    border-radius: 9px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.progress-tab:hover {
    color: #b36bff;
    background: #f7f0ff;
}

.progress-tab.active {
    color: #ffffff;
    background: linear-gradient(90deg, #b36bff, #5865ff);
}


/* Progress views */

.progress-view {
    display: none;
}

.progress-view.active-progress-view {
    display: block;
}


/* Progress summary */

.progress-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.progress-summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(179, 107, 255, 0.08);
}

.progress-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #b36bff, #5865ff);
    border-radius: 12px;
}

.progress-card-icon i {
    font-size: 18px;
}

.progress-card-content {
    min-width: 0;
}

.progress-card-content span {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
}

.progress-card-content strong {
    display: block;
    color: #b36bff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.progress-card-content small {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}


/* Progress feedback */

.progress-feedback {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #faf7ff, #f5f6ff);
    border-left: 4px solid #b36bff;
    border-radius: 12px;
}

.progress-feedback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(90deg, #b36bff, #8d6bff);
    border-radius: 50%;
}

.progress-feedback-icon i {
    font-size: 15px;
}

.progress-feedback-content {
    min-width: 0;
}

.progress-feedback-content p {
    margin: 0;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    line-height: 1.5;
}

.progress-feedback-content strong {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-feedback-content span,
h3 {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-feedback-content p {
    margin: 0;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    line-height: 1.5;
}


/* Progress chart */

.progress-chart-card {
    margin-bottom: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(179, 107, 255, 0.08);
}

.progress-chart-header {
    margin-bottom: 20px;
}

.progress-chart-header span,
h2 {
    margin: 0 0 5px;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 600;
}

.progress-chart-header p {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.progress-chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}


/* Progress history */

.progress-history {
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(179, 107, 255, 0.08);
}

.progress-history-header {
    margin-bottom: 18px;
}

.progress-history-header span,
h2 {
    margin: 0 0 5px;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 600;
}

.progress-history-header p {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.progress-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    background: #f8f7fa;
    border: 1px solid #eeeaf2;
    border-radius: 10px;
    transition: 0.2s ease;
}

.progress-history-item:hover {
    border-color: #d8c9e8;
    transform: translateY(-1px);
}

.progress-history-period {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
}

.progress-history-stats {
    display: flex;
    align-items: center;
    gap: 25px;
}

.progress-history-stats {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
}

.progress-history-stats strong {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.progress-history-score {
    min-width: 70px;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}


/* Progress empty */

.progress-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(179, 107, 255, 0.08);
}

.progress-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    color: #b36bff;
    background: #f7f0ff;
    border-radius: 50%;
}

.progress-empty-icon i {
    font-size: 24px;
}

.progress-empty h3 {
    margin: 0 0 7px;
    color: #b36bff;
    font-size: 18px;
}

.progress-empty p {
    max-width: 450px;
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

/* Progress tablet */

@media (max-width: 900px) {

    .progress-page {
        padding: 25px;
    }

    .progress-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-summary-card:last-child {
        grid-column: 1 / -1;
    }

}


/* Progress phone */

@media (max-width: 600px) {

    .progress-page {
        min-height: 100vh;
        padding: 20px 15px;
    }

    .progress-header {
        margin-bottom: 20px;
    }

    .progress-overline {
        font-size: 10px;
    }

    .progress-heading h1 {
        font-size: 23px;
    }

    .progress-heading p {
        font-size: 13px;
    }

    .progress-tabs {
        width: 100%;
    }

    .progress-tab {
        flex: 1;
        padding: 9px 12px;
        font-size: 13px;
    }

    .progress-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .progress-summary-card:last-child {
        grid-column: auto;
    }

    .progress-summary-card {
        padding: 18px;
    }

    .progress-card-content strong {
        font-size: 24px;
    }

    .progress-feedback {
        align-items: flex-start;
        padding: 15px;
    }

    .progress-chart-card {
        padding: 18px 15px;
    }

    .progress-chart-container {
        height: 250px;
    }

    .progress-history {
        padding: 18px 15px;
    }

    .progress-history-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .progress-history-stats {
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .progress-history-score {
        text-align: left;
    }

}


/* Progress small phone */

@media (max-width: 380px) {

    .progress-page {
        padding: 18px 12px;
    }

    .progress-tab {
        padding: 8px 8px;
        font-size: 12px;
    }

    .progress-summary-card {
        padding: 16px;
    }

    .progress-card-icon {
        width: 42px;
        height: 42px;
    }

    .progress-card-content strong {
        font-size: 22px;
    }

    .progress-chart-container {
        height: 220px;
    }

}

/* Manual grading and report card */

.grading-panel,
.report-page {
    color: var(--text-main, var(--text-color, #1f2937));
    padding: 22px 0;
}

.grading-heading-row,
.report-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.grading-overline {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--brand-500, #7c3aed);
    margin-bottom: 7px;
}

.grading-heading-row h2,
.report-page-header h1 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.grading-heading-row p,
.report-page-header p {
    margin: 0;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
    max-width: 720px;
}

.grading-summary-grid,
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.grading-stat,
.report-stat {
    padding: 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    background: var(--bg-surface, #fff);
    min-width: 0;
}

.grading-stat span,
.report-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 8px;
}

.grading-stat strong,
.report-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.grading-week-card {
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-surface, #fff);
    border-radius: 14px;
    margin: 14px 0;
    overflow: hidden;
}

.grading-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.grading-week-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.grading-week-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.grading-status {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 99px;
    background: #fef3c7;
    color: #92400e;
}

.grading-status.complete {
    background: #dcfce7;
    color: #166534;
}

.grading-week-actions,
.grading-entry-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.grading-small-btn {
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px;
    background: var(--bg-surface, #fff);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: inherit;
}

.grading-small-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.grading-table-wrap {
    width: 100%;
    overflow: auto;
}

.grading-table,
.report-week-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.grading-table th,
.grading-table td,
.report-week-table th,
.report-week-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    text-align: left;
    font-size: 12px;
    vertical-align: middle;
}

.grading-table th,
.report-week-table th {
    background: var(--bg-muted, #f8fafc);
    font-weight: 800;
    white-space: nowrap;
}

.grading-student-name {
    font-weight: 700;
    min-width: 160px;
}

.grading-entry-title {
    display: block;
    font-weight: 800;
    margin-bottom: 3px;
}

.grading-entry-points {
    display: block;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
    margin-bottom: 7px;
}

.grading-score-input {
    width: 88px;
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 7px;
    background: var(--bg-surface, #fff);
    color: inherit;
}

.grading-entry-empty,
.grading-empty,
.report-empty-state {
    padding: 24px;
    text-align: center;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
}

.grading-table-footnote {
    padding: 12px 16px;
    color: var(--text-muted, #6b7280);
    font-size: 11px;
}

.report-room-picker {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: min(260px, 100%);
}

.report-room-picker label {
    font-size: 12px;
    font-weight: 800;
}

.report-room-picker select {
    padding: 11px 12px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 10px;
    background: var(--bg-surface, #fff);
    color: inherit;
    min-width: 220px;
}

.report-card-panel {
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-surface, #fff);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
}

.report-card-panel h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.report-card-panel > p {
    margin: 0;
    color: var(--text-muted, #6b7280);
    font-size: 12px;
    line-height: 1.6;
}

.report-final-status {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 99px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
}

.report-final-status.final {
    background: #dcfce7;
    color: #166534;
}

.report-week-row-complete {
    color: #15803d;
    font-weight: 800;
}

@media (max-width: 640px) {
    .grading-panel,
    .report-page {
        padding: 12px 0;
    }

    .grading-week-header,
    .grading-heading-row,
    .report-page-header {
        align-items: stretch;
    }

    .report-room-picker select {
        width: 100%;
        min-width: 0;
    }
}

/* Logout */

.Logout-button {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 380px;
    max-width: calc(100% - 40px);
    padding: 35px 32px 30px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(179, 107, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 70px rgba(16, 9, 21, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: logoutPopupShow 0.25s ease;
}

.Logout-button h1 {
    margin: 0 0 10px;
    color: #24172f;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.Logout-button::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b36bff, #5865ff);
    color: white;
    font-size: 28px;
    font-weight: 600;
    content: "↪";
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

.Logout-button h1::after {
    display: block;
    margin-top: 10px;
    color: #777777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    content: "You will be signed out of your account.";
}

.Logout-button button {
    width: 100%;
    margin-top: 10px;
    padding: 13px 16px;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.Logout-button button:first-of-type {
    margin-top: 24px;
    background: linear-gradient(90deg, #b36bff, #5865ff);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.Logout-button button:last-of-type {
    background: linear-gradient(90deg, #b36bff, #5865ff);
    color: #f5f4f7;
}

.Logout-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}

.Logout-button button:active {
    transform: translateY(0);
}

/* Logout background */

.blur {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: rgba(29, 14, 56, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Popup animation */

@keyframes logoutPopupShow {
    from { opacity: 0; transform: translate(-50%, -47%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* SMALL PHONE */

@media (max-width: 380px) {
    .Navigation-bar:not(.collapsed) {
        width: 240px;
    }

    .Navigation-bar .side-bar {
        width: 240px;
    }

    .Navigation-bar:not(.collapsed) .Vision li,
    .Navigation-bar:not(.collapsed) .Bottom li {
        width: 215px;
    }

    .dashboard-content h1 {
        font-size: 23px;
    }

    .Grap-Progress {
        height: 280px;
    }

    .chart-graph h1 {
        font-size: 18px;
    }

    .chart-container {
        height: 190px;
    }

    .training-performance,
    .total-sub,
    .recent-sub,
    .recent-activities,
    .recent-reviewer {
        min-height: 200px;
    }

    .gami-border {
        min-height: 280px;
        padding: 65px 18px 25px;
    }

    .gami-border h1 {
        font-size: 22px;
    }

    #get-API {
        font-size: 14px;
    }

    .Logout-button {
        width: calc(100vw - 30px);
        min-height: 260px;
        padding: 20px;
    }

    .Logout-button h1 {
        font-size: 32px;
    }
}
