:root {
    --school-deep: #1a365d;
    --school-mid: #2b6cb0;
    --school-clay: #b07d62;
    --school-canvas: #f8f5f2;
    --school-page: #f4f1ea;
    --school-text: #2d3436;
}

html,
body {
    background-color: var(--school-page);
    color: var(--school-text);
    font-family: "Inter", sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: "Playfair Display", serif;
}

main {
    flex: 1;
}

.navbar-classeo {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
}

.navbar-brand {
    color: var(--school-deep);
    font-size: 1.6rem;
    font-weight: 700;
}

.navbar-brand span {
    color: var(--school-clay);
}

.nav-link-classeo {
    color: var(--school-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-link-classeo:hover {
    color: var(--school-mid);
}

.nav-count-badge {
    align-items: center;
    background: var(--school-clay);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    margin-left: 0.35rem;
    min-width: 1.35rem;
    padding: 0.1rem 0.4rem;
}

.nav-btn-highlight,
.btn-school-primary {
    background-color: var(--school-deep);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.35rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-btn-highlight:hover,
.btn-school-primary:hover {
    background-color: var(--school-mid);
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.btn-school-accent {
    background-color: var(--school-clay);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.45rem;
}

.btn-school-accent:hover {
    background-color: #9e6d55;
    color: #fff;
}

.home-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.72) 42%, rgba(26, 54, 93, 0.1) 78%),
        url("../images/home-hero--d1xPTM.jpg") center right / cover no-repeat;
    color: #fff;
    display: flex;
    min-height: calc(100vh - 180px);
    padding: 4rem 0;
}

.home-kicker {
    color: #e6c8b6;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    max-width: 820px;
}

.home-copy {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.03rem;
    max-width: 640px;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.home-strip {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.16);
    margin-top: -48px;
    padding: 1.4rem;
    position: relative;
}

.home-strip-item {
    border-left: 4px solid var(--school-clay);
    padding-left: 1.1rem;
}

.home-strip-label {
    color: var(--school-deep);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.home-strip-text {
    color: #5f6873;
    font-size: 0.95rem;
    margin: 0;
}

.premium-card {
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 180px);
    padding: 56px 16px;
    place-items: center;
}

.auth-card {
    background: #fff;
    border: 1px solid rgba(26, 54, 93, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(26, 54, 93, 0.1);
    padding: 32px;
    width: min(100%, 440px);
}

.auth-card h1 {
    color: var(--school-deep);
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.workspace-page {
    padding: 48px 0 72px;
}

.workspace-header {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.workspace-title {
    color: var(--school-deep);
    font-size: 2.4rem;
    margin: 0;
}

.workspace-subtitle {
    color: #65717d;
    margin: 8px 0 0;
    max-width: 660px;
}

.workspace-card {
    background: #fff;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(26, 54, 93, 0.08);
}

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

.dashboard-card {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 24px;
}

.dashboard-card p {
    color: #65717d;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.dashboard-card strong {
    color: var(--school-deep);
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.work-list-item {
    align-items: center;
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px 24px;
}

.work-list-item:last-child {
    border-bottom: 0;
}

.work-title {
    color: var(--school-deep);
    font-weight: 800;
    margin-bottom: 4px;
}

.work-meta {
    color: #65717d;
    font-size: 0.92rem;
}

.work-progress {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    max-width: 460px;
}

.work-progress-heading,
.work-progress-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.work-progress-heading {
    color: var(--school-deep);
    font-size: 0.88rem;
    font-weight: 800;
}

.work-progress-heading strong {
    color: var(--school-mid);
}

.work-progress-meta {
    color: #65717d;
    font-size: 0.8rem;
    font-weight: 700;
}

.work-progress-bar {
    background: rgba(43, 108, 176, 0.12);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.work-progress-bar span {
    background: linear-gradient(90deg, var(--school-mid), var(--school-gold));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.evaluation-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.evaluation-box {
    background: rgba(43, 108, 176, 0.06);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
}

.evaluation-box p {
    color: #334155;
    margin: 8px 0 0;
}

.evaluation-heading {
    align-items: center;
    color: var(--school-deep);
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.evaluation-heading span {
    background: #fff;
    border-radius: 999px;
    color: var(--school-mid);
    font-weight: 800;
    padding: 0.25rem 0.65rem;
}

.teacher-depot-toolbar {
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    display: grid;
    gap: 18px;
    padding: 20px 24px;
}

.depot-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.depot-stat-grid-compact {
    grid-template-columns: repeat(3, 1fr);
}

.depot-stat {
    background: rgba(43, 108, 176, 0.06);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
}

.depot-stat span {
    color: #65717d;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
}

.depot-stat strong {
    color: var(--school-deep);
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: 4px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.correction-filter-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
}

.correction-filter-form label {
    color: #65717d;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.correction-filter-actions {
    display: flex;
    gap: 8px;
}

.filter-pill {
    border: 1px solid rgba(43, 108, 176, 0.22);
    border-radius: 999px;
    color: var(--school-mid);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--school-mid);
    color: #fff;
}

.status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.pill--assignment { background: #dbeafe; color: #1e40af; }
.pill--course     { background: #d1fae5; color: #065f46; }
.pill--resource   { background: #ede9fe; color: #5b21b6; }

.pill--submitted  { background: #dbeafe; color: #1e40af; }
.pill--reviewed   { background: #d1fae5; color: #065f46; }
.pill--late       { background: #fee2e2; color: #991b1b; }
.pill--pending    { background: #ffedd5; color: #9a3412; }
.pill--published  { background: #d1fae5; color: #065f46; }
.pill--document   { background: #f3f4f6; color: #374151; }
.pill--missing    { background: #f3f4f6; color: #6b7280; }

.deadline--overdue { color: #dc2626; font-weight: 600; }
.deadline--soon    { color: #ea580c; font-weight: 600; }
.deadline--week    { color: #ca8a04; font-weight: 600; }
.deadline--later   { color: #16a34a; font-weight: 600; }

.empty-state {
    color: #65717d;
    padding: 42px 24px;
    text-align: center;
}

.detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.footer-classeo {
    background-color: var(--school-deep);
    color: #fff;
    margin-top: auto;
    padding: 3rem 0;
}

/* ───── Depot card ――――――――――――――――――――――― */
.depot-card {
    background: #fff;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.depot-card-header {
    align-items: center;
    background: var(--school-canvas);
    border-bottom: 1px solid rgba(26, 54, 93, 0.06);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 20px;
}

.depot-card-header h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.depot-card-body {
    padding: 16px 20px;
}

.depot-card-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.depot-card-doc {
    align-items: center;
    background: rgba(43, 108, 176, 0.05);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    text-align: center;
}

.depot-card-doc .doc-icon {
    color: var(--school-mid);
    font-size: 1.3rem;
}

.depot-card-doc .doc-label {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.depot-card-doc .doc-filename {
    color: #334155;
    font-size: 0.8rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.depot-card-doc .doc-actions {
    display: flex;
    gap: 4px;
}

.depot-card-doc .doc-actions .btn {
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}

.depot-card-comment {
    border-top: 1px solid rgba(26, 54, 93, 0.06);
    color: #334155;
    font-size: 0.88rem;
    margin: 0;
    padding: 12px 0 0;
}

.depot-card-evaluation {
    background: rgba(43, 108, 176, 0.06);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: 8px;
    margin-top: 12px;
    padding: 12px 16px;
}

.depot-card-evaluation-heading {
    align-items: center;
    color: var(--school-deep);
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.depot-card-evaluation-heading span.score,
.depot-card-evaluation-score {
    background: #fff;
    border-radius: 999px;
    color: var(--school-mid);
    font-weight: 800;
    padding: 0.25rem 0.65rem;
}

.depot-card-evaluation p {
    color: #334155;
    margin: 8px 0 0;
}

/* ───── Dropzone ―――――――――――――――――――――――――― */
.dropzone-wrapper {
    margin-bottom: 16px;
}

.dropzone-wrapper:last-of-type {
    margin-bottom: 0;
}

.dropzone-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dropzone-label .text-muted {
    font-weight: 400;
}

.dropzone {
    background: #fff;
    border: 2px dashed rgba(43, 108, 176, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 18px 16px;
    position: relative;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover {
    background: rgba(43, 108, 176, 0.03);
    border-color: var(--school-mid);
}

.dropzone:focus-visible {
    border-color: var(--school-mid);
    box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.18);
    outline: 0;
}

.dropzone.is-dragover {
    background: rgba(43, 108, 176, 0.08);
    border-color: var(--school-mid);
    border-style: solid;
}

.dropzone.has-file {
    background: rgba(22, 163, 74, 0.04);
    border-color: #16a34a;
    border-style: solid;
}

.dropzone.is-saved {
    border-color: var(--school-mid);
    border-style: solid;
    opacity: 0.75;
}

.dropzone.is-saved:hover {
    opacity: 1;
}

.dropzone input[type="file"] {
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 0.1px;
    z-index: -1;
}

.dropzone-placeholder {
    align-items: center;
    color: #65717d;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropzone-placeholder i {
    color: var(--school-mid);
    font-size: 1.6rem;
}

.dropzone-placeholder span {
    font-size: 0.88rem;
}

.dropzone-file {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dropzone-file i {
    color: #16a34a;
    font-size: 1.2rem;
}

.dropzone-filename {
    color: #065f46;
    font-size: 0.88rem;
    font-weight: 700;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropzone-filesize {
    color: #65717d;
    font-size: 0.78rem;
}

.dropzone-remove {
    background: none;
    border: 1px solid rgba(153, 27, 27, 0.25);
    border-radius: 999px;
    color: #991b1b;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    transition: background-color 0.15s;
}

.dropzone-remove:hover {
    background: rgba(153, 27, 27, 0.08);
}

/* ───── Document checklist ―――――――――――――― */
.depot-checklist {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.depot-checklist-item {
    align-items: center;
    border-radius: 8px;
    display: grid;
    gap: 0 10px;
    grid-template-columns: 22px 1fr;
    padding: 8px 12px;
}

.depot-checklist-item.deposited {
    background: rgba(22, 163, 74, 0.06);
}

.depot-checklist-item.missing-required {
    background: rgba(220, 38, 38, 0.06);
}

.depot-checklist-item.missing-optional {
    background: rgba(0, 0, 0, 0.02);
}

.depot-checklist-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: 0.75rem;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.depot-checklist-item.deposited .depot-checklist-icon {
    background: #16a34a;
    color: #fff;
}

.depot-checklist-item.missing-required .depot-checklist-icon {
    background: #dc2626;
    color: #fff;
}

.depot-checklist-item.missing-optional .depot-checklist-icon {
    background: #e5e7eb;
    color: #6b7280;
}

.depot-checklist-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.depot-checklist-item.deposited .depot-checklist-label {
    color: #065f46;
}

.depot-checklist-item.missing-required .depot-checklist-label {
    color: #991b1b;
}

.depot-checklist-meta {
    color: #65717d;
    font-size: 0.78rem;
    grid-column: 2;
}

/* ───── Depot progress bar ―――――――――――― */
.depot-progress {
    margin-bottom: 20px;
}

.depot-progress-text {
    align-items: center;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.depot-progress-text strong {
    color: var(--school-deep);
}

.depot-progress-text span {
    color: #65717d;
}

.depot-progress-bar {
    background: rgba(43, 108, 176, 0.1);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.depot-progress-bar span {
    background: linear-gradient(90deg, var(--school-mid), #16a34a);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.4s ease;
}

/* ───── Multi-file upload ──────────────────── */
.upload-file-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-file-item {
    align-items: center;
    background: rgba(43, 108, 176, 0.05);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: 6px;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
}

.upload-file-item i {
    color: var(--school-mid);
    flex-shrink: 0;
}

.upload-file-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-size {
    color: #65717d;
    flex-shrink: 0;
    font-size: 0.78rem;
}

/* ───── Document grid (work resources) ――― */
.depot-doc-grid {
    display: grid;
    gap: 0;
}

.depot-doc-item {
    align-items: center;
    border-bottom: 1px solid rgba(26, 54, 93, 0.06);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 20px;
}

.depot-doc-item:last-child {
    border-bottom: 0;
}

.depot-doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.depot-doc-name {
    color: var(--school-deep);
    font-size: 0.92rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.depot-doc-date {
    color: #65717d;
    font-size: 0.82rem;
}



@media (max-width: 767px) {
    .home-hero {
        background:
            linear-gradient(180deg, rgba(26, 54, 93, 0.94) 0%, rgba(26, 54, 93, 0.82) 56%, rgba(26, 54, 93, 0.45) 100%),
            url("../images/home-hero--d1xPTM.jpg") center / cover no-repeat;
        min-height: auto;
        padding: 3rem 0 6rem;
    }

    .home-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .home-strip {
        margin-top: -60px;
    }

    .workspace-header,
    .work-list-item {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .workspace-header {
        display: grid;
    }

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

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

    .dashboard-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

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

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