* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Instrument Sans", Arial, sans-serif;
    background: #f2f5fa;
    color: #1f2937;
}
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #0f172a; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu a {
    text-decoration: none;
    color: #334155;
    padding: 10px 12px;
    border-radius: 10px;
}
.menu a:hover { background: #f1f5f9; color: #111827; }
.content { flex: 1; padding: 28px; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.topbar h1 { margin: 0; font-size: 34px; }
.chip {
    background: #e0e7ff;
    color: #4338ca;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.section { margin-bottom: 26px; }
.section h2 { margin: 0 0 12px; }
.notice {
    margin-bottom: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 10px 12px;
    border-radius: 10px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card span { color: #64748b; font-size: 13px; }
.card strong { font-size: 24px; color: #0f172a; }
.graphs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}
.panel h3 { margin-top: 0; }
.table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
th { color: #64748b; font-weight: 600; }
.form-panel form { display: flex; flex-direction: column; gap: 12px; }
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #475569; }
input, select, button {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}
button {
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    border: none;
    width: fit-content;
}
button.danger { background: #dc2626; }
.inline-form { margin-bottom: 12px; }
.restaurant-panel header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.tab-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
}
.tab-btn {
    background: #f1f5f9;
    color: #334155;
}
.tab-btn.active {
    background: #4f46e5;
    color: white;
}
.tab-content { display: none; color: #334155; }
.tab-content.active { display: block; }
.toggle {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}
@media (max-width: 1024px) {
    .sidebar { display: none; }
    .content { padding: 16px; }
    .graphs { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

.admin-login-page {
    background: #f3f4f8;
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-visual {
    position: relative;
    background-image: linear-gradient(to top, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.2)), url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
}

.auth-visual-overlay {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 42px;
    color: #ffffff;
}

.auth-visual-overlay h2 {
    margin: 0 0 8px;
    font-size: 34px;
}

.auth-visual-overlay p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    border: 1px solid #e9edf3;
}

.auth-card h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
    color: #111827;
}

.auth-subtitle {
    margin: 10px 0 20px;
    color: #6b7280;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0;
    width: auto;
}

.remember-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    background: #4ab56f;
    border-radius: 7px;
    font-weight: 600;
}

.auth-submit:hover {
    background: #3f9f61;
}

.auth-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
    }

    .auth-card h1 {
        font-size: 30px;
    }
}
