/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: "Segoe UI", sans-serif;
  background: #f1f5f9;
}

/* NAVBAR */
.navbar {
  background: #ff6b00;
  padding: 15px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h2 {
  font-size: 22px;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

/* CONTAINER */
.container {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* CARD BODY */
.card-body {
  padding: 15px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.price {
  color: #ff6b00;
  font-weight: bold;
  margin-bottom: 10px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #ff6b00;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #e65c00;
}

/* DARK MODE */
body.dark {
  background: #121212;
  color: white;
}

body.dark .card {
  background: #1e1e1e;
}

body.dark .navbar {
  background: #222;
}

body.dark .btn {
  background: #ff8c00;
}

/* TOGGLE BUTTON */
.toggle-dark {
  cursor: pointer;
  background: white;
  color: black;
  padding: 5px 10px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    grid-template-columns: 1fr;
  }
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(229, 150, 4);
  padding: 15px;
  color: white;
}

.navbar a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  height: 90vh;
  background: url("gambar/bg.jpg") center/cover no-repeat;
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.overlay h1 {
  font-size: 50px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* BUTTON */
.btn {
  background: orange;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: darkorange;
}

/* FITUR */
.fitur {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: #f5f5f5;
}

.box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

.fitur {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 50px 20px;
  flex-wrap: wrap;
  background: #f5f5f5;
}

.box {
  background: white;
  padding: 20px;
  width: 220px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.box:hover {
  transform: translateY(-8px);
}

.box img {
  width: 170px;
  margin-bottom: 20px;
}

.box {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  flex-wrap: wrap;
  background: #fff8f0;
}

/* GAMBAR */
.about-img img {
  width: 100%;
  max-width: 280px;
  height: 240px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.about-img img:hover {
  transform: scale(1.05);
}

/* TEKS */
.about-text {
  max-width: 550px;
}

.about-text h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.about-text h3 {
  margin-top: 15px;
  color: orange;
}

body.dark {
  background: #121212;
  color: white;
}

body.dark {
  background: #121212;
  color: #eaeaea;
}

/* SEMUA CARD DI DARK MODE */
body.dark .card,
body.dark .box,
body.dark .menu-item,
body.dark .gal-item,
body.dark .about,
body.dark .about-container {
  background: #1e1e1e;
  color: #eaeaea;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark p {
  color: #eaeaea;
}

body.dark a {
  color: #ffb347;
}

.lokasi {
  padding: 50px 20px;
  text-align: center;
}

.lokasi-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.map,
.info {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info h3 {
  margin-top: 10px;
  color: orange;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  background: green;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
}

body.dark .map,
body.dark .info {
  background: #1e1e1e;
  color: #eaeaea;
}

.promo {
  padding: 50px 20px;
  text-align: center;
}

.promo-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.promo-card {
  background: white;
  width: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.promo-card h3 {
  margin: 10px 0;
}

.promo-card p {
  padding: 0 10px;
}

.promo-card span {
  display: block;
  margin: 10px;
  font-size: 12px;
  color: gray;
}

body.dark .promo-card {
  background: #1e1e1e;
  color: #eaeaea;
}

body.dark .promo-card span {
  color: #ccc;
}

.blog {
  padding: 50px 20px;
  text-align: center;
}

.blog-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.blog-card {
  background: white;
  width: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.blog-card h3 {
  margin: 10px 0;
}

.blog-card p {
  padding: 0 10px;
  font-size: 14px;
}

.blog-card a {
  display: inline-block;
  margin: 10px;
  color: orange;
  text-decoration: none;
  font-weight: bold;
}

body.dark .blog-card {
  background: #1e1e1e;
  color: #eaeaea;
}

body.dark .blog-card a {
  color: #ffb347;
}

.detail-blog {
  max-width: 700px;
  margin: auto;
  padding: 40px 20px;
}

.detail-blog img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

/* CART CONTAINER */
.cart-container {
  max-width: 800px;
  margin: auto;
  padding: 30px 20px;
}

/* CARD ITEM */
.cart-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* INFO */
.cart-info h3 {
  margin: 0;
}

.cart-info p {
  margin: 3px 0;
}

/* HAPUS BUTTON */
.btn-hapus {
  background: red;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

/* TOTAL */
.cart-total {
  text-align: right;
  margin-top: 20px;
}

.btn-checkout {
  display: inline-block;
  margin-top: 10px;
  background: green;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
}

/* EMPTY */
.empty-cart {
  text-align: center;
  padding: 50px;
}

/* BUTTON GENERAL */
.btn {
  background: orange;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
}

body.dark .cart-card {
  background: #1e1e1e;
  color: #eaeaea;
}

.cart-card p a {
  display: inline-block;
  padding: 3px 8px;
  background: orange;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 5px;
}

.cart-card p a:hover {
  background: darkorange;
}

.checkout-container {
  max-width: 1000px;
  margin: auto;
  padding: 30px 20px;
}

.checkout-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* LEFT */
.checkout-left {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RIGHT */
.checkout-right {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ITEM */
.checkout-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* FORM */
.checkout-right input,
.checkout-right textarea,
.checkout-right select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* BUTTON */
.btn-checkout-full {
  width: 100%;
  background: green;
  color: white;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.btn-checkout-full:hover {
  background: darkgreen;
}

body.dark .checkout-left,
body.dark .checkout-right {
  background: #1e1e1e;
  color: #eaeaea;
}

body.dark .checkout-item {
  border-color: #333;
}

.success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.success-card {
  background: white;
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
}

.success-icon {
  font-size: 50px;
}

.success-card h2 {
  color: green;
  margin: 10px 0;
}

.success-info {
  margin: 15px 0;
  text-align: left;
}

/* DARK MODE */
body.dark .success-card {
  background: #1e1e1e;
  color: #eaeaea;
}

/* LOGIN BACKGROUND */
.login-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff9a3c, #ff5e62);
}

/* CARD LOGIN */
.login-card {
  background: white;
  padding: 30px;
  width: 320px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* INPUT */
.login-card input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* BUTTON */
.login-card button {
  width: 100%;
  padding: 10px;
  background: orange;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.login-card button:hover {
  background: darkorange;
}

body.dark .login-card {
  background: #1e1e1e;
  color: #eaeaea;
}

body.dark .login-card input {
  background: #333;
  color: white;
  border: 1px solid #555;
}

.login-card {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-card {
  animation: pop 0.4s ease;
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Admin */
.admin-container {
  padding: 30px;
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.menu-card {
  background: orange;
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.menu-card:hover {
  background: darkorange;
  transform: scale(1.05);
}

/* ADMIN WRAPPER */
.admin-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* GRID FIX */
.pesanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

/* CARD FIX */
.pesanan-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* STATUS */
.status {
  padding: 5px 10px;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  display: inline-block;
  width: fit-content;
}

.menunggu {
  background: orange;
}

.diproses {
  background: dodgerblue;
}

.selesai {
  background: green;
}

/* AKSI BUTTON */
.aksi {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-small,
.btn-blue,
.btn-green {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
}

.btn-small {
  background: gray;
}
.btn-blue {
  background: dodgerblue;
}
.btn-green {
  background: green;
}

.detail-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
}

.produk-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
