/* =========================
   COLOR SYSTEM
   Change colors here only
   ========================= */

:root {
    --color-background: #F2F6F8;
    --color-surface: #FFFFFF;

    --color-sidebar: #E8F0F2;

    --color-primary: #A2D2FF;
    --color-primary-hover: #BDE0FE;
    --color-primary-soft: #F2F6F8;

    --color-cta: #FCE762;
    --color-cta-hover: #F8DD3E;

    --color-accent-dark: #003B36;
    --color-accent-light: #256F68;

    --color-text: #222222;
    --color-text-secondary: #6B6B6B;
    --color-text-muted: #999999;

    --color-border: #E1E5E8;
    --color-border-light: #F0EDF2;

    --color-success: #2ac578;
    --color-danger: #E56B6F;
    --color-danger-dark: #D65358;
    --color-warning: #E9A23B;

    --color-input-border: #f0e9e9;
    --color-disabled: #BBBBBB;

    --shadow-subtle: 0 2px 8px rgba(0, 59, 54, 0.025);
    --shadow-hover: 0 5px 16px rgba(0, 59, 54, 0.06);
}


/* =========================
   GLOBAL
   ========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.tutorial-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    pointer-events: none;
}

.tutorial-modal.hidden { display: none; }

.tutorial-panel {
    position: fixed;
    width: min(360px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid #b8d7c9;
    border-radius: 10px;
    background: var(--color-surface);
    box-shadow: 10px 12px 0 rgba(23, 59, 55, .14);
    pointer-events: auto;
    transition: top .2s ease, left .2s ease;
}

.tutorial-spotlight {
    position: fixed;
    border: 2px solid var(--color-cta);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(23, 59, 55, .38);
    pointer-events: none;
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

.tutorial-topline,
.tutorial-actions,
.tutorial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tutorial-topline {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tutorial-kicker,
.tutorial-step-label { color: var(--color-accent-light); }

.tutorial-copy { padding: 28px 0 24px; }

.tutorial-step-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tutorial-copy h2 {
    margin: 0 0 14px;
    color: var(--color-accent-dark);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.1;
}

.tutorial-copy > p:last-child {
    max-width: 440px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.tutorial-actions {
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.tutorial-skip {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.tutorial-skip:hover {
    border-color: var(--color-accent-light);
    background: var(--color-primary-soft);
    color: var(--color-accent-dark);
}

@media (max-width: 520px) {
    .tutorial-panel {
        width: min(360px, calc(100vw - 24px));
        padding: 20px;
    }
}

.blog-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.blog-shell article {
    background: #ffffff;
    border: 1px solid #e6dfd2;
    padding: 52px 64px 72px;
}

.blog-header {
    margin-bottom: 34px;
}

.blog-brand {
    color: #006b61;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.blog-kicker {
    color: #6b756f;
    font-size: 14px;
    margin: 22px 0 12px;
}

.blog-page h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    margin: 0 0 20px;
}

.blog-page p {
    color: #303a35;
    font-size: 17px;
    line-height: 1.75;
}

.blog-callout {
    margin: 30px 0;
}

.blog-page section {
    margin-top: 38px;
}

.blog-page section:first-of-type {
    margin-top: 0;
}

.blog-page h2 {
    font-size: clamp(25px, 4vw, 34px);
    margin-top: 52px;
}

.blog-page h3 {
    font-size: 21px;
    margin-top: 30px;
}

.blog-dek {
    color: #51615b;
    font-size: 21px;
    margin: 0;
}

.blog-note,
.blog-callout {
    background: #eef4ed;
    border-left: 4px solid #e4b84b;
    padding: 16px 20px;
}

.blog-note {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 28px 0 0;
}

.blog-toc {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 20px 0 6px;
}

.blog-toc,
.blog-toc a,
.blog-page a {
    color: #006b61;
}

.blog-toc,
.blog-page ul,
.blog-page ol {
    padding-left: 24px;
}

.blog-page li {
    margin: 7px 0;
}

.blog-callout h2 {
    margin-top: 0;
}

.faq {
    border-top: 1px solid #e6dfd2;
    margin-top: 54px;
    padding-top: 10px;
}

@media (max-width: 600px) {
    .blog-shell {
        width: 100%;
        padding: 0;
    }

    .blog-shell article {
        border-left: 0;
        border-right: 0;
        padding: 28px 20px 56px;
    }

    .blog-dek {
        font-size: 18px;
    }
}

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    position: sticky;
    overflow-y: auto;
    top: 0;
    width: 240px;
    height: 100vh;

    background: var(--color-sidebar);
    border-right: 1px solid var(--color-border);

    padding: 24px 16px;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;
}

.logo {
    padding: 0 12px 30px;
}

.logo h1 {
    margin: 0;

    font-size: 22px;

    color: var(--color-accent-dark);

    letter-spacing: -0.3px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    width: 100%;

    border: none;
    background: transparent;

    padding: 12px;

    border-radius: 9px;

    color: var(--color-text-secondary);

    text-align: left;
    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.nav-item:hover {
    background: var(--color-primary-soft);
    color: var(--color-accent-dark);
}

.nav-item.active {
    background: var(--color-primary);
    color: var(--color-accent-dark);
    font-weight: 600;
}

.sidebar-bottom {
    margin-top: auto;
}

.account-menu {
    position: relative;
    margin-bottom: 8px;
}

.account-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
    background: var(--color-primary-soft);
    border-color: var(--color-border);
}

.account-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-accent-dark);
    color: var(--color-surface);
    font-size: 14px;
    font-weight: 700;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-button-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.account-button-copy strong,
.account-button-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-button-copy strong {
    font-size: 13px;
}

.account-button-copy small {
    color: var(--color-text-secondary);
    font-size: 11px;
}

.account-plan-badge {
    align-self: flex-start;
    padding: 2px 6px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.account-plan-badge[data-plan="Premium"] {
    border-color: #9ac5b1;
    background: #e3f2e9;
    color: #245e50;
}

.account-plan-badge[data-plan="Pro"] {
    border-color: #d7b83f;
    background: #fff5c8;
    color: #5c4b00;
}

.account-chevron {
    color: var(--color-text-muted);
    font-size: 14px;
}

.account-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: 208px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 59, 54, 0.14);
}

.account-popover-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 4px 10px;
    border-bottom: 1px solid var(--color-border-light);
}

.account-popover-heading strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.account-popover-heading span {
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sign-out {
    width: 100%;
    margin-top: 8px;
    padding: 9px 4px;
    border: none;
    background: transparent;
    color: var(--color-danger-dark);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.account-sign-out:hover {
    color: var(--color-danger);
}


/* =========================
   MAIN CONTENT
   ========================= */

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);

    padding: 24px 32px;
}

