/* =============================================
   BILZO – Global Stylesheet
   Light & Happy Design
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --orange:        #FF6B2B;
  --orange-hover:  #E85A1A;
  --orange-light:  #FFF3ED;
  --orange-mid:    #FFD4BE;
  --green:         #16A34A;
  --green-light:   #DCFCE7;
  --blue:          #2563EB;
  --blue-light:    #DBEAFE;
  --red:           #DC2626;
  --red-light:     #FEE2E2;
  --yellow:        #D97706;
  --yellow-light:  #FEF3C7;
  --purple:        #7C3AED;
  --purple-light:  #EDE9FE;
  --bg:            #FBF9F7;
  --white:         #FFFFFF;
  --text:          #1C1917;
  --text2:         #57534E;
  --muted:         #A8A29E;
  --border:        #E7E5E0;
  --shadow:        0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);
  --radius:        14px;
  --radius-sm:     8px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Nunito', sans-serif; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width:100%; border-radius: var(--radius-sm); }

/* ── NAVBAR ── */
.bilzo-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 1.25rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top:0; z-index:999;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.bilzo-logo { font-family:'Nunito',sans-serif; font-size:1.6rem; font-weight:900; color:var(--orange); }
.bilzo-logo span { color:var(--text); }
.nav-links { display:flex; align-items:center; gap:0.5rem; }
.nav-link-btn {
  padding: 0.35rem 0.9rem; border-radius:2rem; font-size:0.82rem; font-weight:700;
  font-family:'Nunito',sans-serif; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text2); cursor:pointer; transition: all 0.15s;
}
.nav-link-btn:hover { border-color:var(--orange); color:var(--orange); }
.nav-link-btn.active { background:var(--orange); border-color:var(--orange); color:white; }
.nav-user { font-size:0.82rem; color:var(--text2); font-weight:600; }
.nav-cart-btn {
  background:var(--orange-light); color:var(--orange); border:none; border-radius:2rem;
  padding: 0.35rem 0.9rem; font-size:0.82rem; font-weight:700; cursor:pointer;
  font-family:'Nunito',sans-serif; transition: background 0.15s;
}
.nav-cart-btn:hover { background:var(--orange-mid); }

