:root {
  --orange: #ff6900;
  --yellow: #ffd600;
  --sidebar-bg: #fff6e5;
  --main-bg: #fff9f3;
  --card-bg: #fff;
  --shadow: 0 4px 24px rgba(255,105,0,0.10);
  --success: #4caf50;
  --danger: #e53935;
  --transition: all 0.18s cubic-bezier(.4,.2,.3,1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--main-bg);
  color: #333;
  min-height: 100vh;
}

/* Login Form */
.login-container {
  max-width: 400px;
  margin: 25vh auto;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s;
}
.login-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-title span { color: #222; font-weight: 600; }
.login-title img { width: 32px; height: 32px; vertical-align: middle; }
.login-form { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.input-group { width: 100%; }
input[type="text"], input[type="password"] { width: 93%; padding: 12px 12px; border: 1.5px solid #f1f1f1; border-radius: 18px; font-size: 1rem; background: #fafafa; outline: none; transition: border 0.2s;}
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--orange);}
.login-btn { background: var(--orange); color: #fff; border: none; border-radius: 18px; font-size: 1.1rem; font-weight: 600; padding: 14px 0; margin-top: 10px; cursor: pointer; box-shadow: 0 2px 12px rgba(255,105,0,0.08); transition: var(--transition);}
.login-btn:hover { background: var(--yellow); color: var(--orange); transform: translateY(-2px) scale(1.04);}

/* SIDEBAR + DRAWER + TOPBAR */
.sidebar {
  background: var(--sidebar-bg);
  min-width: 210px;
  width: 210px;
  padding: 36px 0;
  border-radius: 0 32px 32px 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 50;
  transition: var(--transition);
}
.sidebar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
  transition: var(--transition);
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.sidebar-nav li { margin: 8px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 32px 12px 28px;
  color: #333;
  font-size: 1.08rem;
  border-radius: 16px 0 0 16px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.sidebar-nav a.active, .sidebar-nav a:hover {
  background: var(--orange);
  color: #fff;
}
.sidebar-nav a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Hamburger topbar for mobile */
.topbar-mobile { display: none; }
@media (max-width: 700px) {
  .sidebar { display: none; }
  .topbar-mobile {
    display: flex;
    align-items: center;
    background: var(--sidebar-bg);
    height: 54px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    box-shadow: var(--shadow);
    padding: 0 11px 0 6px;
  }
  .topbar-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .hamburger {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    margin-left: 2px;
    display: flex;
    align-items: center;
    font-size: 2.1rem;
    color: var(--orange);
  }
  .main-content {
    margin-top: 54px !important;
    margin-left: 0 !important;
    padding: 12px 4px 10px 4px !important;
  }
}

/* Drawer styles for mobile sidebar */
.drawer-bg { display: none; }
.drawer { display: none; }
@media (max-width: 700px) {
  .drawer-bg {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.22);
    z-index: 120;
    transition: opacity 0.18s;
  }
  .drawer-bg.open {
    display: block;
    opacity: 1;
  }
  .drawer {
    display: block;
    position: fixed;
    left: -220px;
    top: 0;
    width: 210px;
    min-width: 180px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 121;
    box-shadow: 2px 0 20px #ff690033;
    border-radius: 0 24px 24px 0;
    transition: left 0.33s cubic-bezier(.7,.2,.6,1);
    padding: 18px 0 0 0;
  }
  .drawer.open {
    left: 0;
  }
  .drawer .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
  }
  .drawer .sidebar-nav {
    flex-direction: column;
  }
  .drawer .sidebar-nav a {
    font-size: 1.09rem;
    padding: 12px 28px 12px 20px;
    border-radius: 14px;
  }
}

/* Main content layout */
.main-content {
  margin-left: 210px;
  padding: 36px 28px;
  min-height: 100vh;
  animation: fadeIn 0.5s;
  transition: var(--transition);
}
@media (max-width: 900px) {
  .sidebar { min-width: 56px; width: 56px; padding: 24px 0; border-radius: 0 24px 24px 0; }
  .sidebar .logo { font-size: 1.1rem; margin-bottom: 8px; }
  .sidebar-nav a { font-size: 0.98rem; padding: 10px 12px; }
  .main-content { margin-left: 56px; padding: 18px 8px; }
}
@media (max-width: 700px) {
  .main-content { margin-left: 0; padding: 10px 2vw 10px 2vw!important;}
}

/* DASHBOARD STYLES */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1.5fr 2fr;
    gap: 18px;
  }
}
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin-bottom: 18px;
  transition: var(--transition);
  position: relative;
}
@media (max-width: 700px) {
  .card {
    padding: 12px 7px;
    margin-bottom: 14px;
  }
}
.card:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 32px rgba(255,105,0,0.12);
}
.stats { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .stats { flex-direction: column; gap: 14px; }
}
@media (max-width: 700px) {
  .stats { flex-direction: column; gap: 10px; }
}
.stat-card {
  flex: 1 1 160px;
  background: #fff7ea;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 2px 8px #ffe0b2;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 700px) {
  .stat-card {
    padding: 11px 8px;
    margin-bottom: 7px;
    font-size: 0.97rem;
  }
}
.stat-title { color: #333; font-size: 1.1rem; font-weight: 600; margin-bottom: 7px; }
.stat-value { color: var(--orange); font-size: 1.5rem; font-weight: 700; }
.stat-desc { font-size: 0.94rem; color: #939393; margin-top: 2px; }

.best-dishes {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #ffe0b2;
  padding-bottom: 8px;
}
@media (max-width: 700px) {
  .best-dishes { gap: 8px; padding-bottom: 4px; }
}
.dish-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-width: 150px;
  max-width: 180px;
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 6px 15px 6px;
  transition: var(--transition);
  margin-right: 8px;
}
@media (max-width: 700px) {
  .dish-card {
    min-width: 110px;
    max-width: 120px;
    padding: 7px 2px 9px 2px;
    font-size: 0.89rem;
  }
}
.dish-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 32px rgba(255,105,0,0.13);
}
.dish-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffefdb;
  box-shadow: 0 2px 8px #ffcc80;
  margin-bottom: 7px;
}
@media (max-width: 700px) {
  .dish-img { width: 38px; height: 38px; margin-bottom: 4px; }
}
.dish-title { color: var(--orange); font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; text-align: center; }
.dish-desc { color: #555; font-size: 0.89rem; margin-bottom: 2px; text-align: center; }

@media (max-width: 700px) {
  .login-container { padding: 18px 8px; }
  .dashboard-grid { gap: 10px; }
  .card, .dish-card, .menu-card, .cart-modal, .order-card { padding: 10px 7px; }
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
@media (max-width: 700px) {
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
}
.menu-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  position: relative;
}
.menu-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 32px rgba(255,105,0,0.13);
}
.menu-img {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
  background: #ffe0b2;
  margin-bottom: 10px;
}
.menu-title { color: var(--orange); font-size: 1.13rem; font-weight: 700; margin-bottom: 5px; }
.menu-desc { color: #555; font-size: 0.97rem; margin-bottom: 5px; }
.menu-price { color: #333; font-size: 1.1rem; font-weight: 600; margin-bottom: 9px; }

.menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.qty-btn {
  background: var(--sidebar-bg);
  color: var(--orange);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 2px 8px #ffe0b2;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:active, .qty-btn:focus {
  background: var(--orange);
  color: #fff;
}
.qty-btn:disabled {
  background: #f8f8f8;
  color: #bbb;
  cursor: not-allowed;
  box-shadow: none;
}
.menu-qty {
  width: 44px;
  text-align: center;
  border: 1.5px solid #ffefdb;
  border-radius: 9px;
  padding: 8px;
  font-size: 1.08rem;
  background: #fff7ea;
  margin: 0 2px;
}
.add-cart-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.add-cart-btn:hover { background: var(--yellow); color: var(--orange); }

.cart-counter {
  background: var(--orange);
  color: #fff;
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #ffcc80;
  z-index: 1;
}

/* Cart Button Icon - Modern Big Design */
.cart-icon-btn {
  position: absolute;
  right: 16px;
  top: 10px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 10;
}
.cart-icon-btn .cart-svg {
  width: 38px;
  height: 38px;
  color: #23245a;
  display: block;
}
.cart-icon-btn .cart-count-badge {
  position: absolute;
  right: -2px;
  top: -7px;
  background: #ff15c3;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 26px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px #ff15c3a0;
  z-index: 1;
  transition: background 0.18s;
}
.cart-icon-btn:active .cart-count-badge,
.cart-icon-btn:focus .cart-count-badge {
  background: #ff6900;
}

/* Cart Modal */
.cart-modal-bg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.16);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-modal {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 18px;
  min-width: 320px;
  max-width: 95vw;
  padding: 28px 28px 22px 28px;
}
@media (max-width: 500px) {
  .cart-modal { min-width: 180px; padding: 18px 7px 12px 7px; }
}
.cart-modal-header { font-size: 1.27rem; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
.cart-items-list { max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cart-item-img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff7ea;
}
.cart-item-title { font-weight: 600; color: #333; }
.cart-item-price { color: var(--orange); font-weight: 700; margin-left: auto; }
.cart-total { font-size: 1.12rem; font-weight: 700; color: var(--orange); margin: 10px 0; }
.cart-modal-actions { display: flex; justify-content: flex-end; gap: 12px; }
.cart-modal-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cart-modal-btn:hover { background: var(--yellow); color: var(--orange); }
.cart-modal-btn.cancel { background: #eee; color: #222; }
.cart-modal-btn.cancel:hover { color: var(--orange); }
/* Add below your other CSS, or replace the relevant section if you had .orders-table before */

/* Admin Orders Section Modern Card Design */
.admin-orders-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-order-row {
  display: flex;
  flex-direction: column;
  background: #fff8f1;
  border-radius: 16px;
  box-shadow: 0 2px 12px #ffcc8035;
  padding: 18px 18px 12px 18px;
  transition: box-shadow 0.18s;
}
.admin-order-row:hover {
  box-shadow: 0 4px 24px #ff690026;
}
.admin-order-info {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.admin-order-id {
  font-weight: 700;
  color: var(--orange);
  margin-right: 7px;
  font-size: 1.08rem;
}
.admin-order-customer {
  font-weight: 600;
  color: #222;
  margin-right: 9px;
}
.admin-order-dishes {
  color: #555;
  font-size: 0.99rem;
}
.admin-order-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 2px;
}
.admin-order-total {
  font-weight: 700;
  color: #222;
  font-size: 1.09rem;
  background: #fff7ea;
  border-radius: 6px;
  padding: 3px 11px;
  margin-right: 10px;
  letter-spacing: 0.5px;
}

.order-status {
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 11px;
  font-size: 1.05rem;
  margin-right: 6px;
  box-shadow: 0 2px 8px #ffe0b2;
  display: inline-block;
}
.order-status.pending {
  background: #ffe0b2;
  color: var(--orange);
}
.order-status.approved {
  background: var(--success);
  color: #fff;
}
.order-status.rejected {
  background: var(--danger);
  color: #fff;
}

.admin-order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-action-btn {
  background: #fff;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  margin-right: 2px;
  box-shadow: 0 2px 8px #ffcc80;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.order-action-btn.approve {
  border-color: var(--success);
  color: var(--success);
}
.order-action-btn.reject {
  border-color: var(--danger);
  color: var(--danger);
}
.order-action-btn:active,
.order-action-btn:focus {
  background: var(--orange);
  color: #fff;
}
.order-action-btn.approve:active,
.order-action-btn.approve:focus {
  background: var(--success);
  color: #fff;
}
.order-action-btn.reject:active,
.order-action-btn.reject:focus {
  background: var(--danger);
  color: #fff;
}
.admin-order-noaction {
  color: #bbb;
  font-size: 0.98rem;
  font-style: italic;
  padding-left: 7px;
}
.admin-order-empty {
  text-align: center;
  color: #aaa;
  font-size: 1.15rem;
  padding: 20px 0;
}
/* Orders List (Customer) */
.orders-list { width: 100%; max-width: 700px; margin: 0 auto; }
.order-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.order-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.order-id { font-weight: 700; color: var(--orange); margin-right: 6px; }
.order-status { font-weight: 600; padding: 3px 10px; border-radius: 8px; font-size: 0.98rem; }
.order-status.pending { background: #ffe0b2; color: var(--orange); }
.order-status.approved { background: var(--success); color: #fff; }
.order-status.rejected { background: var(--danger); color: #fff; }
.order-card-body { margin-top: 8px; font-size: 0.98rem; }

/* Toast (bottom right) */
.toast {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 9999;
  background: var(--orange);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px #ffcc80;
  opacity: 0;
  animation: toast-fadein 0.3s forwards, toast-fadeout 0.3s 2.7s forwards;
}
@keyframes toast-fadein {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes toast-fadeout {
  0% { opacity: 1;}
  100% { opacity: 0;}
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.97);}
  100% { opacity: 1; transform: scale(1);}
}