/* ==========================================================================
   SIMRS BUENTAKA - PWA INSTALL MOBILE BOTTOM SHEET STYLES
   Concept: iOS / Google Material 3 / Microsoft Fluent Glassmorphism
   ========================================================================== */

/* PWA Backdrop Overlay */
.pwa-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pwa-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* PWA Bottom Sheet Container */
.pwa-bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  z-index: 10501;
  padding: 20px 20px 24px 20px;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  box-sizing: border-box;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.pwa-bottom-sheet.show {
  transform: translate(-50%, 0);
}

/* Bottom Sheet Drag Handle Bar */
.pwa-drag-handle {
  width: 40px;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

/* Header Section */
.pwa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pwa-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 39, 71, 0.12);
  object-fit: contain;
  background: #F8FAFC;
  padding: 4px;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.pwa-app-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F2747;
  line-height: 1.2;
  margin: 0 0 2px 0;
}

.pwa-app-subtitle {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

/* Tagline */
.pwa-tagline {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 14px;
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
}

/* Feature List */
.pwa-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 20px;
}

.pwa-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1E293B;
}

.pwa-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DEF7EC;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Actions Section */
.pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pwa-primary {
  height: 52px;
  background-color: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-pwa-primary:hover {
  background-color: #1D4ED8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-pwa-primary:active {
  transform: scale(0.98);
}

.btn-pwa-primary:disabled {
  background-color: #93C5FD;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-pwa-secondary {
  height: 44px;
  background: transparent;
  color: #64748B;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.btn-pwa-secondary:hover {
  background-color: #F8FAFC;
  color: #334155;
}

/* Spinner Animation for Installing state */
.pwa-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: pwaSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes pwaSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .pwa-features-list {
    grid-template-columns: 1fr;
  }
}