/* ── BUTTONS ── */
.btn {
  display:inline-block; padding:0.6rem 1.4rem; border-radius:2rem; font-family:'Nunito',sans-serif;
  font-weight:700; font-size:0.88rem; border:none; cursor:pointer; transition: all 0.15s; text-align:center;
}
.btn-orange { background:var(--orange); color:white; }
.btn-orange:hover { background:var(--orange-hover); box-shadow:0 4px 14px rgba(255,107,43,0.30); }
.btn-outline { background:transparent; color:var(--orange); border:1.5px solid var(--orange); }
.btn-outline:hover { background:var(--orange-light); }
.btn-green { background:var(--green); color:white; }
.btn-green:hover { background:#15803D; }
.btn-red { background:var(--red); color:white; }
.btn-red:hover { background:#B91C1C; }
.btn-gray { background:var(--border); color:var(--text2); }
.btn-gray:hover { background:#D6D3CF; }
.btn-full { display:block; width:100%; }
.btn-sm { padding:0.4rem 1rem; font-size:0.8rem; }
.btn-lg { padding:0.8rem 2rem; font-size:1rem; }

/* ── CARDS ── */
.card {
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card-body { padding:1.25rem; }
.card-hover:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); transition: all 0.2s; }

/* ── RESTAURANT CARD ── */
.rest-card { border-radius:var(--radius); overflow:hidden; background:var(--white); border:1px solid var(--border); box-shadow:var(--shadow); transition:all 0.2s; cursor:pointer; }
.rest-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.rest-card-img { width:100%; height:160px; object-fit:cover; border-radius:0; }
.rest-card-img-placeholder { width:100%; height:160px; background:var(--orange-light); display:flex; align-items:center; justify-content:center; font-size:3rem; }
.rest-card-body { padding:0.9rem 1rem 1rem; }
.rest-card-name { font-size:1rem; font-weight:800; margin-bottom:0.2rem; }
.rest-card-cuisine { font-size:0.78rem; color:var(--muted); margin-bottom:0.5rem; }
.rest-card-meta { display:flex; gap:0.75rem; align-items:center; font-size:0.78rem; }
.rest-badge { display:inline-flex; align-items:center; gap:0.25rem; padding:0.2rem 0.6rem; border-radius:1rem; font-weight:700; font-size:0.75rem; }
.badge-green { background:var(--green-light); color:var(--green); }
.badge-orange { background:var(--orange-light); color:var(--orange); }
.badge-red { background:var(--red-light); color:var(--red); }
.badge-yellow { background:var(--yellow-light); color:var(--yellow); }
.badge-blue { background:var(--blue-light); color:var(--blue); }
.badge-purple { background:var(--purple-light); color:var(--purple); }
.badge-gray { background:var(--border); color:var(--text2); }

/* ── FOOD CARD ── */
.food-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); display:flex; gap:0.75rem; padding:0.9rem; align-items:flex-start; }
.food-card-img { width:80px; height:80px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; }
.food-card-img-placeholder { width:80px; height:80px; background:var(--orange-light); border-radius:var(--radius-sm); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.8rem; }
.food-card-info { flex:1; min-width:0; }
.food-card-name { font-weight:700; font-size:0.92rem; margin-bottom:0.2rem; }
.food-card-desc { font-size:0.78rem; color:var(--muted); margin-bottom:0.4rem; line-height:1.4; }
.food-card-price { font-weight:800; font-size:1rem; color:var(--orange); }
.food-card-time { font-size:0.72rem; color:var(--muted); }
.veg-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:4px; }
.veg-dot.veg { background:var(--green); }
.veg-dot.nonveg { background:var(--red); }
.qty-control { display:flex; align-items:center; gap:0.4rem; }
.qty-btn { width:28px; height:28px; border-radius:50%; border:none; font-size:1.1rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.qty-btn.minus { background:var(--border); color:var(--text2); }
.qty-btn.plus  { background:var(--orange); color:white; }
.qty-num { font-weight:700; font-size:0.9rem; min-width:20px; text-align:center; }

/* ── FORMS ── */
.form-group { margin-bottom:1rem; }
.form-label { display:block; font-size:0.82rem; font-weight:700; margin-bottom:0.4rem; color:var(--text2); }
.form-control {
  width:100%; padding:0.65rem 0.9rem; border:1.5px solid var(--border);
  border-radius:var(--radius-sm); font-size:0.88rem; font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--white); color:var(--text); transition:border-color 0.15s;
}
.form-control:focus { outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,107,43,0.12); }
.form-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8A29E' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 0.9rem center; padding-right:2rem; }
textarea.form-control { resize:vertical; min-height:80px; }
.form-hint { font-size:0.75rem; color:var(--muted); margin-top:0.3rem; }
.form-error { font-size:0.78rem; color:var(--red); margin-top:0.3rem; }