.topbar h2 {
    margin: 0 0 5px;

    color: var(--color-accent-dark);

    letter-spacing: -0.3px;
}

.topbar p {
    margin: 0;
    color: var(--color-text-secondary);
}


/* =========================
   VIEWS
   ========================= */

.view {
    display: none;
}

.view.active-view {
    display: block;
}

.view,
.dashboard {
    padding: 32px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h3 {
    margin: 0 0 6px;

    font-size: 24px;

    color: var(--color-accent-dark);

    letter-spacing: -0.4px;
}

.page-header p {
    margin: 0;
    color: var(--color-text-secondary);
}


/* =========================
   CONTENT HEADER
   ========================= */

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 24px;
}

.content-header h3 {
    margin: 0 0 6px;

    font-size: 24px;

    color: var(--color-accent-dark);

    letter-spacing: -0.4px;
}

.content-header p {
    margin: 0;
    color: var(--color-text-secondary);
}


/* =========================
   CARDS
   ========================= */

.welcome-card,
.placeholder-card {
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 24px;

    box-shadow: var(--shadow-subtle);
}

.welcome-card h3 {
    margin-top: 0;
    color: var(--color-accent-dark);
}

.placeholder-card {
    color: var(--color-text-secondary);
}

.resume-generator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
    gap: 24px;
    align-items: start;
}

.resume-generator-card,
.resume-result-card {
    color: var(--color-text-secondary);
}

.resume-generator-heading,
.resume-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.resume-generator-heading h4,
.resume-result-heading h4 {
    margin: 0;
    color: var(--color-accent-dark);
    font-size: 21px;
}

