:root {
    --bg: #f4f1ec;
    --bg-accent: #e6edf7;
    --card: #ffffff;
    --text: #1b2a41;
    --muted: #5c677d;
    --accent: #1f4b7a;
    --accent-dark: #183a5d;
    --border: #d6dde7;
    --shadow: 0 18px 40px rgba(24, 42, 65, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, var(--bg-accent), var(--bg) 55%);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(214, 221, 231, 0.6);
}

input,
button {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-card {
    padding: 34px 32px 28px;
    width: min(420px, 100%);
}

.login-title {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: 0.4px;
}

.login-subtitle {
    margin: 0 0 20px;
    color: var(--muted);
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(31, 75, 122, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.alert {
    background: #fdecea;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(180, 35, 24, 0.2);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.sidebar {
    padding: 22px 18px;
    height: fit-content;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
    background: #eef3fa;
    color: var(--accent);
}

.table thead th {
    background: #f1f3f5;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3fa;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat {
    padding: 18px;
}

.stat h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.stat p {
    margin: 0;
    color: var(--muted);
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 680px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

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