/* ==========================================================================
   CI4 App Override — Forces fullscreen mode for the real deployed app.
   The base style.css was designed as a phone simulator demo (index.html).
   When served as a real CI4 app, we override the phone-frame constraints
   so the app fills the entire screen on all devices.
   ========================================================================== */

/* Remove phone-frame bezel — app IS the phone screen */
html, body {
  justify-content: flex-start;
  align-items: stretch;
}

.desktop-controls {
  display: none !important;
}

.mobile-viewport {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100dvh;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.app-screen {
  overflow: visible;
  min-height: 100dvh;
}

/* ==========================================================================
   Header: Logo smaller + flush left, Mascot smaller + flush right
   Only on mobile — desktop keeps original sizes from style.css
   ========================================================================== */
@media (max-width: 768px) {
  .app-top-header {
    padding: 4px 0 6px;
  }

  .logo-glass-badge {
    padding: 4px 7px;
  }

  .app-logo-img {
    height: 40px;
    max-width: 95px;
  }

  .dept-name {
    font-size: 8.5px;
    letter-spacing: 0.4px;
  }

  .sub-dept {
    font-size: 9.5px;
  }

  .header-logo-wrapper {
    gap: 7px;
  }

  .mascot-avatar-ring {
    width: 50px;
    height: 50px;
  }

  .mascot-badge-online {
    width: 11px;
    height: 11px;
  }

  .mascot-speech-bubble {
    top: 58px;
    width: 160px;
  }
}

/* ==========================================================================
   Force Side-by-Side Service Cards (Never Stack!)
   ========================================================================== */
.services-container.side-by-side {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
}

.service-card {
  min-height: 0 !important;
  padding: 12px 10px !important;
}

/* ==========================================================================
   Header Sub-Navigation (Pantau Status & Portal Petugas Di Bawah Header)
   ========================================================================== */
.header-subnav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 8px;
  width: 100%;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.subnav-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.subnav-pill.subnav-track {
  background: rgba(30, 58, 138, 0.35);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.subnav-pill.subnav-track:hover {
  background: rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.subnav-pill.subnav-admin {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.subnav-pill.subnav-admin:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==========================================================================
   Quick WhatsApp / Phone Tracking Card
   ========================================================================== */
.quick-track-card {
  margin: 14px 0 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.quick-track-card:hover {
  border-color: rgba(37, 211, 102, 0.35);
}

.quick-track-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.track-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.track-title {
  margin: 0;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.track-subtitle {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.track-input-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-field-group {
  position: relative;
  width: 100%;
}

.track-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #25d366;
  font-size: 0.85rem;
}

.track-input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-input-field:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.btn-track-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-track-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ticket-code-toggle {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  text-decoration: underline;
}

/* ==========================================================================
   Footer Attribution & Bottom-Right Language Selector
   ========================================================================== */
.site-footer-content {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-rights-text {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.footer-rights-text a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-rights-text a:hover {
  color: #38bdf8;
}

.footer-lang-bottom-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.2s;
}

.lang-pill:hover {
  color: #ffffff;
}

.lang-pill.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}