.resume-generator-kicker {
    margin: 0 0 7px;
    color: var(--color-accent-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.resume-credit-cost {
    flex-shrink: 0;
    padding: 5px 8px;
    border: 1px solid #a8d5bd;
    border-radius: 5px;
    background: #e5f3ea;
    color: #245e50;
    font-size: 11px;
    font-weight: 700;
}

.resume-generator-intro {
    max-width: 680px;
    margin: 14px 0 24px;
    line-height: 1.55;
}

.resume-education-form {
    display: grid;
    gap: 16px;
}

.resume-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.resume-form-grid .form-group,
.resume-education-form .form-group {
    margin: 0;
}

.resume-education-form .form-group label {
    color: var(--color-accent-dark);
}

.resume-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.resume-education-status,
.resume-copy-status {
    min-height: 18px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.resume-result-card {
    position: sticky;
    top: 24px;
}

.resume-education-result {
    width: 100%;
    min-height: 260px;
    margin-top: 20px;
    resize: vertical;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-primary-soft);
    color: var(--color-text);
    font: 14px/1.6 Georgia, "Times New Roman", serif;
}

@media (max-width: 900px) {
    .resume-generator-layout {
        grid-template-columns: 1fr;
    }

    .resume-result-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .resume-form-grid {
        grid-template-columns: 1fr;
    }
}

.settings-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-account-row h4 {
    margin: 0 0 5px;
    color: var(--color-accent-dark);
    font-size: 16px;
}

.settings-account-row p {
    margin: 0;
}

.account-data-section {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.account-data-section h4 {
    margin: 0;
    color: var(--color-accent-dark);
    font-size: 16px;
}

.account-data-section p {
    margin: 0;
    color: var(--color-text-secondary);
}

.account-data-section .secondary-button {
    justify-self: flex-start;
}

.account-data-status {
    min-height: 20px;
    font: 13px/1.4 Arial, sans-serif;
}

.premium-settings-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.premium-settings-section[hidden] {
    display: none;
}

.premium-settings-section h4 {
    margin: 0 0 5px;
    color: var(--color-accent-dark);
    font-size: 16px;
}

.premium-settings-section p {
    margin: 0;
    color: var(--color-text-secondary);
}

.premium-settings-section button {
    flex-shrink: 0;
}

.danger-zone {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.danger-zone h4 {
    margin: 0 0 8px;
    color: #8d1d1d;
    font-size: 16px;
}

.danger-zone p {
    margin: 0 0 14px;
    color: var(--color-text-secondary);
}

.delete-account-form {
    display: grid;
    gap: 12px;
}

.delete-account-form label {
    font-size: 14px;
    color: var(--color-accent-dark);
}

.delete-account-form input {
    width: 100%;
    border: 1px solid var(--color-input-border);
    border-radius: 9px;
    padding: 10px 12px;
    font: 15px Arial, sans-serif;
    background: var(--color-surface);
    color: var(--color-accent-dark);
}

.danger-button {
    justify-self: flex-start;
    border: 1px solid #9c2b2b;
    border-radius: 9px;
    padding: 10px 16px;
    background: #f8dada;
    color: #5f1111;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.danger-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-account-status {
    min-height: 20px;
    margin: 10px 0 0;
    font: 13px/1.4 Arial, sans-serif;
    color: var(--color-text-secondary);
}

.delete-account-status.error {
    color: #8d1d1d;
}

.delete-account-status.success {
    color: #1d5c3c;
}

@media (max-width: 600px) {
    .settings-account-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-account-row .secondary-button {
        width: 100%;
    }

    .danger-button {
        width: 100%;
        justify-self: stretch;
    }
}


/* =========================
   BUTTONS
   ========================= */

.primary-button {
    border: none;
    border-radius: 9px;

    padding: 10px 16px;

    background: var(--color-cta);
    color: var(--color-accent-dark);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.primary-button:hover {
    background: var(--color-cta-hover);

    box-shadow:
        0 3px 10px rgba(252, 231, 98, 0.3);
}

.primary-button:active {
    transform: translateY(1px);
}

.secondary-button {
    border: 1px solid var(--color-input-border);
    border-radius: 9px;

    padding: 10px 16px;

    background: var(--color-surface);
    color: #333333;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.secondary-button:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-accent-dark);
}


/* =========================
   TASK LIST
   ========================= */

.task-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* =========================
   TASK SECTIONS
   ========================= */

.task-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-section-header {
    display: flex;
    align-items: center;

    gap: 8px;
    margin-bottom: 2px;
}

.task-section-header h3 {
    margin: 0;

    font-size: 14px;
    font-weight: 600;

    color: #555555;
}

.task-section-header span {
    min-width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary-soft);
    color: var(--color-accent-dark);

    font-size: 12px;
}

.completed-section {
    margin-top: 8px;
}


/* =========================
   TASK CARDS
   ========================= */

.task-card {
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 18px 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    box-shadow: var(--shadow-subtle);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.task-card:hover {
    border-color: #C9E6FA;
    box-shadow: var(--shadow-hover);
}

.task-main {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    min-width: 0;
}

.task-checkbox {
    width: 20px;
    height: 20px;

    border: 2px solid #B7B7B7;
    border-radius: 50%;

    background: var(--color-surface);

    cursor: pointer;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    font-size: 12px;
    line-height: 1;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.task-checkbox:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.task-information {
    min-width: 0;
}

.task-information h3 {
    margin: 0 0 6px;

    font-size: 16px;

    color: var(--color-text);

    word-break: break-word;
}

.task-information p {
    margin: 0 0 10px;

    color: var(--color-text-secondary);

    white-space: pre-wrap;
    word-break: break-word;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    font-size: 13px;

    color: var(--color-text-secondary);
}

.task-meta span {
    padding: 4px 8px;

    background: #F1F7FB;

    border-radius: 6px;
}

.priority-high {
    font-weight: 600;
}

.task-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

.edit-task,
.delete-task {
    border: none;
    background: transparent;

    cursor: pointer;
}

.edit-task {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.edit-task:hover {
    color: var(--color-accent-dark);
}

.delete-task {
    font-size: 20px;
    color: var(--color-text-muted);
}

.delete-task:hover {
    color: var(--color-danger);
}


/* =========================
   COMPLETED TASKS
   ========================= */

.task-card.completed {
    opacity: 0.6;
}

.task-card.completed .task-information h3 {
    text-decoration: line-through;
}

.task-card.completed .task-checkbox {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-surface);
}


/* =========================
   EMPTY STATE
   ========================= */

.empty-state {
    background: var(--color-surface);

    border: 1px dashed #CFCAD5;
    border-radius: 12px;

    padding: 40px 20px;

    text-align: center;

    color: var(--color-text-secondary);
}

.empty-state h3 {
    margin: 0 0 6px;
    color: var(--color-accent-dark);
}

.empty-state p {
    margin: 0;
}


/* =========================
   MODAL
   ========================= */

.modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 59, 54, 0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 14px;

    padding: 24px;

    box-shadow:
        0 20px 50px rgba(0, 59, 54, 0.15);
}

#class-modal .modal-content {
    min-height: 620px;
}

#class-modal .modal-header {
    margin-bottom: 30px;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 59, 54, 0.34);
    backdrop-filter: blur(4px);
}

.notice-modal.hidden {
    display: none;
}

.notice-modal-panel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 24px 70px rgba(0, 59, 54, 0.24);
    animation: notice-modal-enter 0.18s ease-out;
}

.notice-modal-error .notice-modal-panel {
    border-color: #efb8b8;
    box-shadow: 0 24px 70px rgba(141, 29, 29, 0.18);
}

.notice-modal-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-cta);
    color: var(--color-accent-dark);
    font-size: 22px;
    font-weight: 800;
}

