body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: #f8fafc;
}

.sidebar {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  z-index: 40;
}

.sidebar.open {
  transform: translateX(0);
}

.overlay {
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 35;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 50;
  max-height: 85vh;
  overflow-y: auto;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.float-cart {
  position: fixed;
  bottom: 28px;
  right: 20px;
  background-color: #074B88;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s;
}

.float-cart span {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: white;
  color: #1e293b;
  font-weight: bold;
  font-size: 14px;
  border-radius: 30px;
  padding: 2px 8px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.float-cart:hover {
  transform: scale(1.05);
  background-color: #074B88;
}

.tab-active {
  background-color: black;
  color: white;
  border-color: #074B88;
}

.menu-card {
  transition: transform 0.1s ease, box-shadow 0.2s;
}

.menu-card:active {
  transform: scale(0.98);
}

html {
  scroll-behavior: smooth;
}


.toast-success {
  background-color: #51A351 !important;
  color: #fff !important;
}

.toast-error {
  background-color: #BD362F !important;
  color: #fff !important;
}

.toast-warning {
  background-color: #F89406 !important;
  color: #fff !important;
}

.toast-info {
  background-color: #2F96B4 !important;
  color: #fff !important;
}

.toast-message {
  color: #fff !important;
}

.modal-content {
  border: none;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(0px);
  box-shadow: 0 35px 68px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  padding: 1.4rem 1.8rem;
}

.modal-title {
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #1F2A48, #2C3E66);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.modal-title i {
  background: none;
  color: #074B88;
  margin-right: 8px;
}

.btn-close {
  transition: 0.2s;
  opacity: 0.7;
}

.btn-close:focus {
  box-shadow: none;
}

/* area cart list dengan scroll lembut */
.modal-body {
  padding: 1.2rem 1.8rem;
  max-height: 65vh;
  overflow-y: auto;
  background: #fefefe;
  scrollbar-width: thin;
}

/* custom scroll */
.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* item card style simple & elegan */
.cart-item {
  background: white;
  border-radius: 28px;
  padding: 1rem 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.item-img {
  width: 64px;
  height: 64px;
  background: #f1f5f9;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #3b82f6;
}

.item-details h6 {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #0f172a;
}

.item-price {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.item-price small {
  font-weight: 400;
  color: #5b6e8c;
  font-size: 0.75rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 5px 12px;
  border-radius: 48px;
}

.qty-btn {
  background: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 40px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: #334155;
}

.qty-btn:hover {
  background: #eef2ff;
  color: #2563eb;
}

.qty-num {
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  font-size: 1rem;
}

.item-subtotal {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f3b5c;
}

.remove-item {
  color: #94a3b8;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  transition: 0.2s;
  width: 36px;
  height: 36px;
  border-radius: 40px;
}

.remove-item:hover {
  background: #fee2e2;
  color: #074B88;
  transform: scale(1.03);
}

/* Empty state */
.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-cart p {
  color: #5b6e8c;
  font-weight: 500;
}

/* Footer styling */
.modal-footer {
  background: white;
  border-top: 1px solid #edf2f7;
  padding: 1.2rem 1.8rem;
  align-items: center;
}

/* floating cart button (di dalam footer, sebelah kiri) */
.float-cart {
  background: linear-gradient(125deg, #1e293b, #0f172a);
  border-radius: 100px;
  padding: 0.55rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  cursor: pointer;
}

.float-cart i {
  font-size: 1.4rem;
  color: #facc15;
}

.float-cart span {
  background: #074B88;
  color: white;
  font-weight: 700;
  border-radius: 60px;
  padding: 2px 10px;
  font-size: 0.85rem;
  min-width: 28px;
  text-align: center;
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  color: #334155;
  border-radius: 40px;
  padding: 8px 20px;
  font-weight: 500;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-primary {
  background: linear-gradient(95deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 40px;
  padding: 8px 28px;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
  transition: 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
  background: linear-gradient(95deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* ringkasan kecil di footer optional */
.cart-summary-text {
  font-size: 0.85rem;
  font-weight: 500;
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 40px;
  color: #1e293b;
}

@media (max-width: 576px) {
  .cart-item .row {
    flex-direction: column;
    gap: 12px;
  }

  .item-img {
    width: 52px;
    height: 52px;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.animate-scale {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}