/**
 * ====================================================================
 * SiLaDuMas - Sistem Layanan Pengaduan Masyarakat
 * Style: responsive.css (Mobile First & Breakpoints UI)
 * ====================================================================
 */

/* Mobile Bottom Navigation (Native App Feel) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
  z-index: 1040;
  padding: 8px 18px;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-item-mobile {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  flex: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 4px 0;
}

.nav-item-mobile i {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 3px;
}

.nav-item-mobile.active {
  color: var(--primary-solid);
  font-weight: 700;
}

.nav-item-mobile.active i {
  transform: translateY(-2px);
}

.nav-item-center {
  position: relative;
  top: -24px;
  background: var(--accent);
  color: white !important;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.45);
  margin: 0 auto;
  border: 4px solid var(--light-bg);
  transition: transform var(--transition-fast);
}

.nav-item-center:hover {
  transform: scale(1.05);
}

.nav-item-center i {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.nav-item-center span {
  display: none;
}

/* Mobile Header for Admin */
.mobile-header {
  display: none;
  background: white;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1030;
  display: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#sidebar-overlay.show {
  display: block;
}

/* Media Queries */
@media (max-width: 768px) {
  /* Layout adjustments */
  body {
    padding-bottom: 85px; /* space for bottom nav */
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 280px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
  }

  .sidebar.show {
    left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .admin-body {
    padding: 1.25rem 1rem;
  }

  .table-responsive {
    border: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #tableData {
    font-size: 0.85rem;
    min-width: 640px;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hero-section {
    padding: 60px 0 100px;
    border-radius: 0 0 35% 35% / 25px;
  }

  .hero-logos img {
    width: 90px;
    height: 90px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section .d-flex.justify-content-center {
    display: none !important; /* Bottom nav takes over hero CTAs on mobile */
  }

  .card-form {
    border-radius: 18px;
  }

  .form-header {
    padding: 22px 20px;
  }
}

@media (max-width: 576px) {
  .hero-logos {
    gap: 15px;
  }

  .hero-logos img {
    width: 75px;
    height: 75px;
  }
}
