/*
 * ============================================
 * UbahPulsa — Layout Styles
 * Mobile container, page header, bottom nav,
 * footer (desktop), header/navbar overrides
 * ============================================
 */

/* ===== Mobile Container ===== */
.mobile-container {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  background: var(--color-surface);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .mobile-container {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  }
}

/* ===== Page Header (Riwayat, etc.) ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 0.85rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.page-back:active {
  background: #e3ecf8;
}

.page-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  flex: 1;
  text-align: center;
}

.page-header-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* ===== Bottom Navigation (Mobile) ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #e3ecf8;
  z-index: 100;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }
}

.bottom-nav .nav-item.active {
  color: var(--color-primary-500);
}

.bottom-nav .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary-500);
}

/* ===== Footer (Desktop Only) ===== */
@media (max-width: 768px) {
  .site-footer {
    display: none;
  }
}

/* ===== Navbar Responsiveness Overrides ===== */
@media (min-width: 993px) {
  .navbar .btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-md) !important;
    height: auto !important;
  }
  .nav-menu {
    gap: 20px !important;
  }
  .nav-link {
    font-size: 0.9rem !important;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .nav-menu {
    gap: 12px !important;
  }
  .navbar .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  .logo {
    font-size: 1.3rem !important;
  }
}
