/* ============================================================
   PORTAL ASPIRASI & POKOK PIKIRAN (POKIR) DPRK MAYBRAT
   Gaya Responsif untuk Ponsel (Mobile), Tablet & Desktop
   ============================================================ */

/* Tombol Hamburger di Top Navbar (Hanya muncul di Mobile/Tablet) */
.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-navy);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 12px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 48, 0.75);
  backdrop-filter: blur(4px);
  z-index: 980;
}

/* Breakpoint: Layar Sedang & Laptop Kecil (Max 1200px) */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint: Tablet & iPad (Max 992px) */
@media (max-width: 992px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.5);
  }

  .app-sidebar.show {
    transform: translateX(0);
  }

  .mobile-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .navbar-search {
    display: none; /* Disembunyikan atau dipindah ke drawer di mobile */
  }

  .login-page-wrapper {
    flex-direction: column;
  }

  .login-left-hero {
    min-height: 280px;
    padding: 24px;
  }

  .login-right-form-pane {
    max-width: 100%;
    padding: 30px 20px;
  }

  .wizard-stepper {
    padding: 0 10px;
  }

  .wizard-stepper::before {
    left: 20px;
    right: 20px;
  }
}

/* Breakpoint: Ponsel Pintar / HP (Max 640px) */
@media (max-width: 640px) {
  .top-navbar {
    padding: 0 14px;
    height: 60px;
  }

  .brand-text h1 {
    font-size: 0.95rem;
  }

  .brand-text p {
    display: none;
  }

  .user-info {
    display: none;
  }

  .main-content {
    margin-top: 60px;
    padding: 16px 12px;
  }

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px 18px;
  }

  .stat-info .stat-number {
    font-size: 1.8rem;
  }

  .wizard-stepper {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    gap: 20px;
  }

  .wizard-stepper::before {
    display: none;
  }

  .step-label {
    font-size: 0.72rem;
  }

  .white-container {
    padding: 16px 12px;
  }

  .filter-card {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-card .search-box, .filter-card select, .filter-card .btn {
    width: 100%;
  }

  .detail-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .hero-emblem-img {
    width: 100px;
    height: 100px;
  }

  .hero-emblem-container h2 {
    font-size: 1.3rem;
  }
}
