/* ============================================================
   HotelBills — Design System
   Palette: warm charcoal + turmeric gold + chili red accent
   Type: Poppins (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --charcoal:      #1F2421;
    --charcoal-soft: #2C332E;
    --cream:         #FBF7EF;
    --turmeric:      #E8A33D;
    --turmeric-dark: #C97F1F;
    --chili:         #C1502E;
    --leaf:          #4B7051;
    --line:          #E4DCC8;
    --text:          #2A2A27;
    --text-muted:    #6B6A63;
    --radius:        10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--charcoal);
    margin: 0 0 0.5em;
}

a { color: var(--chili); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top bar ---- */
.topbar {
    background: var(--charcoal);
    color: var(--cream);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.2px;
}
.topbar .brand span { color: var(--turmeric); }
.topbar nav a {
    color: var(--cream);
    opacity: 0.85;
    margin-left: 22px;
    font-size: 14px;
    font-weight: 500;
}
.topbar nav a:hover { opacity: 1; text-decoration: none; color: var(--turmeric); }

/* ---- Layout shell ---- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px;
    background: var(--charcoal-soft);
    color: var(--cream);
    padding: 24px 0;
    flex-shrink: 0;
}
.sidebar a {
    display: block;
    padding: 11px 24px;
    color: #D8D4C6;
    font-size: 14.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
    background: rgba(232,163,61,0.12);
    border-left-color: var(--turmeric);
    color: var(--turmeric);
    text-decoration: none;
}
.main { flex: 1; padding: 32px; max-width: 1200px; }

/* ---- Cards ---- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--turmeric);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.stat-card .value { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: var(--charcoal); }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- Forms ---- */
label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; color: var(--charcoal); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--turmeric);
    box-shadow: 0 0 0 3px rgba(232,163,61,0.18);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: #A6431F; text-decoration: none; }
.btn-secondary { background: var(--leaf); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn-full { width: 100%; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--text-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending  { background: #FBEBD5; color: var(--turmeric-dark); }
.badge-ready    { background: #E4EEE5; color: var(--leaf); }
.badge-paid     { background: #E4EEE5; color: var(--leaf); }
.badge-unpaid   { background: #FBE3DA; color: var(--chili); }
.badge-cancelled{ background: #EFEFEF; color: #888; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #E4EEE5; color: #2F5233; }
.alert-error   { background: #FBE3DA; color: #7A2E15; }

/* ---- Login page ---- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    background-image: radial-gradient(circle at 20% 20%, rgba(232,163,61,0.08), transparent 40%);
}
.auth-box {
    background: var(--cream);
    padding: 40px 36px;
    border-radius: 14px;
    width: 100%;
    max-width: 380px;
}
.auth-box h1 { font-size: 22px; margin-bottom: 4px; }
.auth-box p.sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---- Customer ordering page ---- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.menu-item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.menu-item-card .price { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--chili); font-size: 17px; }
.veg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 2px solid var(--leaf); margin-right: 6px; }
.nonveg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 2px solid var(--chili); margin-right: 6px; }

.cart-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--charcoal); color: #fff;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.cart-bar .btn-primary { background: var(--turmeric); color: var(--charcoal); }

@media (max-width: 768px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
    .sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .main { padding: 18px; }
}