.notice-modal-error .notice-modal-icon {
    background: #f8dada;
    color: #8d1d1d;
}

.notice-modal-copy {
    padding-right: 22px;
}

.notice-modal-kicker {
    margin: 0 0 5px;
    color: var(--color-accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notice-modal-copy h2 {
    margin: 0 0 8px;
    color: var(--color-accent-dark);
    font-size: 22px;
}

.notice-modal-copy > p:last-child {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.notice-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #c4cccf;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.notice-modal-close:hover {
    color: #8f9a9d;
}

.notice-modal-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
    min-width: 126px;
    padding: 12px 20px;
    border: 1px solid var(--color-accent-dark);
    border-radius: 9px;
    background: var(--color-cta);
    color: var(--color-accent-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(0, 59, 54, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.notice-modal-action:hover {
    background: var(--color-cta-hover);
    box-shadow: 0 3px 0 rgba(0, 59, 54, 0.16);
    transform: translateY(2px);
}

.notice-modal-action:focus-visible,
.notice-modal-close:focus-visible {
    outline: 3px solid rgba(162, 210, 255, 0.8);
    outline-offset: 3px;
}

.notice-modal-secondary {
    grid-column: 2;
    justify-self: start;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-modal-secondary:hover {
    color: var(--color-accent-dark);
}

.notice-modal-secondary:focus-visible {
    outline: 3px solid rgba(162, 210, 255, 0.8);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .notice-modal-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px;
    }

    .notice-modal-copy {
        padding-right: 16px;
    }

    .notice-modal-action {
        grid-column: 1;
        width: 100%;
    }

    .notice-modal-secondary {
        grid-column: 1;
        justify-self: center;
    }
}

@keyframes notice-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 32px;
}

.modal-header h3 {
    margin: 0 0 6px;

    font-size: 22px;

    color: var(--color-accent-dark);
}

.modal-header p {
    margin: 0;
    color: var(--color-text-secondary);
}

.close-button {
    border: none;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    color: var(--color-text-secondary);

    cursor: pointer;
}

.close-button:hover {
    color: var(--color-accent-dark);
}

.close-button:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid #246f9d;
    outline-offset: 3px;
}


/* =========================
   FORM
   ========================= */

#task-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#class-form,
#page-form,
#link-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;

    color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--color-input-border);
    border-radius: 9px;

    padding: 10px 12px;

    font: inherit;

    color: var(--color-text);
    background: var(--color-surface);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(162, 210, 255, 0.3);
}

