
body {
  font-family: Arial, sans-serif;
  flex-direction: column;
  background-color: #ffffff;
  color: #3b2c2c;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
  }


nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #3b2c2c;
}

.order-now {
  background-color: #5c3b24;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
}


.logo-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

.logo-wrapper img {
  max-width: 200px;
  height: auto;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7%;
  background-color: rgba(0, 0, 0, 0.9); /* Lebih pekat */
  border-bottom: 1px solid #513c28;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Tambahan bayangan */
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: #c04c26; /* Ganti var(--primary) dengan warna dominan coffeshop */
}

.navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Jarak antar menu */
}

.navbar .navbar-nav a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 12px;
  border-radius: 8px;
}

.navbar .navbar-nav a:hover {
  background-color: #c04c26;
  color: #fff;
}

/* Default: sembunyikan menu di mobile */

/* Hide hamburger by default (desktop) */
#hamburger-menu {
  display: none;
}


/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #000;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .navbar .navbar-nav.active {
    display: flex;
  }

  .navbar-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  #hamburger-menu {
    display: inline-block;
    cursor: pointer;
  }
}


/* Footer */
footer {
  background-color: #422c1f;
  color: white;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem;
  margin-top: 2rem;
}

footer h4 {
  margin-bottom: 0.5rem;
}

footer a {
  color: white;
  display: block;
  margin-bottom: 0.3rem;
  text-decoration: none;
}

/* Responsive Footer */

