/* ================================================================
   PT. MITRA SOLUTION GROUP - DESIGN SYSTEM
   Pattern: Putih, Biru, dan Orange Sesuai Logo Resmi
   Typography: Inter Font Family
   ================================================================ */

:root {
  /* Official Logo Color Pattern (Putih, Deep Corporate Blue, Vibrant Orange) */
  --primary: #0a3d7d;
  --primary-hover: #072e61;
  --primary-dark: #051f44;
  --primary-light: #eaf2fb;
  --primary-glow: rgba(10, 61, 125, 0.22);
  
  --accent: #f58220;
  --accent-hover: #d96e11;
  --accent-dark: #b85700;
  --accent-light: #fff5eb;
  --accent-glow: rgba(245, 130, 32, 0.25);
  
  --secondary: #0a3d7d;
  --secondary-light: #f8fafc;
  
  --success: #10b981;
  --success-dark: #059669;
  --success-light: #ecfdf5;
  
  --warning: #f58220;
  --warning-dark: #d96e11;
  --warning-light: #fff5eb;
  
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --danger-light: #fef2f2;
  
  --dark-950: #04142b;
  --dark-900: #071e3d;
  --dark-800: #0f2d59;
  --dark-700: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --body-bg: #f8fafc;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.09), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 25px rgba(10, 61, 125, 0.28);
  
  /* TYPOGRAPHY TOKENS: INTER FONT FAMILY */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--dark-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  min-height: 100vh;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

/* EYE-CATCHING HEADINGS & TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 { font-size: 1.95rem; font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.025em; }
h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

p { font-size: 0.95rem; color: var(--dark-700); line-height: 1.6; }
.text-muted { color: var(--muted) !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.85rem !important; }
.text-lg { font-size: 1.15rem !important; }
.text-xl { font-size: 1.35rem !important; }
.text-2xl { font-size: 1.85rem !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }

/* GRADIENT TEXT UTILITIES */
.text-gradient-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* CARDS */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark-900);
}

/* STAT CARDS (EYE-CATCHING METRICS) */
.stat-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--dark-900);
  line-height: 1.05;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning-dark); }
.stat-icon.danger { background: var(--danger-light); color: var(--danger); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #0d47a1 0%, #0a3d7d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 61, 125, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0a3d7d 0%, #072e61 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(10, 61, 125, 0.38);
}

.btn-accent, .btn-orange {
  background: linear-gradient(135deg, #ff8c00 0%, #f58220 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.28);
}
.btn-accent:hover, .btn-orange:hover {
  background: linear-gradient(135deg, #f58220 0%, #d96e11 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.38);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--dark-800);
}
.btn-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--dark-900);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
}

/* BADGES & CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  line-height: 1;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }
.badge-success { background: var(--success-light); color: var(--success-dark); border: 1px solid #a7f3d0; }
.badge-warning { background: var(--warning-light); color: var(--warning-dark); border: 1px solid #fde68a; }
.badge-danger { background: var(--danger-light); color: var(--danger-dark); border: 1px solid #fecaca; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid var(--border); }

/* FORMS */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark-900);
  margin-bottom: 0.45rem;
}
.form-control, .form-select, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark-900);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.68rem 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus, select:focus, textarea:focus, input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-help {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* TABLES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #ffffff;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
table.table th {
  background: #f8fafc;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
table.table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
table.table tr:last-child td {
  border-bottom: none;
}
table.table tr:hover td {
  background: #f8fafc;
}

/* ALERTS & NOTICES */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success { background: var(--success-light); border: 1px solid #a7f3d0; color: #065f46; }
.alert-danger { background: var(--danger-light); border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-light); border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: var(--primary-light); border: 1px solid #bfdbfe; color: #1e40af; }

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.75rem;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* ADMIN LAYOUT */
/* ADMIN LAYOUT */
.admin-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--body-bg);
}
.admin-sidebar {
  width: 260px;
  background: #071e3d;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}
.admin-sidebar-brand {
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.admin-sidebar-menu {
  padding: 1.25rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.admin-sidebar-footer {
  padding: 1rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 15, 33, 0.98);
  flex-shrink: 0;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  transition: var(--transition);
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.admin-nav-item.active {
  background: linear-gradient(135deg, #0d47a1 0%, #0a3d7d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 61, 125, 0.35);
  border-left: 3px solid #f58220;
}
.admin-nav-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  font-weight: 800;
  padding: 1rem 0.95rem 0.4rem;
}
.admin-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background-color: var(--body-bg);
}
.admin-topbar {
  height: 68px;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.admin-main {
  padding: 2rem;
  flex: 1 0 auto;
  background-color: var(--body-bg);
}
.admin-footer {
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
    width: 100%;
  }
  .admin-topbar {
    padding: 0 1rem;
  }
  #sidebarToggleBtn {
    display: inline-flex !important;
  }
  .admin-main {
    padding: 1rem;
  }
  .admin-footer {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
}

/* SALES MOBILE PORTAL LAYOUT */
.sales-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 35px rgba(15, 23, 42, 0.08);
  padding-bottom: 84px;
}
.sales-header {
  background: linear-gradient(135deg, #071e3d 0%, #0a3d7d 55%, #0d47a1 100%);
  color: #ffffff;
  padding: 1.35rem 1.25rem 1.85rem;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  border-bottom: 3.5px solid #f58220;
  position: relative;
  box-shadow: 0 8px 24px rgba(7, 30, 61, 0.28);
}
.sales-body {
  padding: 1.25rem;
  flex: 1;
}

/* MOBILE BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  height: 68px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 0;
  overflow: visible;
}

/* SLIDING ROUND BUTTON TRACK & BUBBLE (TOMBOL BULAT BERGESER) */
.bottom-nav-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.bottom-nav-slider-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d47a1 0%, #0a3d7d 100%);
  box-shadow: 0 6px 16px rgba(10, 61, 125, 0.45);
  border: 3px solid #ffffff;
  margin-top: -12px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 7px;
  color: #64748b;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  width: 20%;
  flex: 1;
  height: 100%;
  position: relative;
  z-index: 2;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* CONTAINER ICON */
.bottom-nav-icon {
  width: 48px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 2px;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: #64748b;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.bottom-nav-item span {
  transition: color 0.25s ease, font-weight 0.25s ease, transform 0.25s ease;
  line-height: 1;
  font-size: 0.72rem;
}

/* HOVER DESKTOP UNTUK ITEM YANG TIDAK AKTIF */
.bottom-nav-item:hover:not(.active) .bottom-nav-icon svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}
.bottom-nav-item:hover:not(.active) span {
  color: var(--primary);
}

/* STATE AKTIF: ICON TERANGKAT KE DALAM TOMBOL BULAT YANG MELAYANG */
.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-12px);
}

