:root {
  --primary: #1E3A8A; /* Navy Blue */
  --primary-light: #3B82F6;
  --bg-color: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
}

body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  background-color: var(--bg-color);
  color: var(--text-main);
  padding-bottom: 90px;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .fw-bold, .fw-500 { font-weight: 600 !important; }
.fw-500 { font-weight: 500 !important; }

.page { display: none !important; padding: 0 !important; animation: fadeIn 0.3s ease; }
.page.active { display: block !important; }
#page-login.active { display: flex !important; height: 100vh; justify-content: center; align-items: center; background: #ffffff; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LOGIN --- */
.card-login {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 380px;
}
.logo-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin: 0 auto;
}
.logo-icon i { width: 32px; height: 32px; }

/* --- HEADER (Sticky & Proporsional) --- */
.header-modern {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
  min-height: 64px; /* Kunci tinggi header agar sama semua */
}

/* Dropdown dalam bentuk Pill/Button ringkas */
.header-select {
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1.5rem 0.35rem 0.75rem;
  border-radius: 8px;
  width: auto;
  cursor: pointer;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Gambar panah custom kecil */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
}
.header-select option {
  background-color: #ffffff;
  color: #000000;
}
.header-select:focus {
  background-color: rgba(255,255,255,0.25);
  outline: none;
}

.badge-soft {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}
.btn-icon-white {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
  padding: 0;
}
.btn-icon-white i { width: 16px; height: 16px; }
.btn-icon-white:hover { background: rgba(255,255,255,0.25); }

/* --- FORMS --- */
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.4rem; margin-left: 0.2rem; }
.form-control, .form-select {
  background-color: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  background-color: #fff;
}

/* --- CARDS & BUTTONS --- */
.btn-primary {
  background-color: var(--primary);
  border: none;
  border-radius: 14px;
  padding: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}
.btn-primary:hover, .btn-primary:active { background-color: #172554; }

.card-product {
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.qty-group {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 4px;
  width: 110px;
  border: 1px solid #E2E8F0;
}
.btn-qty {
  background: #fff;
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.btn-qty i { width: 16px; height: 16px; }
.qty-group input { border: none; background: transparent; font-weight: 600; padding: 0; }

.total-box {
  background: var(--primary);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* --- BOTTOM NAV --- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem 1.25rem 1rem;
  z-index: 1050;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 4px;
  transition: 0.2s;
}
.nav-item i { width: 24px; height: 24px; }
.nav-item.active-nav { color: var(--primary) !important; }
.nav-fab {
  background: var(--primary);
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -30px;
  box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3);
}
.nav-fab i { width: 28px; height: 28px; }

/* --- SUMMARY CARD --- */
.card-summary {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
