:root {
    --bg: #f3f7f5;
    --surface: #ffffff;
    --text: #0f1720;
    --muted: #4b5563;
    --brand: #0f8f6c;
    --brand-dark: #0b6b52;
    --accent: #e8faf3;
    --danger: #b42318;
    --line: #d9e5df;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, #d8f4ea 0%, transparent 35%),
        radial-gradient(circle at 90% 90%, #c9ebde 0%, transparent 30%),
        var(--bg);
}

.container {
    width: min(980px, 92vw);
    margin: 0 auto;
}

.hero {
    padding: 56px 0 22px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.hero p {
    color: var(--muted);
    margin-top: 12px;
    max-width: 760px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #99d7be;
    background: #e8faf3;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0d7458;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 14px 0 60px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(12, 27, 20, 0.08);
}

.form-card {
    padding: 24px;
}

.info-card {
    padding: 24px;
    position: sticky;
    top: 16px;
    height: fit-content;
}

h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    border: 1px solid #c7d8cf;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    background: #fff;
}

input[type="file"] {
    padding: 9px 10px;
    background: #f8fcfa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #69bd9d;
    box-shadow: 0 0 0 3px rgba(15, 143, 108, 0.14);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-wrap {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 6px 0 4px;
}

.radio-item {
    border: 1px solid #c7d8cf;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
}

.radio-item input {
    margin: 0;
}

.hidden {
    display: none;
}

.note {
    font-size: 12px;
    color: var(--muted);
}

.error,
.success {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.error {
    border: 1px solid #f4c7c3;
    background: #fff1f0;
    color: var(--danger);
}

.success {
    border: 1px solid #a7e5cd;
    background: #eefcf5;
    color: #0d7458;
}

button {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    cursor: pointer;
}

button:hover {
    filter: brightness(1.04);
}

a {
    color: #0d7458;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

li {
    margin-bottom: 8px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.topbar a {
    color: #0d7458;
    text-decoration: none;
    font-weight: 600;
}

.topbar-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #c7d8cf;
    background: #fff;
    font-size: 13px;
}

.chip-link:hover {
    border-color: #69bd9d;
    text-decoration: none;
}

.admin-table-wrap {
    overflow: auto;
    margin-top: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid #e5eeea;
    font-size: 14px;
    white-space: nowrap;
}

.admin-table th {
    color: #2a3f37;
    background: #f6fbf8;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table td {
    color: #1d2a24;
}

.admin-table tr:hover td {
    background: #f8fcfa;
}

.status-pill {
    display: inline-block;
    border: 1px solid #b9ddce;
    background: #ecfaf4;
    color: #0f7d5f;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    padding: 0 0 14px;
}

.metric-value {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
    color: #0d5f48;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.btn-inline {
    width: auto;
    padding: 10px 18px;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        position: static;
    }
}
