/* Halo Warga - Custom Styles */

* { -webkit-tap-highlight-color: transparent; }

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.page {
  animation: fadeIn 0.25s ease;
}

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

.card-hover { transition: all 0.2s ease; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08);
}

/* ===== Floating Rounded Bottom Navigation ===== */
.float-bottom-nav {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 16px;
  transition: all 0.2s ease;
  color: #94a3b8;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-item.active {
  color: #2563eb;
}

.nav-item.active i {
  transform: scale(1.08);
}

.nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

/* Desktop menu */
.desk-nav-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.desk-nav-item:hover { background: #f1f5f9; color: #2563eb; }
.desk-nav-item.active { background: #eff6ff; color: #1d4ed8; }

/* Progress bar */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

@keyframes panic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
}
.animate-panic { animation: panic-pulse 1.5s infinite; }

.modal { animation: modalFade 0.2s ease; }
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

input:focus, select:focus, textarea:focus { outline: none; }

/* Menu grid item */
.menu-grid-item {
  transition: all 0.2s ease;
}
.menu-grid-item:active {
  transform: scale(0.95);
}