[aria-invalid="true"] {
    border-color: var(--color-danger-dark) !important;
    box-shadow: 0 0 0 3px rgba(214, 83, 88, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    :focus-visible {
        outline: 3px solid Highlight;
    }
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* =========================
   CLASS COLOR PICKER
   ========================= */

.class-color-picker {
    display: grid;

    grid-template-columns: repeat(10, 32px);

    gap: 10px;

    padding-top: 4px;
}

.class-color-option {
    width: 32px;
    height: 32px;

    border: 2px solid transparent;
    border-radius: 50%;

    cursor: pointer;

    position: relative;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.class-color-option:hover {
    transform: scale(1.1);
}

.class-color-option.selected {
    border-color: var(--color-accent-dark);

    box-shadow:
        0 0 0 3px var(--color-surface),
        0 0 0 5px var(--color-accent-dark);
}

.class-color-option.selected::after {
    content: "✓";

    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--color-accent-dark);

    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 500px) {

    .class-color-picker {
        grid-template-columns: repeat(5, 32px);
    }

}

/* =========================
   MODAL ACTIONS
   ========================= */

.modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;
    margin-top: 6px;
}


/* =========================
   CLASSES
   ========================= */

.class-list {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));

    gap: 16px;
}

.class-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 180px;

    padding: 20px 20px 64px 48px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    box-sizing: border-box;
}

.class-card:hover {
    border-color: #C9E6FA;
    box-shadow: var(--shadow-hover);

    transform: translateY(-1px);
}

.class-code {
    margin: 0 0 12px;

    font-size: 13px;

    color: var(--color-accent-dark);

    font-weight: 600;
}

.class-instructor {
    margin: 0 0 12px;

    font-size: 14px;

    color: #555555;
}

.class-description {
    margin: 0;
    padding: 0;

    font-size: 14px;

    color: var(--color-text-secondary);

    white-space: pre-wrap;
    word-break: break-word;

    text-align: left;

    width: 100%;
}

.class-actions {
    position: absolute;

    right: 20px;
    bottom: 16px;

    display: flex;

    align-items: center;

    gap: 8px;
}

.class-actions button {
    flex-shrink: 0;
}

.edit-class,
.delete-class {
    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 13px;
}

.edit-class {
    color: var(--color-text-secondary);
}

.delete-class {
    color: var(--color-text-muted);
}

.edit-class:hover {
    color: var(--color-accent-dark);
}

.delete-class:hover {
    color: var(--color-danger);
}

.class-card h3,
.class-card .class-code,
.class-card .class-instructor,
.class-card .class-description {
    margin-left: 0;
}

.class-color-dot {
    position: absolute;

    left: 16px;
    top: 20px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background-color: var(--class-color);

    flex-shrink: 0;
}

/* =========================
   CLASS WORKSPACE
   ========================= */

.back-button {
    border: none;
    background: transparent;

    padding: 0;
    margin-bottom: 12px;

    color: var(--color-text-secondary);

    font-size: 13px;

    cursor: pointer;
}

.back-button:hover {
    color: var(--color-accent-dark);
}

.workspace-placeholder {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.workspace-section {
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 20px;

    min-height: 140px;

    box-shadow: var(--shadow-subtle);
}

.workspace-section h4 {
    margin: 0 0 8px;

    font-size: 16px;

    color: var(--color-accent-dark);
}

.workspace-section p {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: 14px;
}

.workspace-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}

.workspace-section-header h4 {
    margin: 0;
}

.workspace-empty {
    color: var(--color-text-secondary);
    font-size: 14px;
}


/* =========================
   CALENDAR
   ========================= */

.calendar {
    width: 100%;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow-subtle);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px;

    border-bottom: 1px solid var(--color-border);
}

.calendar-header h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 600;

    color: var(--color-accent-dark);
}

