/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  --orange: #ff5e00;
  --orange-light: #ff843d;
  --orange-pale: #fff2ea;
  --dark-slate: #0f172a;
  --text-muted: #64748b;
  --font-main: "Poppins", sans-serif;
  --primary: #ff5e00;
  --primary-light: #ff843d;
  --text-dark: #0f172a;
  --surface: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 0px !important;
  font-family: var(--font-main);
  color: var(--dark-slate);
  background-color: var(--bg);
  padding: 0;
  margin: 0;
}

body:has(.bottom-nav) {
  padding-bottom: 75px !important;
}

* { box-sizing: border-box; }

.row {
  --bs-gutter-x: 1.5rem;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* ==========================================================================
   TYPOGRAPHY & COLOR UTILITIES
   ========================================================================== */
.text-orange { color: var(--orange) !important; }
.bg-orange-pale { background-color: var(--orange-pale) !important; }

.text-brand-custom {
  color: var(--orange) !important;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-login-custom {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-login-custom:hover {
  background-color: var(--orange);
  color: #ffffff;
}

.btn-primary-custom {
  background-color: var(--orange);
  color: #ffffff;
  border: none;
  transition: background-color 0.25s ease;
}
.btn-primary-custom:hover {
  background-color: var(--orange-light);
  color: #ffffff;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  border: none !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   MENU CARD IMAGE
   ========================================================================== */
.img-menu {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ==========================================================================
   BADGE & ICONS
   ========================================================================== */
.badge-hero {
  background-color: var(--orange-pale);
  color: var(--orange);
}

.icon-box {
  background-color: var(--orange-pale);
  color: var(--orange);
  width: fit-content;
}

.step-number {
  background-color: var(--dark-slate);
  color: #ffffff;
  width: 44px;
  height: 44px;
}

.avatar-placeholder {
  background-color: #cbd5e1;
  color: var(--dark-slate);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* kedut kedut pesanan baru */
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.badge-pulse {
  animation: pulse-badge 1.5s infinite;
  display: inline-block;
}

/* ==========================================================================
   LANDING PAGE SECTIONS
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.08), transparent 55%), #ffffff;
  padding: 100px 0 80px 0;
}
.hero-title {
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.25;
  color: var(--dark-slate);
}
.hero-title span { color: var(--orange); }
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 550px;
}

.visual-frame {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  height: 320px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
}

.footer-section {
  background-color: #111827;
  color: #ffffff;
}
.footer-section a { transition: color 0.2s ease; }
.footer-section a:hover { color: var(--orange) !important; }

/* ==========================================================================
   PAGES - SHARED COMPONENTS
   ========================================================================== */
.nav-pills .nav-link.active {
  background-color: var(--dark-slate) !important;
  color: white !important;
}
.nav-pills .nav-link { color: var(--text-muted); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1030;
}
.bottom-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
}
.bottom-nav a i {
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.bottom-nav a.active { color: var(--orange); }

.sticky-top {
  border-bottom: 1px solid #e2e8f0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
}

.bottom-nav .position-absolute {
  top: -5px;
  right: -8px;
  background-color: var(--orange) !important;
  font-size: 0.65rem;
  padding: 3px 6px;
}

.form-control:focus,
.form-check-input:checked {
  border-color: var(--orange-light);
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}
.form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

/* ==========================================================================
   BANNER PROMO
   ========================================================================== */
.banner-promo {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9a4d 100%);
  border-radius: 1rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.banner-promo::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.banner-promo::before {
  content: '';
  position: absolute;
  right: 30px;
  bottom: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

/* ==========================================================================
   STATUS BADGE COLORS
   ========================================================================== */
.status-diproses {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}
.status-selesai {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.status-ditolak {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.status-baru {
  background-color: var(--orange-pale);
  color: var(--orange);
  border: 1px solid #ffdec9;
}

/* ==========================================================================
   TEXTAREA CATATAN
   ========================================================================== */
.textarea-catatan {
  resize: none;
  font-size: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: #f8fafc;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.textarea-catatan:focus {
  border-color: var(--orange-light);
  box-shadow: 0 0 0 0.2rem rgba(255, 94, 0, 0.15);
  background-color: #fff;
  outline: none;
}

/* ==========================================================================
   COUNTDOWN TIMER (proses.html)
   ========================================================================== */
.timer-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 1rem;
  color: #fff;
  padding: 16px;
  text-align: center;
}
.timer-digits {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: var(--orange);
}

/* ==========================================================================
   ROLE BUTTON LOGIN
   ========================================================================== */
.role-btn {
  background-color: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.role-btn.active {
  background-color: var(--dark-slate) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   DASHED BORDER
   ========================================================================== */
.border-dashed {
  border-style: dashed !important;
}

/* ==========================================================================
   FILTER TABS
   ========================================================================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 99px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--dark-slate);
  color: #fff;
  border-color: var(--dark-slate);
}

/* ==========================================================================
   MODAL IMPROVEMENTS
   ========================================================================== */
.modal-content {
  border-radius: 1.25rem !important;
}
.modal-backdrop.show { backdrop-filter: blur(2px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 768px) {
  .hero-section {
    padding: 60px 0 40px 0;
    text-align: center;
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { margin: 0 auto 20px auto; }
  .container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    overflow-x: hidden;
  }
  .img-menu { height: 110px; }
}

@media screen and (max-width: 480px) {
  .card-body { padding: 12px !important; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 0.95rem; }
}