/* ── ALERT ── */
.alert { padding:0.75rem 1rem; border-radius:var(--radius-sm); font-size:0.85rem; font-weight:600; margin-bottom:1rem; }
.alert-success { background:var(--green-light); color:var(--green); border:1px solid #BBF7D0; }
.alert-error   { background:var(--red-light);   color:var(--red);   border:1px solid #FECACA; }
.alert-info    { background:var(--blue-light);   color:var(--blue);  border:1px solid #BFDBFE; }
.alert-warning { background:var(--yellow-light); color:var(--yellow);border:1px solid #FDE68A; }

/* ── ORDER TIMELINE ── */
.timeline { list-style:none; padding:0; }
.timeline li { display:flex; gap:1rem; padding-bottom:1.25rem; position:relative; }
.timeline li:not(:last-child)::before { content:''; position:absolute; left:14px; top:28px; bottom:0; width:2px; background:var(--border); }
.tl-icon { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0; border:2px solid var(--border); background:var(--white); }
.tl-icon.done   { background:var(--green); border-color:var(--green); color:white; }
.tl-icon.active { background:var(--orange); border-color:var(--orange); color:white; box-shadow:0 0 0 4px rgba(255,107,43,0.15); }
.tl-icon.pending{ background:var(--bg); border-color:var(--border); color:var(--muted); }
.tl-body h5 { font-size:0.88rem; font-weight:700; }
.tl-body p  { font-size:0.75rem; color:var(--muted); }

/* ── DASHBOARD STATS ── */
.stat-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:1.1rem 1.25rem; box-shadow:var(--shadow); }
.stat-icon { font-size:1.6rem; margin-bottom:0.5rem; }
.stat-val  { font-family:'Nunito',sans-serif; font-size:1.7rem; font-weight:900; line-height:1; }
.stat-label{ font-size:0.78rem; color:var(--muted); font-weight:600; margin-top:0.2rem; }

/* ── PAGE HEADER ── */
.page-header { background:var(--white); border-bottom:1px solid var(--border); padding:1.25rem 1.5rem; margin-bottom:1.5rem; }
.page-header h2 { font-size:1.3rem; font-weight:800; }
.page-header p  { font-size:0.83rem; color:var(--muted); margin-top:0.15rem; }

/* ── TABLE ── */
.bilzo-table { width:100%; border-collapse:collapse; font-size:0.85rem; }
.bilzo-table th { background:var(--bg); padding:0.65rem 0.9rem; text-align:left; font-weight:700; font-size:0.78rem; color:var(--text2); border-bottom:1px solid var(--border); }
.bilzo-table td { padding:0.75rem 0.9rem; border-bottom:1px solid var(--border); vertical-align:middle; }
.bilzo-table tr:last-child td { border-bottom:none; }
.bilzo-table tr:hover td { background:#FAFAF9; }
.table-wrap { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); overflow-x:auto; }

/* ── SIDEBAR LAYOUT ── */
.dashboard-layout { display:flex; min-height:calc(100vh - 60px); }
.sidebar { width:220px; background:var(--white); border-right:1px solid var(--border); padding:1.25rem 0; flex-shrink:0; }
.sidebar-link { display:flex; align-items:center; gap:0.65rem; padding:0.65rem 1.25rem; font-size:0.85rem; font-weight:600; color:var(--text2); border-left:3px solid transparent; transition:all 0.15s; }
.sidebar-link:hover { background:var(--orange-light); color:var(--orange); text-decoration:none; }
.sidebar-link.active { background:var(--orange-light); color:var(--orange); border-left-color:var(--orange); font-weight:700; }
.sidebar-icon { font-size:1rem; width:20px; text-align:center; }
.sidebar-section { font-size:0.68rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; padding:0.9rem 1.25rem 0.3rem; }
.main-content { flex:1; padding:1.5rem; overflow-x:hidden; }

/* ── CART SIDEBAR ── */
.cart-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:1000; }
.cart-overlay.open { display:block; }
.cart-drawer { position:fixed; right:0; top:0; bottom:0; width:320px; background:var(--white); box-shadow:-8px 0 32px rgba(0,0,0,0.12); z-index:1001; display:flex; flex-direction:column; transform:translateX(100%); transition:transform 0.28s cubic-bezier(.4,0,.2,1); }
.cart-drawer.open { transform:translateX(0); }
.cart-header { padding:1.1rem 1.25rem; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.cart-header h3 { font-size:1.1rem; font-weight:800; }
.cart-close { background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--muted); }
.cart-items { flex:1; overflow-y:auto; padding:1rem 1.25rem; }
.cart-item { display:flex; gap:0.75rem; align-items:center; padding:0.75rem 0; border-bottom:1px solid var(--border); }
.cart-item-name { font-weight:600; font-size:0.88rem; flex:1; }
.cart-item-price { font-weight:700; font-size:0.85rem; color:var(--orange); }
.cart-footer { padding:1.25rem; border-top:1px solid var(--border); }
.cart-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; }
.cart-total strong { font-size:1.1rem; }

/* ── ORDER CARD ── */
.order-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:1rem; overflow:hidden; }
.order-card-header { padding:0.85rem 1.1rem; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); background:var(--bg); }
.order-card-body { padding:1rem 1.1rem; }
.order-id { font-weight:800; font-size:0.9rem; }
.order-time { font-size:0.75rem; color:var(--muted); }

