/* app.css file */

:root {
    --navy: #0f172a;
    --blue: #002147;
    --blue-dark: var(--blue);
    --brand-blue: var(--blue);
    --blue-rgb: 0, 33, 71;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --surface: #fff;
    --page: #f8fafc;
    --green: #059669;
    /* Shared navy-blue hover glow: a soft outer halo instead of any size change. */
    --btn-glow: 0 10px 24px rgba(0, 33, 71, .26), 0 0 18px rgba(30, 64, 175, .45);
    --btn-glow-soft: 0 6px 16px rgba(0, 33, 71, .14), 0 0 14px rgba(30, 64, 175, .30);
    --btn-glow-press: 0 4px 12px rgba(0, 33, 71, .30), 0 0 10px rgba(30, 64, 175, .35);
    /* Primary button fill: dim at rest, full brand navy on hover so the glow reads clearly. */
    --btn-bg: #002147;
    --btn-bg-dim: #1e3a5f
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at 80% 0, #dbeafe 0, transparent 34%), var(--page);
    color: var(--text);
    font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

.topbar {
    height: 76px;
    padding: 0 max(24px, calc((100% - 1120px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffffd9;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    font-size: 18px
}

.brand small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--blue);
    color: white;
    border-radius: 13px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(var(--blue-rgb), .19)
}

.brand-mark.brand-logo {
    overflow: hidden;
    padding: 3px;
    background: #fff;
}

.brand-mark.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35);
    border-radius: 9px;
}

.environment {
    color: var(--muted);
    font-size: 13px
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    min-height: calc(100vh - 140px)
}

.hero {
    padding: 74px 0 46px;
    max-width: 780px
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--blue);
    margin: 0 0 14px
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -.045em;
    color: var(--navy);
    margin: 0;
    max-width: 760px
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
    margin: 22px 0
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 14px;
    color: #166534
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 100%;
    background: #10b981;
    box-shadow: 0 0 0 5px #d1fae5
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 8px 0 30px
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 28px #0f172a06
}

.panel-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px
}

.panel h2 {
    color: var(--navy);
    font-size: 20px;
    margin: 20px 0 8px
}

.panel p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 20px
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    background: #f1f5f9;
    border-radius: 7px;
    color: #475569;
    font-size: 11px;
    font-weight: 750
}

.tag-green {
    background: #d1fae5;
    color: #065f46
}

.notice {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    padding: 17px 20px;
    border-radius: 14px;
    color: #002147;
    font-size: 14px;
    margin-bottom: 45px
}

.footer {
    text-align: center;
    padding: 22px;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid var(--border);
    background: #fff
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 11px;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px #00214726;
    transition: box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease
}

.button:hover,
button.button:hover {
    box-shadow: var(--btn-glow)
}

.button:active,
button.button:active {
    box-shadow: var(--btn-glow-press)
}

@media(max-width:760px) {
    .environment {
        display: none
    }

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

    .hero {
        padding-top: 48px
    }

    .topbar {
        padding: 0 20px
    }
}

/* Bulk delete zone for the testing tools on the assignment, quiz and lesson workspaces. These
   rules live in app.css because the card is shared by three admin pages, and they are written
   as compound selectors so pages.css, which loads after this file, cannot override them. */
.button.button-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b42318
}

.button.button-danger:hover {
    border-color: #fda4af;
    background: #ffe4e6;
    color: #991b1b
}

.button.button-danger:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.admin-card.admin-card-testing {
    border-color: #fecdd3;
    background: linear-gradient(180deg, #fff7f7, var(--surface) 45%)
}

.admin-card-testing .admin-card-titles h2 {
    color: #9f1239
}

.admin-card-testing code {
    padding: 2px 6px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    background: var(--surface);
    color: #9f1239;
    font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em
}

.purge-acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer
}

.purge-acknowledgement input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #b42318;
    cursor: pointer
}
