:root {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #f3f4f6;
    background-color: #030409;
    line-height: 1.5;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, rgba(14, 140, 133, 0.25) 0%, transparent 45%), #030409;
    min-height: 100vh;
}

main.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: flex-start;
}

.content-column > section + section {
    margin-top: 1.25rem;
}

.sidebar-card {
    position: sticky;
    top: 1.75rem;
    align-self: start;
}

.sidebar-card .card {
    margin: 0;
}

.button-primary.full-width {
    width: 100%;
    text-align: center;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.logo-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero p {
    margin: 0.35rem 0;
    color: #c7cdd6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: #7dd3c5;
}

.card {
    background: rgba(10, 17, 26, 0.94);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(4, 7, 12, 0.6);
    margin-bottom: 2rem;
    border: 1px solid rgba(125, 141, 163, 0.35);
}

.sidebar-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 13, 0.95) 100%);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(3, 7, 13, 0.65);
    border: 1px solid rgba(125, 211, 199, 0.2);
}

.banquet-meal-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 0.6rem;
}

.banquet-meal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.9rem;
}

.banquet-meal-option input {
    flex-shrink: 0;
}

.banquet-summary {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 199, 0.4);
    padding: 1rem;
    background: rgba(15, 23, 42, 0.95);
}

.banquet-summary h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #a5f3fc;
}

.banquet-summary dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
    color: #cbd5f5;
}

.banquet-summary dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.banquet-summary dd {
    margin: 0;
    font-weight: 600;
    color: #e0f2fe;
}

.banquet-meal-stack {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.banquet-history {
    margin-top: 1.25rem;
}

.banquet-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.banquet-history li {
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.banquet-meal-meta {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #9ad0ff;
}

.banquet-meal-meta li {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.65rem;
}

.editing-banner {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #7dd3c5;
    text-align: center;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f8fafc;
}

input[type='text'],
input[type='number'] {
    border-radius: 12px;
    border: 1px solid #1f2937;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    width: 100%;
    background: #0f172a;
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='text']:focus,
input[type='number']:focus {
    outline: none;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.3);
    background: #111e3f;
}

.section-heading {
    margin: 0;
    font-size: 1.25rem;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary {
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.75rem 1.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #34d399, #0ea5e9);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
}

.button-secondary {
    background: rgba(125, 211, 199, 0.14);
    color: #7dd3c5;
    border: 1px solid rgba(125, 211, 199, 0.5);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
}

.ingredient-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    position: relative;
}

.fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit select,
.unit-tag {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #0f172a;
    color: #cbd5f5;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    min-width: 90px;
}

.unit-tag {
    text-align: center;
    font-weight: 600;
}

.per-person {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 12px;
    padding: 0.8rem;
    background: #0f172a;
    border: 1px solid rgba(125, 211, 199, 0.3);
}

.per-person-cost {
    font-size: 0.95rem;
    font-weight: 600;
    color: #34d399;
}

.per-person-qty {
    font-size: 0.85rem;
    color: #a5b4fc;
}

.per-person-cost,
.per-person-qty {
    white-space: nowrap;
}

.remove-row {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.remove-row:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.people-field {
    position: relative;
}

.auto-people {
    display: none;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.alert {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert-success {
    background: rgba(74, 222, 128, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #bbf7d0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.history-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.history-action-link,
.history-action-button {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.history-action-link {
    color: #7dd3c5;
    border-color: rgba(125, 211, 199, 0.7);
    background: rgba(125, 211, 199, 0.12);
    text-decoration: none;
}

.history-action-link:hover {
    background: rgba(125, 211, 199, 0.25);
}

.history-action-form {
    display: inline-flex;
    margin: 0;
}

.history-action-button {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.6);
}

.history-action-button:hover {
    background: rgba(248, 113, 113, 0.3);
}

.meal-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    padding: 1.5rem 1.5rem 1.75rem;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.6);
}

.meal-card table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #dbeafe;
}

.meal-card {
    overflow-x: auto;
}

.meal-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.meal-card th,
.meal-card td {
    text-align: left;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.15);
}

.total {
    font-size: 1rem;
    font-weight: 700;
    color: #34d399;
}

.muted {
    color: #94a3b8;
    margin: 0;
}

.hint {
    color: #94a3b8;
    font-size: 0.9rem;
}

table th {
    font-weight: 600;
    color: #cbd5f5;
}

@media (max-width: 600px) {
    .ingredient-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 960px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
        top: auto;
    }
}