.calendar-nav-button {
    width: 34px;
    height: 34px;

    border: 1px solid var(--color-input-border);
    border-radius: 8px;

    background: var(--color-surface);
    color: #555555;

    font-size: 16px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-button:hover {
    background: var(--color-primary-soft);

    border-color: var(--color-primary);

    color: var(--color-accent-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    border-bottom: 1px solid var(--color-border);
}

.calendar-weekdays div {
    padding: 10px;

    text-align: center;

    font-size: 12px;
    font-weight: 600;

    color: var(--color-text-secondary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 110px;

    padding: 10px;

    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);

    min-width: 0;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #FCFBFE;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 600;

    color: #555555;

    margin-bottom: 8px;
}

.calendar-day.other-month {
    background: #FAF8FC;
}

.calendar-day.other-month .calendar-day-number {
    color: var(--color-disabled);
}

.calendar-day.today {
    background: var(--color-primary-soft);
}

.calendar-day.today .calendar-day-number {
    color: var(--color-accent-dark);
}

.calendar-task {
    display: block;

    width: 100%;

    margin-top: 4px;

    padding: 5px 6px;

    border: none;
    border-radius: 5px;

    background: var(--color-primary);
    color: var(--color-accent-dark);

    font-size: 11px;
    line-height: 1.3;

    text-align: left;

    cursor: pointer;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-task:hover {
    background: var(--color-primary-hover);
}

.calendar-task.completed {
    opacity: 0.55;
    text-decoration: line-through;
}


/* =========================
   PAGES
   ========================= */

.page-list {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));

    gap: 16px;
}

.page-card {
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 20px;

    min-width: 0;

    box-shadow: var(--shadow-subtle);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.page-card:hover {
    border-color: #C9E6FA;
    box-shadow: var(--shadow-hover);

    transform: translateY(-1px);
}

.page-card h3 {
    margin: 0 0 8px;

    font-size: 18px;

    color: var(--color-accent-dark);

    word-break: break-word;
}

.page-preview {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: 14px;
    line-height: 1.5;

    white-space: pre-wrap;
    word-break: break-word;

    display: -webkit-box;

    -webkit-line-clamp: 4;
    line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.page-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 18px;
}

.edit-page,
.delete-page {
    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 13px;
}

.edit-page {
    color: var(--color-text-secondary);
}

.delete-page {
    color: var(--color-text-muted);
}

.edit-page:hover {
    color: var(--color-accent-dark);
}

.delete-page:hover {
    color: var(--color-danger);
}


/* =========================
   PAGE WORKSPACE / EDITOR
   ========================= */

.page-editor {
    width: 100%;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 24px;

    box-sizing: border-box;

    box-shadow: var(--shadow-subtle);
}

.page-editor-title {
    width: 100%;

    border: none;
    outline: none;

    padding: 0;
    margin: 0 0 20px;

    font-size: 28px;
    font-weight: 600;

    color: var(--color-accent-dark);

    box-sizing: border-box;
}

.page-editor-title::placeholder {
    color: #AAAAAA;
}

.page-editor-content {
    width: 100%;
    min-height: 500px;

    border: none;
    outline: none;

    resize: vertical;

    padding: 0;
    margin: 0;

    font-family: inherit;

    font-size: 16px;
    line-height: 1.7;

    color: #333333;

    box-sizing: border-box;
}

.page-editor-content::placeholder {
    color: #AAAAAA;
}

.page-editor-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid var(--color-border);
}


/* =========================
   USEFUL LINKS
   ========================= */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 12px 14px;

    border: 1px solid var(--color-border);
    border-radius: 9px;

    background: var(--color-surface);

    min-width: 0;

    box-sizing: border-box;
}

.class-link:hover {
    border-color: #C9E6FA;
    background: #FCFEFF;
}

.class-link-name {
    min-width: 0;

    color: var(--color-accent-dark);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.class-link-name:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.link-actions {
    display: flex;

    flex-shrink: 0;

    gap: 8px;
}

.edit-link,
.delete-link {
    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 13px;
}

.edit-link {
    color: var(--color-text-secondary);
}

.delete-link {
    color: var(--color-text-muted);
}

.edit-link:hover {
    color: var(--color-accent-dark);
}

.delete-link:hover {
    color: var(--color-danger);
}


/* =========================
   DASHBOARD
   ========================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}

.dashboard-card {
    min-width: 0;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    padding: 20px;

    box-sizing: border-box;

    box-shadow: var(--shadow-subtle);
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 20px;
}

.dashboard-card-header h3 {
    margin: 0 0 5px;

    font-size: 18px;
    font-weight: 600;

    color: var(--color-accent-dark);
}

.dashboard-card-header p {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: 14px;
}


/* =========================
   DASHBOARD STATS
   ========================= */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.dashboard-stat {
    min-width: 0;

    padding: 16px;

    background: var(--color-primary-soft);

    border-radius: 10px;

    text-align: center;
}

.dashboard-stat-number {
    display: block;

    font-size: 28px;
    font-weight: 700;

    color: var(--color-accent-dark);

    line-height: 1.2;
}

.dashboard-stat-label {
    display: block;

    margin-top: 5px;

    color: #55716E;

    font-size: 13px;
}


/* =========================
   DASHBOARD LISTS
   ========================= */

.dashboard-task,
.dashboard-page {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--color-border-light);

    min-width: 0;
}

.dashboard-task:last-child,
.dashboard-page:last-child {
    border-bottom: none;
}

.dashboard-task-info,
.dashboard-page-info {
    min-width: 0;
}

