:root {
    --navy: #101828;
    --indigo: #2746c7;
    --green: #15936b;
    --text: #182230;
    --muted: #667085;
    --line: #d9e2ef;
    --soft: #f5f7fb;
    --card: #ffffff;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

.navbar {
    min-height: 58px;
}

.navbar-brand {
    color: var(--navy);
}

.login-screen {
    min-height: calc(100vh - 37px);
    min-height: calc(100dvh - 37px);
    display: grid;
    place-items: center;
    padding: 14px 18px;
    background:
        radial-gradient(circle at 18% 12%, rgba(39, 70, 199, .14), transparent 28%),
        radial-gradient(circle at 86% 82%, rgba(21, 147, 107, .14), transparent 30%),
        linear-gradient(135deg, #f8fbff, #eef4f7);
}

.login-card {
    width: min(100%, 430px);
    padding: 24px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(217, 226, 239, .9);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--indigo), #1c7d69);
    border-radius: 14px;
    font-size: 22px;
}

.login-card h1,
.dashboard-head h1,
.start-card h1,
.finish-card h1 {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 750;
    line-height: 1.08;
}

.login-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.login-card .vstack {
    gap: 12px !important;
}

.login-card .form-label {
    margin-bottom: 5px;
}

.login-card .form-control-lg {
    min-height: 44px;
    padding: 8px 13px;
    font-size: 16px;
}

.login-card .btn-lg {
    padding: 9px 16px;
    font-size: 16px;
}

.form-label {
    color: #344054;
    font-weight: 700;
    font-size: 14px;
}

.form-control {
    border-color: var(--line);
    border-radius: 12px;
}

.form-control:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 .2rem rgba(39, 70, 199, .12);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary {
    background: var(--indigo);
    border-color: var(--indigo);
}

.container {
    max-width: 1040px;
}

.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.dashboard-head h1 {
    font-size: clamp(22px, 4vw, 30px);
}

.section-title {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.empty-box,
.start-card,
.finish-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}

.start-card {
    width: min(100%, 580px);
    margin: 0 auto;
}

.start-card h1 {
    font-size: clamp(22px, 4vw, 30px);
}

.lock-warning {
    margin: 18px 0;
    padding: 18px;
    color: #7f1d1d;
    background: #fee2e2;
    border: 2px solid #dc2626;
    border-radius: 12px;
    box-shadow: inset 7px 0 0 #b91c1c, 0 14px 30px rgba(185, 28, 28, .16);
}

.lock-warning-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: #fff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.lock-warning h2 {
    margin: 0 0 8px;
    color: #7f1d1d;
    font-size: 24px;
    font-weight: 900;
}

.lock-warning p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.lock-warning-count {
    margin-top: 14px;
    padding: 12px;
    color: #fff;
    background: #991b1b;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.exam-list {
    display: grid;
    gap: 12px;
}

.exam-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.exam-item:not(.exam-item-static):hover {
    transform: translateY(-1px);
    border-color: #b8c8e6;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .07);
}

.exam-item strong {
    display: block;
    color: var(--navy);
    font-weight: 800;
}

.exam-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.exam-item-static {
    cursor: default;
}

.exam-status {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    text-align: right;
}

.exam-status-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
}

.exam-status-text {
    display: grid;
    gap: 1px;
}

.exam-status-text em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.exam-status-text small {
    color: #475467;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.exam-item-success {
    border-color: #22c55e !important;
    background: #dcfce7 !important;
    box-shadow: inset 6px 0 0 #16a34a;
}

.exam-item-success .exam-status-icon {
    color: #fff;
    background: #16a34a;
}

.exam-item-success .exam-status-text em {
    color: #08704f;
}

.exam-item-danger {
    border-color: #ef4444 !important;
    background: #fee2e2 !important;
    box-shadow: inset 6px 0 0 #dc2626;
}

.exam-item-danger .exam-status-icon {
    color: #fff;
    background: #dc2626;
}

.exam-item-danger .exam-status-text em {
    color: #b42318;
}

.exam-item-primary .exam-status-icon {
    color: #fff;
    background: #2563eb;
}

.exam-item-primary .exam-status-text em {
    color: #1f3f8f;
}

.exam-item-primary {
    border-color: #3b82f6 !important;
    background: #dbeafe !important;
    box-shadow: inset 6px 0 0 #2563eb;
}

.exam-item-muted {
    border-color: #94a3b8 !important;
    background: #e2e8f0 !important;
    box-shadow: inset 6px 0 0 #64748b;
}

.exam-item-muted .exam-status-icon {
    color: #fff;
    background: #64748b;
}

.exam-item-muted .exam-status-text em {
    color: #475467;
}

.finish-card {
    max-width: 420px;
}

.finish-card i {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 58px;
}

.app-footer {
    padding: 6px 12px 10px;
    color: #98a2b3;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
}

.app-footer strong {
    color: #667085;
    font-weight: 600;
}

@media (max-width: 575px) {
    .login-screen {
        min-height: calc(100vh - 33px);
        min-height: calc(100dvh - 33px);
        padding: 10px 14px;
    }

    .login-card {
        padding: 18px;
    }

    .login-brand {
        gap: 12px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
        font-size: 19px;
    }

    .login-card h1 {
        font-size: 24px;
    }

    .login-card p {
        font-size: 13px;
    }

    .dashboard-head {
        display: block;
        padding: 18px;
    }

    .dashboard-head .btn {
        width: 100%;
        margin-top: 14px;
    }

    .exam-item {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr;
    }

    .exam-status {
        justify-content: space-between;
        margin-top: 8px;
        text-align: left;
    }

    .exam-status-text {
        margin-right: auto;
    }
}
