/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BODY
========================= */

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
}

/* =========================
   NAVBAR
========================= */

.navbar-brand {
  font-weight: 900;
  color: #198754 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(25, 135, 84, 0.25);
}

.navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(25, 135, 84, 0.15);
  backdrop-filter: blur(10px);
}

.navbar .navbar-nav .nav-link {
  color: #2f6f41;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #0d3f24;
  background: rgba(25, 135, 84, 0.18);
  transform: translateY(-1px);
}

#menu,
#categories,
#contact,
#home {
  scroll-margin-top: 100px;
}

.navbar-toggler {
  border-color: rgba(25, 135, 84, 0.35);
}

/* =========================
   HERO SLIDESHOW
========================= */

.hero-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  transform: scale(1);
  transition: opacity 0.9s ease-in-out, transform 6s ease-out;
}

.slide.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  text-align: center;
  gap: 0;
}

/* Nhãn nhỏ phía trên */
.slide-sub {
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  animation: fadeUp 0.7s ease both;
}

/* Tiêu đề lớn */
.slide-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.15s ease both;
}

/* Đường kẻ trang trí */
.slide-divider {
  width: 60px;
  height: 3px;
  background: #198754;
  border-radius: 2px;
  margin: 0 auto 28px;
  animation: fadeUp 0.7s 0.28s ease both;
}

/* Nút CTA */
.slide-cta {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #198754 0%, #20c472 100%);
  border: none;
border-radius: 50px;
  padding: 14px 40px;
  box-shadow: 0 6px 28px rgba(25, 135, 84, 0.55), 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: fadeUp 0.7s 0.4s ease both;
  text-decoration: none;
  display: inline-block;
}

.slide-cta:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 36px rgba(25, 135, 84, 0.65), 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* NÚT TRÁI / PHẢI */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(25, 135, 84, 0.7);
  border-color: #198754;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* CHẤM ĐIỀU HƯỚNG */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #198754;
  border-color: #198754;
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }

  .slide-content h1 {
    font-size: 1.8rem !important;
  }

  .slide-content p {
    font-size: 0.95rem !important;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* =========================
   CATEGORY CARD
========================= */

.category-card {
  background: white;
  border-radius: 20px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: #198754;
  box-shadow: 0 12px 32px rgba(25, 135, 84, 0.18);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #e2e8f0;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
z-index: 1;
}

.category-card:hover img {
  border-color: #198754;
  transform: scale(1.08);
}

.category-card p,
.category-card span,
.category-card div {
  position: relative;
  z-index: 1;
}

/* =========================
   FILTER BAR
========================= */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid #d1d5db;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: #198754;
  color: #198754;
  background: #f0fdf4;
}

.filter-pill.active {
  background: #198754;
  border-color: #198754;
  color: white;
  box-shadow: 0 3px 12px rgba(25, 135, 84, 0.3);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  padding: 6px 14px;
  transition: border-color 0.2s;
}

.sort-wrap:focus-within {
  border-color: #198754;
}

.sort-icon {
  color: #6b7280;
  font-size: 0.875rem;
}

.sort-select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  padding: 0;
}

/* =========================
   FOOD CARD
========================= */

.food-card {
  border: 1px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.food-card:hover {
  transform: translateY(-8px);
  border-color: #198754;
  box-shadow: 0 15px 30px rgba(25, 135, 84, 0.15) !important;
}

.food-card img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.food-card:hover img {
  transform: scale(1.05);
}

.price {
  color: #198754;
  font-size: 24px;
  font-weight: bold;
}

/* =========================
   INFO BOX
========================= */

.info-box {
  position: sticky;
  top: 100px;
}

@media (max-width: 992px) {
  .info-box {
    position: static;
    margin-top: 30px;
  }
}

/* =========================
   COMBO SECTION
========================= */

.combo-section {
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}

.combo-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.05);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.combo-header {
  margin-bottom: 36px;
}

