:root {
    --bg: #f5efe4;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #fffdf8;
    --text: #1d2a33;
    --muted: #5d6c74;
    --line: rgba(29, 42, 51, 0.12);
    --accent: #1b6b65;
    --accent-strong: #15534e;
    --danger: #b73d2f;
    --secondary: #66757f;
    --shadow: 0 18px 40px rgba(37, 51, 61, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(27, 107, 101, 0.2), transparent 28%),
        radial-gradient(circle at bottom right, rgba(183, 61, 47, 0.14), transparent 30%),
        linear-gradient(135deg, #f7f1e7 0%, #f3e8d4 48%, #efe0ca 100%);
    min-height: 100vh;
}

.page-shell {
    padding: 32px 16px 48px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0 0 8px;
}

h1, h2 {
    margin: 0 0 12px;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-copy {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-links a {
    text-decoration: none;
    color: var(--accent-strong);
    background: rgba(255, 253, 248, 0.9);
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(27, 107, 101, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(27, 107, 101, 0.12);
}

.status-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(27, 107, 101, 0.12);
    color: var(--accent-strong);
    border: 1px solid rgba(27, 107, 101, 0.18);
}

.status-message.error {
    background: rgba(183, 61, 47, 0.12);
    color: #8f2519;
    border-color: rgba(183, 61, 47, 0.2);
}

.grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
}

.card {
    background: var(--panel);
    backdrop-filter: blur(8px);
    padding: 22px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.table-card {
    background: var(--panel-strong);
}

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

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: rgba(27, 107, 101, 0.5);
    box-shadow: 0 0 0 4px rgba(27, 107, 101, 0.12);
}

.btn-row,
.actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-row {
    margin-top: 18px;
}

button {
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

button.secondary {
    background: var(--secondary);
}

button.danger {
    background: var(--danger);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 0.92rem;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 24px 12px;
}

@media (max-width: 900px) {
    .hero,
    .grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero {
        gap: 18px;
    }
}