@media (max-width: 1024px) {
  footer {
    flex-wrap: wrap;
  }

  .footer-content,
  .footer-links,
  .footer-hours,
  .footer-contact {
    width: 45%; /* 2 kolom */
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .footer-content,
  .footer-links,
  .footer-hours,
  .footer-contact {
    width: 100%; /* 1 kolom */
  }
}


/* RESERVATION FORM*/
.reservation-form {
  background: #fff9e6;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 80px auto 0 auto; /* margin atas 80px */
}

.reservation-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reservation-form input,
.reservation-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.table-status {
  background: #f2e5d7;
  padding: 10px;
  border-radius: 5px;
}

.floor-plan {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.floor-plan .table {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  text-align: center;
  padding-top: 20px;
  font-weight: bold;
  background: #eee;
  color: #333;
}

.floor-plan .available {
  background-color: #b2f5b2;
}

.floor-plan .reserved {
  background-color: #f5b2b2;
}

.btn-primary {
  background-color: #6b3e26;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #55301e;
}

@media (max-width: 768px) {
  .reservation-form {
    padding: 1.5rem;
    margin: 80px 1rem 0 1rem;
  }

  .reservation-form form {
    gap: 12px;
  }

  .reservation-form label {
    font-size: 0.95rem;
  }

  .reservation-form input,
  .reservation-form select {
    font-size: 0.95rem;
    padding: 10px;
  }

  .floor-plan {
    justify-content: center;
  }

  .floor-plan .table {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  .reservation-form {
    padding: 1rem;
    border-radius: 6px;
  }

  .reservation-form h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .table-status,
  .floor-plan .table {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .reservation-form {
    padding: 0.8rem;
    margin: 60px 0.5rem 0 0.5rem;
  }

  .reservation-form input,
  .reservation-form select {
    font-size: 0.9rem;
    padding: 5px;
  }


  .reservation-form h2 {
    font-size: 1.2rem;
  }
}





/* Hero Section */
.hero {
  background-color: #1e120e;
  color: white;
  text-align: center;
  padding: 100px 20px;
}


/* Logo */
.hero-logo {
  width: 300px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tombol Wrapper */
.hero .buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* Gaya Tombol Umum */
.hero .buttons button,
.hero .buttons .btn-link {
  background-color: #5c4033;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  text-decoration: none; /* Hilangkan underline */
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 160px;
  text-align: center;
  display: inline-block;
}

/* Hover Effect */
.hero .buttons button:hover,
.hero .buttons .btn-link:hover {
  background-color: #7a523d;
}

/* Responsif */
@media (max-width: 600px) {
  .hero-logo {
    width: 180px;
    max-width: 80%;
  }

  .hero .buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero .buttons button,
  .hero .buttons .btn-link {
    width: 100%;
    max-width: 250px;
  }
}

.hero .buttons a.btn-link {
  background-color: #5c4033;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 160px;
  text-align: center;
  display: inline-block;
}

.hero .buttons a.btn-link:hover {
  background-color: #7a523d;
  color: white;
}

.buttons {
  display: flex;
  gap: 20px;
}

.buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.buttons button:hover {
  background-color: #555;
}


/*logout*/
.btn-logout {
  background-color: #e63946;
  color: white;
  padding: 6px 14px;
  border-radius: 5px;
  margin-left: 12px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #d62828;
}

.username {
  color: white;
  margin-right: 10px;
  font-size: 14px;
}


/*menu section*/
.menu {
  padding: 40px 20px;
  background-color: #fdfbeb;
}

.menu-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap; /* <== INI PENTING */
}

.menu-row::-webkit-scrollbar {
  display: none;
}

.menu-row {
  scrollbar-width: none; /* Firefox */
}


.menu-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.3s ease;
}


.menu-card:hover {
  transform: scale(1.05);
}

.menu-card img {
  width: 100%;
  height: 260px; /* Ukuran tinggi gambar diperbesar */
  border-radius: 20px;
  object-fit: cover;
}


.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.menu-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}


/* Buttons */
.btn-primary {
  background-color: #5c4033;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none; /* HILANGKAN UNDERLINE */
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-secondary {
  background-color: #eaeaea;
  color: #444;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
}

/* Services Section */
.services {
  padding: 20px;
  background: linear-gradient(to bottom, #fdf9f3 0%, #f7efe3 100%);
  text-align: center;
  position: relative;
  overflow-x: auto; /* agar bisa di-scroll horizontal jika melebar */
  overflow-y: visible; /* penting agar tidak terpotong vertikal */
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #3e2c1c;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
}

.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.card {
  background: linear-gradient(to bottom right, #ffffff, #fef7ef);
  padding: 18px;
  border-radius: 20px;
  width: 300px;
  border: 1px solid #e4d7c5;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Tambahkan baris ini: */
  box-shadow: none;
  transition: transform 0.3s ease;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4e3522;
}

.card p {
  font-size: 1rem;
  color: #6e5a48;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.card a.btn-primary {
  background-color: #a8461e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(168, 70, 30, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card a.btn-primary:hover {
  background-color: #873816;
  box-shadow: 0 6px 14px rgba(135, 56, 22, 0.4);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
}

.service-slider-container {
  overflow-x: auto;
  padding-bottom: 10px;
}

.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}



/*TABLE*/


.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.table-box.warning {
    background-color: #fff3cd; /* Kuning terang */
    border: 1px solid #ffeeba;
}

.table-box.expired {
    background-color: #f8d7da; /* Merah terang */
    border: 1px solid #f5c6cb;
}


.status {
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.green { background-color: #d4edda; color: #155724; }
.red { background-color: #f8d7da; color: #721c24; }
.blue { background-color: #d1ecf1; color: #0c5460; }
.yellow { background-color: #fff3cd; color: #856404; }
.gray { background-color: #e2e3e5; color: #383d41; }

/* Default grid */
.table-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

/* 2 kolom saat layar di bawah 768px */
@media (max-width: 768px) {
  .table-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* 1 kolom saat layar di bawah 480px */
@media (max-width: 480px) {
  .table-container {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Menu Cards */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f7f4;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff6ec;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #5b3e2b;
}

.order-now {
  background-color: #5b3e2b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.menu-section {
  padding: 2rem;
  text-align: center;
}

.menu-filters {
  margin: 1rem 0;
}

.filter-btn {
  margin: 0.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background-color: #eee;
  cursor: pointer;
  border-radius: 5px;
}

.menu-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.menu-card {
  width: 280px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.menu-info {
  text-align: center;
}

.menu-info h3 {
  margin: 0.5rem 0;
}

.menu-info p {
  margin: 0.3rem 0;
}

.price {
  font-weight: bold;
  color: #333;
}

.quantity-control {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
}



/* BUTTON ADD TO CART */
.quantity-control button {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background-color: #ddd;
  border: none;
  cursor: pointer;
}

.add-to-cart {
  background-color: #5b3e2b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  text-decoration: none;
} /* BUTTON ADDTO CART */

.floor-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.table-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 80px;
}

.table-btn small {
  font-size: 12px;
  margin-top: 5px;
}

.table-btn.available {
  background-color: #a8e6cf; /* Warna hijau muda */
  color: #1b4332;
}

.table-btn.reserved {
  background-color: #ffaaa5; /* Warna merah muda */
  color: #9d0208;
  cursor: not-allowed;
}

.table-btn.available:hover {
  background-color: #8ed1bd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-btn.available:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-btn.selected {
  background-color: #ffcc5c; /* Warna kuning untuk meja yang dipilih */
  border: 2px solid #ff9500;
  color: #000;
}


.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-icon img {
  width: 32px;
  height: 32px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: white;
  font-weight: bold;
  text-transform: capitalize;
}
.badge.paid {
  background-color: #4caf50; /* Hijau */
}
.badge.pending {
  background-color: #ffc107; /* Kuning */
}
.badge.cancelled {
  background-color: #f44336; /* Merah */
}


.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-icon img {
  width: 30px;
  height: 30px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 50%;
}

/* Overlay Background */
.cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: flex-end;
  z-index: 9999; /* pastikan lebih tinggi dari navbar */
}

/* Cart Sidebar */
.cart-popup {
  width: 320px;
  background: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

/* Close button */
.cart-close-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Item list */
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.item-img {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  margin-right: 10px;
  object-fit: cover;
}

.item-info {
  flex-grow: 1;
}

.item-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.item-price {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.item-qty {
  display: flex;
  gap: 5px;
  align-items: center;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.item-delete {
  background: none;
  border: none;
  font-size: 18px;
  color: #777;
  cursor: pointer;
}

/* Footer */
.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.btn-checkout {
  width: 100%;
  padding: 10px;
  background: #4caf50;
  border: none;
  color: white;
  margin-bottom: 10px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.btn-clear {
  width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.about-section {
  padding: 40px 60px;
  margin: 40px auto;
  background-color: #f9f9f9;
  max-width: 1000px; /* opsional biar ga terlalu lebar */
  line-height: 1.8;
  border-radius: 10px; /* opsional buat sudut agak membulat */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* opsional buat efek elegan */
}

.checkout-form-container {
  max-width: 600px;
  margin: 120px auto 40px auto;
  background-color: #fffdf7;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #5c3b24;
}

.checkout-form label {
  font-weight: 600;
  margin-top: 1rem;
  color: #3b2c2c;
}

.checkout-form input {
  width: 100%;
  padding: 10px;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.checkout-form button.btn-primarys {
  margin-top: 1.5rem;
  width: 100%;
  font-size: 1rem;
}

.error-message {
  color: red;
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

.success-message {
  color: green;
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

/* ====== ORDER CONFIRMATION STYLE ====== */

.confirmation-container {
  max-width: 720px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.confirmation-container h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.confirmation-container > p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #222;
  text-align: left;
}

.details-box {
  background-color: #f8f8f8;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-left: 5px solid #007B8A;
  border-radius: 5px;
}

.details-box h4 {
  /*margin-bottom: 8px;*/
  color: #333;
  font-weight: bold;
}

.details-box p,
.details-box ul {
  margin: 4px 0;
  font-size: 15px;
  color: #333;
}

.details-box ul {
  padding-left: 20px;
}

.confirmation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
}

.confirmation-table th,
.confirmation-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.confirmation-table th {
  background-color: #007B8A;
  color: white;
}

.total {
  text-align: right;
  font-weight: bold;
  margin-top: 20px;
  font-size: 17px;
  color: #222;
}

.btn-pay {
  display: block;
  margin: 25px auto 0;
  background-color: #8cc63f;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn-pay:hover {
  background-color: #7cb531;
}

/* Modal Overlay */

.modal {
 display:none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);

  /* Supaya posisi tengah, kita buat flex lewat class tambahan */
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
}


.modal-content {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
}


/* Close button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal-content {
  border: 2px solid rgb(110, 124, 0);
}

/* ====== DASHBOARD LAYOUT STYLE ====== */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #fffaf5, #f9f6f2);
  color: #333;
}

.header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #ddc0a2;
}

.nav a {
  margin-right: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav .order-btn {
  background-color: #5c3d2e;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.container {
  flex: 1; /* ini yang penting */
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
  margin-top: 60px;
  margin-bottom: 20px;
}


.container-tabmenu {
  margin: 0 auto;
  padding: 0 20px;

}

.dashboard-title {
  margin-bottom: 20px;
}

.cards_dash {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.card_dash {
  flex: 1 1 calc(25% - 20px); /* 4 kolom */
  background: linear-gradient(to right, #fff9f0, #fef5ed);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card_dash:hover {
  transform: translateY(-4px);
}

.card_dash h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.card_dash .amount {
  font-size: 20px;
  font-weight: bold;
  color: #222;
}
.change.up {
  color: green;
  font-weight: bold;
}

.change.down {
  color: red;
  font-weight: bold;
}

.change.neutral {
  color: gray;
  font-weight: bold;
}


.recent-orders {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.recent-orders h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.recent-orders table {
  width: 100%;
  border-collapse: collapse;
}

.recent-orders table th,
.recent-orders table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  text-align: left;
}

.recent-orders table th {
  background-color: #f5f5f5;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  display: inline-block;
  text-transform: capitalize;
}

.badge.pending {
  background-color: #f39c12;
}

.badge.ready {
  background-color: #27ae60;
}

.badge.served {
  background-color: #9b59b6;
}

.badge.completed {
  background-color: #3498db;
}

/*.charts {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.chart-box {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
*/

.charts { 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: 30px; 
  margin-bottom: 30px;
}

.chart-box { 
  flex: 1; 
  background: white; 
  padding: 20px; 
  border-radius: 10px; 
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.charts-bar { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  margin-top: 30px; 
  margin-bottom: 30px;
  justify-content: space-between;
}

/* Default lebar: 2 kolom */
.charts-bar-2 .chart-box {
  width: 48%;
}

/* Untuk 4 kolom */
.charts-bar-4 .chart-box {
  width: 24%;
}

.chart-bar-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.pagination {
  margin-top: 15px;
  text-align: center;
}
.pagination a {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination a.active {
  background-color: #6d4c41;
  color: white;
  font-weight: bold;
}


/* Responsive: 2 kolom di layar kecil */
@media screen and (max-width: 900px) {
  .charts-bar-4 .chart-bar-box,
  .charts-bar-2 .chart-bar-box {
    width: 48%;
  }
}

/* HP: 1 kolom semua */
@media screen and (max-width: 500px) {
  .charts-bar-4 .chart-bar-box,
  .charts-bar-2 .chart-bar-box {
    width: 100%;
  }
}

.card_dash {
  flex: 1 1 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertikal */
  align-items: center;     /* Horizontal */
  text-align: center;
}

.card_dash .amount { 
  font-size: 24px; 
  margin-top: 10px; 
}

.chart-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.card_dash .label {
  font-size: 16px;
  color: #555;
}

.card_dash .amount {
  font-size: 24px;
  font-weight: bold;
  margin-top: 8px;
  color: #000;
}


/*MASTER MENU*/
.header-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #4b2e2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-menu {
  display: flex;
  border-radius: 8px;
  background-color: #e6dfd6;
  overflow: hidden;
  margin-bottom: 30px;
}

.tab-menu button {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  font-weight: bold;
  cursor: pointer;
  color: #4b2e2e;
  transition: background-color 0.3s;
}

.tab-menu button.active,
.tab-menu button:hover {
  background-color: #d2c5ba;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #3b2c2c;
}


.menu-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.menu-table th,
.menu-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.menu-table th {
  background-color: #f3f0ec;
  color: #3b3b3b;
  font-size: 15px;
}

.menu-table td {
  font-size: 14px;
  color: #444;
}

.menu-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.price-cell {
  white-space: nowrap;
  text-align: right;
}

.actions a {
  color: inherit;           /* Gunakan warna teks induk (tidak biru) */
  text-decoration: none;    /* Hilangkan underline */
  font-size: 16px;
  padding: 4px;
}

.actions a:hover {
  color: #6b4f2e;           /* Warna saat hover (opsional) */
}


.actions button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.actions .edit {
  color: #007B8A;
}

.actions .delete {
  color: #E53935;
}

.add-btn {
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #6b4f2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.add-btn:hover {
  background-color: #5b4123;
}


.modal-edit-table {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
    }
    .modal-edit-content {
      background-color: #fff;
      margin: 80px auto;
      padding :40px;
      padding-right: 50px;
      border-radius: 10px;
      max-width: 400px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .modal-edit-title {
      font-size: 22px;
      font-weight: bold;
      margin-bottom: 20px;
      color: #4b2e2e;
    }
    .modal-edit-table label {
      display: block;
      margin: 10px 0 6px;
      font-weight: bold;
      color: #333;
    }
    .modal-edit-table input[type="text"],
    .modal-edit-table input[type="number"],
    .modal-edit-table select {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }
    .modal-edit-actions {
      margin-top: 20px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 10px;
    }
    .modal-edit-save-btn {
      background-color: #6b4f2e;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
    }
    .modal-edit-save-btn:hover {
      background-color: #5b4123;
    }
    .modal-edit-cancel-link {
      color: #6b4f2e;
      font-weight: bold;
      text-decoration: none;
    }
    .modal-edit-close {
      float: right;
      font-size: 22px;
      cursor: pointer;
      margin-top: -10px;
      margin-right: -10px;
    }

.modal-edit-reservation {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding :40px;
  padding-right: 50px;
  margin: 80px auto;
}

.modal-edit-reservation-content {
  background-color: #fff;
  margin: auto;
  padding: 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-edit-reservation-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #4b2e2e;
  text-align: center;
}

.modal-edit-reservation-content label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  color: #333;
}

.modal-edit-reservation-content input,
.modal-edit-reservation-content select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-edit-reservation-actions {
  margin-top: 20px;
  text-align: right;
}

.modal-edit-reservation-save-btn {
  background-color: #6b4f2e;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.modal-edit-reservation-save-btn:hover {
  background-color: #5b4123;
}

.modal-edit-reservation-cancel-link {
  margin-left: 10px;
  color: #6b4f2e;
  font-weight: bold;
  text-decoration: none;
}

.modal-edit-reservation-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}
.modal-edit-reservation-close:hover {
  color: #333;
}

.export-btn {
  background-color: #4CAF50;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none; /* HILANGKAN GARIS BAWAH */
  display: inline-block;
  font-weight: bold;
}

.unduh_btn {
  text-decoration: none;
  color: #0400ff; /* Atau warna sesuai kebutuhan seperti #000 */
}


/*Revenue Dashboard*/
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  display: none;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
}

.detail-button {
  margin-top: 10px;
  background: #2196F3;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.detail-button:hover {
  background: #1976D2;
}

.modal-content .close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.modal-content th, .modal-content td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.modal-content th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.modal-content tr:nth-child(even) {
  background-color: #fafafa;
}

.modal-content tr:hover {
  background-color: #f0f0f0;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}



  .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
  }

  .filter-form label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
  }

  .filter-form input[type="date"],
  .filter-form select {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 180px;
    margin-top: 5px;
  }

  @media (max-width: 600px) {
    .filter-form {
      flex-direction: column;
      align-items: flex-start;
    }
    .filter-form label {
      width: 100%;
    }
  }
  
.order-card {
  border: 2px solid #ccc;
  border-left: 5px solid #6b4f2e;
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Background berdasarkan status makanan */
.order-card.pending { background-color: #fff5e6; }
.order-card.in_progress { background-color: #e6f0ff; }
.order-card.ready { background-color: #e6ffe6; }
.order-card.served { background-color: #f4f4f4; }

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.order-info {
  font-weight: bold;
  font-size: 16px;
}



.dashboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-actions .export-btn {
  background-color:  #4CAF50;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dashboard-actions .export-btn:hover {
  background-color: #5a3e34;
}

.dashboard-actions input[type="date"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}


.badge.highlight {
  background-color: #d9534f;
  color: white;
  margin-left: 10px;
}
