:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --ink: #1f2933;
    --muted: #687385;
    --line: #d9dee7;
    --primary: #1677c7;
    --primary-dark: #0e5b99;
    --accent: #16865c;
    --danger: #be3b3b;
    --warning: #b26a00;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto;
}

.footer {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
    color: var(--muted);
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.hero h1,
.page-title h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.hero p,
.page-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.stat-panel {
    display: grid;
    gap: 12px;
}

.stat {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat strong {
    display: block;
    font-size: 28px;
}

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

.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card {
    padding: 18px;
}

.card h3,
.panel h2 {
    margin: 0 0 8px;
}

.card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
}

.price {
    font-weight: 700;
    color: var(--accent);
}

.panel {
    padding: 20px;
}

.page-title {
    margin-bottom: 22px;
}

.form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 6px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.button.secondary,
button.secondary {
    color: var(--ink);
    background: #e9edf3;
}

.button.secondary:hover,
button.secondary:hover {
    background: #dbe2ec;
}

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

.small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 14px;
}

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

.alert.success {
    color: #0f5132;
    background: #dff5e8;
    border-color: #a8dec1;
}

.alert.error {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

th,
td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8fafc;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
}

.status-baru {
    color: #184e77;
    background: #d7ecff;
}

.status-diproses {
    color: #7a4a00;
    background: #ffe7bd;
}

.status-siap {
    color: #0f5132;
    background: #dff5e8;
}

.status-selesai {
    color: #344054;
    background: #e9edf3;
}

.status-batal {
    color: #842029;
    background: #f8d7da;
}

.cart-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.muted {
    color: var(--muted);
}

.total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
}

.user-chip {
    padding: 6px 10px;
    color: var(--muted);
    background: #f1f4f8;
    border-radius: 999px;
    font-size: 14px;
}

.order-items {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
        padding: 14px 16px;
        flex-direction: column;
    }

    .hero,
    .layout {
        grid-template-columns: 1fr;
    }

    .container {
        margin-top: 18px;
    }
}
