:root {
    --bg: #f3f7f4;
    --surface: #ffffff;
    --text: #132124;
    --muted: #4f656a;
    --brand: #006d77;
    --brand-strong: #00535a;
    --accent: #f4a261;
    --danger: #8b1e3f;
    --ok: #1f7a4a;
    --border: #d5e2df;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, #d8efe2 0%, var(--bg) 45%, #eef2ff 100%);
    color: var(--text);
}

.container {
    width: min(1120px, 94%);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(120deg, var(--brand) 0%, #1d3557 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.main-nav,
.user-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topbar a,
.user-name {
    color: #e9f7fa;
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover {
    color: #fff;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--accent);
    color: #3a1800;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #f6b37b;
}

.content {
    padding: 32px 0 48px;
}

.content h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.content h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
}

.content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
}

.content p {
    line-height: 1.65;
}

.hero {
    background: linear-gradient(145deg, #102a43 0%, #1b4965 60%, #2f6690 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.35);
}

.hero h1 {
    margin-top: 0;
}

.kpi-grid,
.list-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(19, 33, 36, 0.08);
}

.page-shell {
    width: min(1120px, 94%);
    margin: 0 auto;
}

.page-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.page-hero .subtitle {
    color: var(--muted);
    margin: 0;
}

.form-card {
    display: grid;
    gap: 10px;
    max-width: 560px;
}

.radio-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #f5f9f5;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.card-subsection {
    background: #f6faf9;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0 12px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e6f2ff;
    color: #0b4f8a;
    text-decoration: none;
    font-weight: 600;
}

.small-note {
    margin-bottom: 0;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bccdca;
    border-radius: 8px;
    background: #fff;
}

.filter-form {
    margin: 12px 0;
    max-width: 360px;
}

.muted {
    color: var(--muted);
}

.flash-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.flash {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.flash-success {
    background: #def8e8;
    color: var(--ok);
}

.flash-danger {
    background: #fde1ea;
    color: var(--danger);
}

.flash-info {
    background: #e4f2ff;
    color: #0d4f8b;
}

.footer {
    background: #111a2c;
    color: #d8dfef;
    padding-top: 28px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.footer h3,
.footer h4 {
    margin-top: 0;
    color: #fff;
}

.footer a {
    color: #d8dfef;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #2d3d63;
    margin-top: 16px;
    padding: 14px 0;
}

@media (max-width: 760px) {
    .topbar-inner {
        justify-content: center;
    }

    .main-nav,
    .user-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
