:root {
    --bg: #07111f;
    --panel: #101c2b;
    --panel-2: #172436;
    --card: #ffffff;
    --text: #eef4ff;
    --dark: #0f1724;
    --muted: #8ea0b8;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #1e88ff;
    --green: #18b46b;
    --red: #e84b4b;
    --orange: #ffad33;
    --soft: #f4f7fb;
    --border: #d9e2ef;
}

* {
    box-sizing: border-box;
}

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

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(30, 136, 255, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(24, 180, 107, 0.18), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #101c2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    color: var(--text);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.login-card h1 {
    margin: 12px 0 10px;
    font-size: 36px;
}

.login-card p {
    color: var(--muted);
    line-height: 1.55;
}

.login-card label {
    display: block;
    margin-top: 18px;
    color: #cbd6e6;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 0 14px;
    font-size: 16px;
}

.login-card button,
.btn {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    background: var(--blue);
    color: white;
}

.test-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #b9c6d7;
    font-size: 14px;
}

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

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #07111f 0%, #101c2b 100%);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sidebar-brand strong {
    display: block;
    font-size: 20px;
}

.sidebar-brand span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.sidebar-nav a {
    color: #cbd6e6;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(30, 136, 255, 0.18);
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.sidebar-footer a {
    color: white;
    text-decoration: none;
    font-weight: 800;
}

.main {
    margin-left: 270px;
    width: calc(100% - 270px);
    padding: 28px;
}

.topbar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.user-box {
    text-align: right;
    background: var(--soft);
    border-radius: 18px;
    padding: 12px 16px;
}

.user-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.user-box strong {
    display: block;
    margin-top: 4px;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
}

.card h2 {
    margin: 0 0 14px;
}

.stat {
    font-size: 38px;
    font-weight: 900;
    margin: 6px 0;
}

.muted {
    color: var(--muted);
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-secondary {
    background: #edf3fb;
    color: var(--dark);
}

.btn-green {
    background: var(--green);
    color: white;
}

.btn-red {
    background: var(--red);
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.field label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
    font-size: 13px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 46px;
    border-radius: 13px;
    border: 1px solid var(--border);
    padding: 0 12px;
    font-size: 15px;
    background: white;
}

.field textarea {
    height: 88px;
    padding-top: 12px;
    resize: vertical;
}

.weight-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.weight-box {
    background: #0f1724;
    color: white;
    border-radius: 20px;
    padding: 18px;
}

.weight-box span {
    display: block;
    color: #9fb0c6;
    font-size: 13px;
    margin-bottom: 8px;
}

.weight-box strong {
    font-size: 34px;
    letter-spacing: -1px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

tr.selected {
    background: #e8f4ff;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-pending {
    background: #fff2d9;
    color: #9a6200;
}

.badge-complete {
    background: #dff8ec;
    color: #087541;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    background: #e8f4ff;
    border: 1px solid #b7dcff;
    color: #134b80;
    margin-bottom: 18px;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .app-body {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .grid-3,
    .grid-2,
    .form-grid,
    .weight-row {
        grid-template-columns: 1fr;
    }

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

    .user-box {
        text-align: left;
    }
}