.dashboard-task-title,
.dashboard-page-title {
    display: block;

    margin: 0;

    color: var(--color-text);

    font-size: 14px;
    font-weight: 600;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-task-date,
.dashboard-page-preview {
    display: block;

    margin-top: 4px;

    color: var(--color-text-secondary);

    font-size: 13px;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================
   DASHBOARD BUTTONS
   ========================= */

.dashboard-task-button,
.dashboard-page-button {
    flex-shrink: 0;

    border: none;
    background: transparent;

    color: var(--color-accent-dark);

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
}

.dashboard-task-button:hover,
.dashboard-page-button:hover {
    color: var(--color-accent-light);
}


/* =========================
   DASHBOARD EMPTY STATES
   ========================= */

.dashboard-empty {
    padding: 20px 0;

    color: var(--color-text-muted);

    font-size: 14px;

    text-align: center;
}


/* =========================
   OVERDUE
   ========================= */

.dashboard-task-overdue {
    border-left: 3px solid var(--color-danger);

    padding-left: 12px;
}

.dashboard-task-overdue .dashboard-task-date {
    color: var(--color-danger-dark);

    font-weight: 600;
}


/* =========================
   MOBILE MENU
   ========================= */

.menu-button {
    display: none;

    border: none;
    background: transparent;

    font-size: 24px;

    color: var(--color-accent-dark);

    cursor: pointer;

    padding: 0;
    margin-bottom: 12px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 800px) {

    .workspace-placeholder {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {
    .menu-button {
        display: block;
    }

    .topbar {
        padding: 20px;
    }

    .view {
        padding: 20px;
    }

    .calendar-header {
        padding: 12px 14px;
    }

    .calendar-weekdays div {
        padding: 8px 2px;

        font-size: 10px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 6px;
    }

    .calendar-day-number {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .calendar-task {
        padding: 4px;

        font-size: 9px;
    }
}


@media (max-width: 600px) {

    .content-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .class-list {
        grid-template-columns: 1fr;
    }

    .page-list {
        grid-template-columns: 1fr;
    }

    .class-link {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-card-header {
        flex-direction: column;
    }

    .dashboard-card-header .primary-button {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .page-editor {
        padding: 18px;
    }

    .page-editor-title {
        font-size: 24px;
    }

    .page-editor-content {
        min-height: 400px;
        font-size: 15px;
    }
}


@media (max-width: 500px) {

    .calendar-header h3 {
        font-size: 15px;
    }

    .calendar-nav-button {
        width: 30px;
        height: 30px;
    }

    .calendar-day {
        min-height: 65px;
        padding: 4px;
    }

    .calendar-task {
        font-size: 8px;
        padding: 3px;
    }
}

/* ============================================================
   CLASS COLORS
   ============================================================ */

.class-card {
    position: relative;
}

.class-color-dot {
    position: absolute;

    bottom: 16px;
    right: 16px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    border: 2px solid #ffffff;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.15);
}

/* =========================
   MOBILE SIDEBAR
   ========================= */

@media (max-width: 699px) {

    .sidebar {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: 240px !important;
        height: 100vh !important;

        z-index: 9999 !important;

        transform: translateX(-100%) !important;

        transition: transform 0.2s ease !important;

        overflow-y: auto;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

}

.sidebar-close-button {
    display: none;
}

@media (max-width: 699px) {

    .sidebar-close-button {
        display: flex;

        position: absolute;

        top: 14px;
        right: 14px;

        width: 36px;
        height: 36px;

        align-items: center;
        justify-content: center;

        border: none;
        border-radius: 8px;

        background: transparent;

        color: var(--color-text-secondary);

        font-size: 28px;
        line-height: 1;

        cursor: pointer;
    }

    .sidebar-close-button:hover {
        background: var(--color-primary-soft);
        color: var(--color-accent-dark);
    }

}

/* =========================
   MOBILE WARNING
   ========================= */

.mobile-warning-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.45);
}

.mobile-warning-overlay[hidden] {
    display: none;
}

.mobile-warning {
    width: min(420px, 100%);

    padding: 28px;

    background: var(--color-sidebar);

    border: 1px solid var(--color-border);

    border-radius: 14px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2);

    text-align: center;
}

.mobile-warning h2 {
    margin: 0 0 12px;

    color: var(--color-text);
}

.mobile-warning p {
    margin: 0 0 24px;

    color: var(--color-text-secondary);

    line-height: 1.6;
}

.mobile-warning button {
    width: 100%;

    padding: 11px 16px;

    border: none;
    border-radius: 8px;

    background: var(--color-primary);

    color: var(--color-accent-dark);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.mobile-warning button:hover {
    opacity: 0.9;
}

#logo {
    width: 118%;
    height: auto;
    margin-left: -8%;
}

.syllabus-import-box {
    margin-bottom: 24px;
    padding: 24px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.syllabus-import-content h3 {
    margin: 0 0 6px;
    color: var(--color-text);
}

.syllabus-import-content > p {
    margin: 0 0 20px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.syllabus-credit-status {
    display: block;
    margin: -10px 0 16px;
    color: var(--color-accent-light);
    font-size: 12px;
    font-weight: 600;
}

.syllabus-drop-zone {
    min-height: 190px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 24px;

    border: 2px dashed var(--color-border);
    border-radius: 10px;

    text-align: center;

    background: var(--color-background);

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.syllabus-drop-zone.drag-over {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.syllabus-upload-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4px;

    border-radius: 50%;

    background: var(--color-primary-soft);
    color: var(--color-accent-dark);

    font-size: 24px;
    font-weight: 600;
}

.syllabus-drop-zone strong {
    color: var(--color-text);
}

.syllabus-drop-zone span {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.syllabus-drop-zone button,
.syllabus-drop-zone .file-picker-button {
    margin-top: 4px;

    padding: 9px 16px;

    border: none;
    border-radius: 8px;

    background: var(--color-primary);
    color: var(--color-accent-dark);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.syllabus-drop-zone button:hover,
.syllabus-drop-zone .file-picker-button:hover {
    opacity: 0.9;
}

.syllabus-drop-zone small {
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.syllabus-remove-button {
    margin-top: 2px !important;

    background: transparent !important;
    color: var(--color-text-secondary) !important;

    font-weight: 500 !important;
}

.syllabus-remove-button:hover {
    background: var(--color-primary-soft) !important;
}

/* ================================
   Syllabus Review
================================ */

#syllabus-review-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

#syllabus-review-modal.hidden {
    display: none;
}

#syllabus-review-modal .syllabus-review-modal {
    width: min(760px, 100%);
    max-height: min(780px, 90vh);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */

#syllabus-review-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 24px 24px 18px;

    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

#syllabus-review-modal .modal-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--color-text);
}

#syllabus-review-modal .modal-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Close button */

#syllabus-review-modal .modal-close {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: var(--color-text-muted);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

#syllabus-review-modal .modal-close:hover {
    background: var(--color-background);
    color: var(--color-text);
}

/* Task list */

#syllabus-review-modal .syllabus-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 18px 24px;

    overflow-y: auto;
    flex: 1;

    background: var(--color-background);
}

#syllabus-review-modal .syllabus-review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;

    transition:
        opacity 0.15s ease,
        border-color 0.15s ease;
}

#syllabus-review-modal .syllabus-review-item:hover {
    border-color: var(--color-primary);
}

#syllabus-review-modal .syllabus-review-checkbox {
    width: 18px;
    height: 18px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: var(--color-primary);

    cursor: pointer;
}

#syllabus-review-modal .syllabus-review-content {
    min-width: 0;
    flex: 1;
}

#syllabus-review-modal .syllabus-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

#syllabus-review-modal .syllabus-review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

#syllabus-review-modal .syllabus-review-date {
    flex-shrink: 0;

    font-size: 13px;
    font-weight: 600;

    color: var(--color-primary);
}

#syllabus-review-modal .syllabus-review-description {
    margin-top: 5px;

    font-size: 13px;
    line-height: 1.45;

    color: var(--color-text-muted);
}

#syllabus-review-modal .syllabus-review-item.unchecked {
    opacity: 0.45;
}

