:root {
    --brand-amber: #ffb703;
    --brand-amber-strong: #f59e0b;
    --brand-espresso: #1f1b2d;
    --brand-ink: #111019;
    --brand-foam: #fffaf3;
    --brand-mist: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --success: #34d399;
    --danger: #ef4444;
    --warning: #f97316;
    --info: #38bdf8;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.18);
    --primary-color: var(--brand-amber);
    --secondary-color: #ffd166;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 183, 3, 0.18), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(145deg, #10131c 0%, #161925 45%, #0e1118 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
    padding-bottom: 80px; /* space for fixed footer */
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    backdrop-filter: blur(16px);
    background: linear-gradient(90deg, rgba(31, 27, 45, 0.92), rgba(17, 16, 25, 0.92));
    box-shadow: var(--shadow-strong);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand__logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__text {
    color: #fff;
}

.brand__text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.4px;
}

.brand__text span {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-amber {
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-strong));
    color: #111;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
    /* box-shadow: 0 12px 30px rgba(255, 183, 3, 0.3); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 183, 3, 0.38);
}

/* Override Bootstrap primary to match brand */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-strong));
    border-color: var(--brand-amber);
    color: #111;
    font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, var(--brand-amber-strong), var(--brand-amber));
    border-color: var(--brand-amber-strong);
    color: #111;
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.35);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: transparent;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.main-content {
    margin-top: 46px;
    padding: 24px;
    flex: 1 0 auto;
}

/* Kitchen view: no header spacing or padding */
.kitchen-body .main-content {
    margin-top: 0;
    padding: 0;
}

.page-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.main-content > .container-fluid,
.main-content > .container {
    width: 100%;
    max-width: 1240px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.surface {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: #fff;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-weight: 700;
}

.metric-card {
    background: var(--brand-foam);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.metric-card .label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.metric-card .value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 6px;
    color: var(--brand-amber);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-primary);
}

.pill--soft {
    background: rgba(255, 183, 3, 0.15);
    color: var(--brand-amber-strong);
}

.table-modern {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.table-modern thead {
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-strong));
    color: #111;
    font-weight: 700;
}

.list-group-item {
    background: #fdfcf8;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-badge.pending { background: rgba(249, 115, 22, 0.18); color: #c2410c; }
.status-badge.progress { background: rgba(56, 189, 248, 0.18); color: #0369a1; }
.status-badge.completed { background: rgba(52, 211, 153, 0.18); color: #0f766e; }
.status-badge.cancelled { background: rgba(239, 68, 68, 0.18); color: #b91c1c; }

.menu-hero {
    background: linear-gradient(135deg, rgb(255, 184, 3), rgb(255, 184, 3));
    border-radius: var(--radius-lg);
    padding: 26px;
    display: grid;
    gap: 8px;
    color: #fff;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.menu-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 1fr;
}

.menu-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-card .content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.menu-card .price-tag {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(17, 16, 25, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.menu-card .action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-filter {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.2s ease;
}

.chip-filter.active,
.chip-filter:hover {
    background: var(--brand-amber);
    color: #111;
    border-color: transparent;
}

.floating-order-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1040;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.snackbar {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: #111019;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

.snackbar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.sidebar-modern {
    background: linear-gradient(180deg, rgba(17, 16, 25, 0.95), rgba(17, 16, 25, 0.9));
    color: #e5e7eb;
    width: 260px;
    min-height: 100vh;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.25);
    padding-top: 90px;
}

.sidebar-modern .nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #cbd5e1;
    margin: 4px 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-modern .nav-links li a:hover {
    background: rgba(255, 183, 3, 0.1);
    color: #fff;
    transform: translateX(3px);
}

.sidebar-modern .nav-links li a.active {
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-strong));
    color: #111;
    /* box-shadow: 0 10px 24px rgba(255, 183, 3, 0.35); */
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
}

@media (max-width: 991px) {
    .app-header__inner {
        padding: 14px 18px;
    }
    .main-content {
        margin-top: 88px;
        padding: 16px;
    }
    .sidebar-modern {
        display: none;
    }
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .floating-order-btn {
        bottom: 18px;
        right: 18px;
    }
}

.footer-bar {
    background: linear-gradient(90deg, rgba(31, 27, 45, 0.92), rgba(17, 16, 25, 0.92));
    color: #f9fafb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
}