.bottom-nav-item.active .bottom-nav-icon svg {
  stroke: #ffffff !important;
  stroke-width: 2.6;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.bottom-nav-item.active span {
  color: var(--primary);
  font-weight: 800;
}

/* TAP / KLIK MICRO-ANIMASI PADA SLIDER BUBBLE */
.bottom-nav-slider.tap-anim .bottom-nav-slider-bubble {
  transform: scale(0.88);
}

/* PROGRESS METERS & PULSE */
.pulse-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* PHOTO UPLOAD & PREVIEW */
.camera-upload-box {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.camera-upload-box:hover {
  border-color: var(--primary);
  background: #eff6ff;
}
.camera-upload-box input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.photo-preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* EYE-CATCHING AUTH LOGIN PAGE */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 85% 15%, rgba(245, 130, 32, 0.12), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(10, 61, 125, 0.12), transparent 50%),
              #f8fafc;
  padding: 1.5rem;
}
.auth-box {
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(226, 232, 240, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 2.35rem;
}
.auth-tabs {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
}
.auth-tab-btn {
  flex: 1 1 0%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0 0.5rem;
  height: 42px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}
.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.auth-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--dark-900);
}

/* RESPONSIVE AUTH STYLES FOR HANDPHONES */
@media (max-width: 480px) {
  .auth-page {
    padding: 1.25rem 0.85rem;
  }
  .auth-box {
    padding: 1.65rem 1.15rem;
    border-radius: 20px;
  }
  .auth-tabs {
    padding: 3px;
    gap: 3px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
  }
  .auth-tab-btn {
    height: 38px;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    gap: 0.28rem;
    border-radius: 7px;
  }
  .auth-tab-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .auth-page {
    padding: 1rem 0.65rem;
  }
  .auth-box {
    padding: 1.35rem 0.95rem;
    border-radius: 16px;
  }
  .auth-tabs {
    padding: 3px;
    gap: 3px;
    border-radius: 9px;
  }
  .auth-tab-btn {
    height: 36px;
    padding: 0 0.2rem;
    font-size: 0.72rem;
    gap: 0.22rem;
    border-radius: 6px;
  }
  .auth-tab-btn svg {
    width: 13px;
    height: 13px;
  }
}

.auth-brand-emblem img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.auth-brand-emblem:hover img {
  transform: scale(1.05) rotate(2deg);
}

/* ENHANCED FORM INPUT FOCUS STATES */
.form-control:focus, .form-select:focus, select:focus, textarea:focus, 
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.16);
  outline: none;
}

/* HIGH-IMPACT DEMO BUTTON HOVER STYLES */
.btn-outline:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* MODERN CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* OFFLINE & AUTO-SYNC BANNERS */
.offline-banner {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: slideDownBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  color: #92400e;
}
.banner-info {
  background: linear-gradient(135deg, #f0f7ff, #e0f2fe);
  border: 1px solid #bae6fd;
  color: #0369a1;
}
@keyframes slideDownBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
