:root {
    --bg: #3a6ea5;
    --card: #1c2430;
    --muted: #9fb0c2;
    --text: #eef4fb;
    --accent: #7dd3fc;
    --danger: #f87171;
    --border: #314155;
    --success: #16a34a;
    --warning: #d97706;
    --info: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

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

.site-header h1 {
    margin: 0 0 6px;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    height: 64px;
    width: auto;
}

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

.card {
    background: #15377a;
    border: 1px solid #9cc8ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.card.narrow {
    max-width: 520px;
    margin: 48px auto;
}

.form-actions {
    text-align: center;
    margin-top: 24px;
}

.form-actions .button {
    margin-top: 0;
}

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

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #347597;
    background: #347597;
    color: var(--text);
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #00131d;
    font-weight: 700;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 14px;
    transition: all 0.2s ease;
}

.button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-secondary {
    background: #d9d9d9;
    color: #000000;
    border: 1px solid var(--border);
}

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

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.flash-success {
    background: rgba(22, 163, 74, 0.15);
}

.flash-error {
    background: rgba(248, 113, 113, 0.15);
}

.flash-info {
    background: rgba(37, 99, 235, 0.15);
}

.flash-warning {
    background: rgba(217, 119, 6, 0.15);
}

a {
    color: var(--accent);
}

code {
    background: #0f141b;
    padding: 2px 6px;
    border-radius: 6px;
}

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

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

.inline-form {
    display: inline-block;
    margin-right: 8px;
}

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        border-top: 1px solid var(--border);
        padding: 10px 0;
    }

    td {
        border: 0;
        padding: 6px 0;
    }
}