.combo-label {
  display: inline-block;
  background: #198754;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.combo-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.combo-desc {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* COMBO CARD */
.combo-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.combo-card:hover {
  border-color: #198754;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(25, 135, 84, 0.15);
}

.combo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.combo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.combo-img-wrap {
  overflow: hidden;
  height: 180px;
}

.combo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.combo-card:hover .combo-img {
  transform: scale(1.07);
}

.combo-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.combo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.combo-items {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.combo-items li {
  font-size: 0.82rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-items li::before {
  content: "✓";
  color: #198754;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.combo-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: auto;
}

.combo-old {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.combo-new {
  font-size: 1.2rem;
  font-weight: 800;
  color: #198754;
}

.combo-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #198754, #20c472);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 3px 12px rgba(25, 135, 84, 0.3);
}

.combo-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* =========================
   PAYMENT METHODS
========================= */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  background: white;
user-select: none;
}

.payment-card:hover {
  border-color: #198754;
  background: #f0fdf4;
}

.payment-card.active {
  border-color: #198754;
  background: #f0fdf4;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.15);
}

.pm-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pm-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
}

.pm-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

.pm-check {
  margin-left: auto;
  color: #d1d5db;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.payment-card.active .pm-check {
  color: #198754;
}

/* =========================
   BACK TO TOP
========================= */

#backToTop {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.btt-progress {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.btt-track {
  fill: none;
  stroke: #d1fae5;
  stroke-width: 3;
}

.btt-fill {
  fill: none;
  stroke: #198754;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.1s linear;
}

.btt-icon {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, #198754, #20c472);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#backToTop:hover .btt-icon {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 22px rgba(25, 135, 84, 0.55);
}

/* =========================
   FOOTER
========================= */

.footer-section {
  background: linear-gradient(135deg, #064e3b, #16a34a);
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

.footer-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -150px;
}

.footer-logo {
  font-size: 42px;
  font-weight: 700;
  color: white;
}

.footer-text {
  font-size: 17px;
  line-height: 1.9;
  color: #dcfce7;
  max-width: 550px;
}

.footer-btn {
  background: white;
  color: #16a34a;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: 0.4s;
}

.footer-btn:hover {
  background: #bbf7d0;
  color: #064e3b;
  transform: translateY(-4px);
}

.footer-title {
  font-size: 30px;
  font-weight: 600;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 70px;
  height: 4px;
  background: #bbf7d0;
  border-radius: 30px;
}

.footer-contact p {
  font-size: 17px;
  margin-bottom: 18px;
  color: #ecfdf5;
  transition: 0.3s;
}

.footer-contact p:hover {
  transform: translateX(8px);
}

.footer-icon {
  color: #bbf7d0;
margin-right: 12px;
  width: 25px;
}

.social-icons a {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: 0.4s;
}

.social-icons a:hover {
  background: white;
  color: #16a34a;
  transform: translateY(-8px) scale(1.1);
}

.footer-line {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  color: #d1fae5;
  font-size: 15px;
}

/* =========================
   ADMIN LAYOUT
========================= */

.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #071f12 0%, #0b3d2e 60%, #0e4a37 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
}

.sidebar > a.logo {
  display: block;
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.sidebar > a.logo h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sidebar ul {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
  margin: 0;
}

.sidebar li {
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: 0.22s;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
}

.sidebar li:hover {
  background: rgba(255,255,255,0.09);
  color: white;
}

.sidebar .active {
  background: linear-gradient(135deg, #198754, #20c997);
  color: white;
  box-shadow: 0 4px 16px rgba(25,135,84,0.4);
  font-weight: 600;
}

.sidebar i {
  margin-right: 12px;
  width: 18px;
  text-align: center;
  font-size: 15px;
}

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  padding: 36px 40px;
  background: #f5faf8;
  min-height: 100vh;
}

/* ---- TOP BAR ---- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  background: white;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.top-bar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #0b3d2e;
  margin: 0;
}

.top-bar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6c757d;
}

/* ---- ADMIN STAT CARDS ---- */
.admin-stat-card {
  border-radius: 16px;
  padding: 20px 24px;
  border: none;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.admin-stat-card h6 { font-size: 13px; font-weight: 500; opacity: 0.85; margin-bottom: 6px; }
.admin-stat-card h2 { font-size: 36px; font-weight: 800; margin: 0; }
/* ---- SECTION FADE ANIMATION ---- */
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-fade {
  animation: sectionFadeIn 0.28s ease;
}

/* ---- SIDEBAR OVERLAY (mobile) ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(3px);
  z-index: 1049;
}

.sidebar-overlay.show {
  display: block;
}

/* ---- SIDEBAR HEADER WRAP ---- */
.sidebar-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 16px;
}

/* ---- SIDEBAR CLOSE BUTTON (mobile only) ---- */
.sidebar-close-btn {
  display: none;
  background: rgba(255,255,255,0.14);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* ---- ADMIN MOBILE HEADER ---- */
.admin-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b3d2e 0%, #198754 100%);
  color: white;
  padding: 14px 18px;
  margin: -36px -40px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(11,61,46,0.3);
}

/* ---- HAMBURGER BUTTON ---- */
.hamburger-btn {
  background: rgba(255,255,255,0.16);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,0.26);
  transform: scale(1.05);
}