/* Footer */

#syllabus-review-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 16px 24px;

    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

/* Buttons */

#syllabus-review-modal .modal-footer button {
    height: 40px;

    padding: 0 18px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

#syllabus-review-modal #cancel-syllabus-review {
    background: var(--color-surface);
    color: var(--color-text);

    border: 1px solid var(--color-border);
}

#syllabus-review-modal #cancel-syllabus-review:hover {
    background: var(--color-background);
}

#syllabus-review-modal #add-syllabus-tasks {
    background: var(--color-primary);
    color: white;

    border: 1px solid var(--color-primary);
}

#syllabus-review-modal #add-syllabus-tasks:hover {
    opacity: 0.9;
}

#syllabus-review-modal #add-syllabus-tasks:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Mobile */

@media (max-width: 699px) {
    #syllabus-review-modal {
        padding: 10px;
    }

    #syllabus-review-modal .syllabus-review-modal {
        max-height: 94vh;
        border-radius: 14px;
    }

    #syllabus-review-modal .modal-header {
        padding: 18px;
    }

    #syllabus-review-modal .syllabus-review-list {
        padding: 12px;
    }

    #syllabus-review-modal .modal-footer {
        padding: 12px;
    }

    #syllabus-review-modal .syllabus-review-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

.view:not(#class-workspace-view):not(#page-workspace-view) > .content-header > div:first-child {
    display: none;
}

.view:not(#class-workspace-view):not(#page-workspace-view) > .page-header {
    display: none;
}

.workspace-section-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.study-note-status {
    min-height: 18px;
    margin: 14px 0 0;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.study-note-import-box {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.study-note-drop-zone {
    margin-top: 16px;
}

.study-note-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.study-note-actions .study-note-status {
    flex: 1;
    margin: 0;
}

@media (max-width: 600px) {
    .study-note-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.study-note-file-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.study-note-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 12px;
}

.study-note-file-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-note-file-item button {
    flex-shrink: 0;
    padding: 3px 7px;
    border: 0;
    background: transparent;
    color: var(--color-danger-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}