body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #0f172a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
}

h1, h2, h3 {
    margin-top: 0;
    letter-spacing: 0.2px;
}

.nav {
    background: #0f1f4a;
    border-bottom: 1px solid #1f326d;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nav-brand {
    color: #e0e7ff;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.95;
}

.nav a:hover {
    opacity: 1;
}

.nav-user {
    color: #bfdbfe;
    font-size: 13px;
    border-left: 1px solid #42548a;
    padding-left: 12px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.hero-card {
    background: radial-gradient(circle at top right, #1d4ed8 0%, #0f172a 90%);
    color: #f8fafc;
    border: none;
}

.hero-card p {
    color: #bfdbfe;
    margin-bottom: 0;
}

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

.metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.metric-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #334155;
}

input, select, textarea, button {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

button {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    filter: brightness(0.97);
}

.button-secondary {
    display: inline-block;
    width: auto;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: #334155;
    color: #fff;
    margin-right: 8px;
    border: 1px solid #1e293b;
}

.muted {
    color: #64748b;
}

.text-center {
    text-align: center;
}

.slip {
    max-width: 580px;
    margin: 0 auto;
}

.slip-box {
    border: 2px dashed #94a3b8;
    padding: 20px;
    border-radius: 10px;
    background: #f8fafc;
}

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

.serving-box {
    border: 1px solid #cbd5e1;
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}

.serving-box h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: 1px;
    color: #0f172a;
}

.serving-box p {
    margin: 6px 0;
}

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

.compact-form {
    min-width: 220px;
}

.compact-form input,
.compact-form select,
.compact-form button {
    margin-bottom: 8px;
    padding: 8px 10px;
}

.compact-form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.compact-form-inline input {
    margin-bottom: 0;
}

.compact-form-inline button {
    width: auto;
    margin-bottom: 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-tabs a {
    text-decoration: none;
    background: #e2e8f0;
    color: #1e293b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

th, td {
    border-bottom: 1px solid #e2e8f0;
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

tr:hover td {
    background: #f8fafc;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.badge-normal {
    background: #dbeafe;
    color: #1e40af;
}

.badge-urgent {
    background: #fee2e2;
    color: #b91c1c;
}

@media print {
    .no-print,
    .nav {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