/* =========================
   MODAL
========================= */

.modal-content {
  border-radius: 20px;
}

#modal-body img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================
   TABLE
========================= */

table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 0;
}

table img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

table thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 16px;
  border-bottom: none;
}

table tbody tr {
  transition: background 0.15s;
}

table tbody tr:hover {
  background: #f0fdf8 !important;
}

table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  font-size: 14px;
}

.table-responsive {
  border-radius: 16px;
  overflow: hidden;
}

/* admin search bar */
.admin-search .input-group-text,
.admin-search .form-control {
  border-radius: 12px;
  border-color: #dee2e6;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: none;
}
.admin-search .input-group-text {
  border-radius: 12px 0 0 12px;
}

.admin-search .form-control {
  border-radius: 0 12px 12px 0;
}

.admin-search .form-control:focus {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25,135,84,0.1);
}

/* admin action buttons */
.btn-edit-admin {
  background: linear-gradient(135deg, #fff3cd, #ffc107);
  color: #5a3e00;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-edit-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,193,7,0.4);
  color: #3d2900;
}

.btn-delete-admin {
  background: linear-gradient(135deg, #ffe0e0, #f44336);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-delete-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244,67,54,0.4);
}

/* =========================
   BUTTONS
========================= */

.btn {
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(1px) scale(0.95);
}

.btn-success {
  background: #198754;
  border: none;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
}

/* =========================
   NAV ICON
========================= */

.nav-icon {
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-icon:hover {
  color: #198754;
  transform: translateY(-2px);
}

/* =========================
   USER BUTTON
========================= */

.user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 8px 10px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35);
  position: relative;
}

.user-btn::after {
  display: none !important;
}

.user-btn:hover,
.user-btn:focus,
.user-btn:active {
  background: linear-gradient(135deg, #157347 0%, #198754 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.45);
}

.user-btn i {
  font-size: 15px;
  background: rgba(255,255,255,0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-btn-label {
  letter-spacing: 0.2px;
}

/* =========================
   DROPDOWN
========================= */

.user-dropdown {
  border-radius: 20px;
  padding: 10px;
  min-width: 240px;
  border: 1px solid rgba(25,135,84,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
  margin-top: 10px !important;
  animation: dropFadeIn 0.18s ease;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #198754, #20c997);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  color: white;
}

.user-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-greet {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.user-subtext {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.user-menu-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 9px 12px !important;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  transition: 0.2s;
}

.user-menu-item:hover {
  background: #f0fdf8 !important;
  transform: translateX(3px);
  color: #198754;
}

.user-menu-item.text-danger:hover {
  background: #fff5f5 !important;
  color: #c62828 !important;
}

.menu-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* =========================
   CART
========================= */

.cart-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* =========================
   SEARCH
========================= */

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.4s;
  overflow: hidden;
}

.search-input.active {
  width: 220px;
  opacity: 1;
}

/* =========================
   DARK MODE
/* =========================
   DARK MODE
========================= */

body.dark-mode {
  background: #0c1a10;
  color: #dceee0;
}

body.dark-mode .navbar {
  background: rgba(12, 26, 16, 0.97) !important;
  border-bottom-color: rgba(25, 135, 84, 0.25);
}

body.dark-mode .navbar .navbar-nav .nav-link {
  color: #86c99a;
}

body.dark-mode .navbar .navbar-nav .nav-link:hover,
body.dark-mode .navbar .navbar-nav .nav-link.active {
  color: #ffffff;
  background: rgba(25, 135, 84, 0.22);
}

body.dark-mode .card,
body.dark-mode .food-card,
body.dark-mode .category-card,
body.dark-mode .info-box {
  background: #122018 !important;
  color: #dceee0;
  border-color: rgba(25, 135, 84, 0.15);
}

body.dark-mode .food-card {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

body.dark-mode .food-card:hover {
  border-color: #198754;
  box-shadow: 0 15px 30px rgba(25, 135, 84, 0.2) !important;
}

body.dark-mode .bg-white {
  background: #122018 !important;
}

body.dark-mode .modal-content {
  background: #122018;
color: #dceee0;
  border-color: rgba(25, 135, 84, 0.2);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background: #1a2e20;
  color: #dceee0;
  border-color: rgba(25, 135, 84, 0.4);
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background: #1e3327;
  border-color: #198754;
  color: #dceee0;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

body.dark-mode .form-control::placeholder {
  color: #6b9e78;
}

body.dark-mode .combo-section {
  background: linear-gradient(160deg, #0c1f12 0%, #0f2417 50%, #0e1c13 100%);
}

body.dark-mode .combo-card {
  background: #122018;
  border-color: rgba(25, 135, 84, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .combo-card:hover {
  border-color: #198754;
  box-shadow: 0 16px 40px rgba(25, 135, 84, 0.2);
}

body.dark-mode .combo-name {
  color: #dceee0;
}

body.dark-mode .combo-items li {
  color: #8fbf9a;
}

body.dark-mode .combo-old {
  color: #5a7a62;
}

body.dark-mode .filter-bar {
  background: #122018;
  border-color: rgba(25, 135, 84, 0.2);
}

body.dark-mode .filter-pill {
  background: #1a2e20;
  border-color: rgba(25, 135, 84, 0.3);
  color: #86c99a;
}

body.dark-mode .filter-pill:hover {
  background: #1e3a26;
  border-color: #198754;
  color: #ffffff;
}

body.dark-mode .filter-pill.active {
  background: #198754;
  border-color: #198754;
  color: white;
}

body.dark-mode .sort-wrap {
  background: #1a2e20;
  border-color: rgba(25, 135, 84, 0.3);
}

body.dark-mode .sort-select {
  color: #86c99a;
  background: transparent;
}

body.dark-mode .text-dark,
body.dark-mode h1, body.dark-mode h2,
body.dark-mode h3, body.dark-mode h4,
body.dark-mode h5, body.dark-mode h6 {
  color: #dceee0 !important;
}

body.dark-mode .text-muted {
  color: #6b9e78 !important;
}

body.dark-mode .user-dropdown {
  background: #122018;
  border-color: rgba(25, 135, 84, 0.2);
}

body.dark-mode .user-menu-item {
  color: #c0ddc8;
}

body.dark-mode .user-menu-item:hover {
  background: #1a2e20 !important;
  color: #4ade80 !important;
}

body.dark-mode .dropdown-divider {
  border-color: rgba(25, 135, 84, 0.2);
}

body.dark-mode .payment-card {
  background: #1a2e20;
  border-color: rgba(25, 135, 84, 0.25);
  color: #dceee0;
}

body.dark-mode .payment-card:hover,
body.dark-mode .payment-card.active {
  background: #1e3a26;
  border-color: #198754;
}

body.dark-mode .pm-title {
  color: #dceee0;
}

body.dark-mode .pm-sub {
  color: #6b9e78;
}

body.dark-mode #dark-icon {
  color: #4ade80;
}

/* =========================
   CART ITEM
========================= */

.cart-item-row {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.cart-item-row:hover {
  background-color: #f9f9f9;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 40px;
  }
/* Sidebar thành drawer trượt từ trái */
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 260px;
    z-index: 1050;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 8px 0 40px rgba(0,0,0,0.35);
  }

  /* Hiện nút đóng & mobile header */
  .sidebar-close-btn {
    display: flex;
  }

  .admin-mobile-header {
    display: flex;
  }

  .main-content {
    padding: 20px;
  }

  .admin-mobile-header {
    margin: -20px -20px 24px;
  }

  .top-bar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .top-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-logo {
    font-size: 34px;
  }

  .footer-title {
    margin-top: 20px;
    font-size: 26px;
  }

  .admin-stat-card h2 {
    font-size: 28px;
  }
}