/* ── ETA BOX ── */
.eta-box { background:var(--orange-light); border:1.5px solid var(--orange-mid); border-radius:var(--radius); padding:1rem 1.25rem; display:flex; align-items:center; gap:0.75rem; margin-bottom:1.25rem; }
.eta-icon { font-size:2rem; }
.eta-time { font-family:'Nunito',sans-serif; font-size:1.5rem; font-weight:900; color:var(--orange); }
.eta-label { font-size:0.78rem; color:var(--text2); font-weight:600; }

/* ── AUTH PAGE ── */
.auth-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.5rem; background:var(--bg); }
.auth-box { background:var(--white); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-lg); padding:2rem 2rem; width:100%; max-width:400px; }
.auth-logo { text-align:center; margin-bottom:1.5rem; }
.auth-logo .bilzo-logo { font-size:2rem; }
.auth-title { font-size:1.3rem; font-weight:800; text-align:center; margin-bottom:0.25rem; }
.auth-sub { text-align:center; color:var(--muted); font-size:0.83rem; margin-bottom:1.5rem; }

/* ── EMPTY STATE ── */
.empty-state { text-align:center; padding:3rem 1.5rem; }
.empty-state-icon { font-size:3.5rem; margin-bottom:1rem; }
.empty-state h3 { font-size:1.1rem; font-weight:800; margin-bottom:0.4rem; }
.empty-state p { color:var(--muted); font-size:0.85rem; }

/* ── GRID HELPERS ── */
.grid-2 { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1rem; }
.grid-3 { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:1rem; }
.gap-1 { gap:1rem; }
.mb-1 { margin-bottom:1rem; }
.mb-2 { margin-bottom:1.5rem; }
.mt-1 { margin-top:1rem; }
.flex { display:flex; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.text-muted { color:var(--muted); }
.text-sm { font-size:0.82rem; }
.fw-700 { font-weight:700; }
.text-orange { color:var(--orange); }
.text-green { color:var(--green); }
.text-red { color:var(--red); }

/* ── MOBILE ── */
@media(max-width:768px) {
  .sidebar { display:none; }
  .main-content { padding:1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .bilzo-nav .nav-links .hide-mobile { display:none; }
  .cart-drawer { width:100%; }
  .page-header { padding:1rem; }
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav { display:none; }
@media(max-width:768px) {
  .mobile-bottom-nav {
    display:flex; position:fixed; bottom:0; left:0; right:0;
    background:var(--white); border-top:1px solid var(--border);
    padding:0.5rem 0; z-index:998; justify-content:space-around;
  }
  .mbn-item { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:0.65rem; font-weight:700; color:var(--muted); padding:0.2rem 0.5rem; }
  .mbn-item.active { color:var(--orange); }
  .mbn-icon { font-size:1.3rem; }
  body { padding-bottom:70px; }
}

/* ── CALL / MAP BUTTONS ── */
.action-btn-call { background:var(--green-light); color:var(--green); border:1.5px solid #BBF7D0; }
.action-btn-map  { background:var(--blue-light);  color:var(--blue);  border:1.5px solid #BFDBFE; }
