/* PWA Install Banner Styles */
.pwa-install-banner {
  position: fixed !important;
  bottom: 120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #dc2626, #ea580c) !important;
  color: white !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
  z-index: 10000 !important;
  max-width: 400px !important;
  width: calc(100vw - 40px) !important;
  animation: slideInUp 0.5s ease-out !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.pwa-icon {
  flex-shrink: 0;
}

.pwa-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pwa-text {
  flex: 1;
}

.pwa-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.pwa-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.pwa-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.pwa-install-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #dc2626;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-install-btn:hover {
  background: white;
  transform: translateY(-1px);
}

.pwa-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .pwa-install-banner {
    bottom: 15px;
    width: calc(100vw - 30px);
  }
  
  .pwa-banner-content {
    padding: 12px;
    gap: 10px;
  }
  
  .pwa-logo {
    width: 40px;
    height: 40px;
  }
  
  .pwa-text h4 {
    font-size: 14px;
  }
  
  .pwa-text p {
    font-size: 13px;
  }
  
  .pwa-install-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Hide when chatbot is open to avoid conflicts */
.thanag-chatbot.active ~ .pwa-install-banner {
  display: none;
}

/* Ensure it doesn't interfere with chatbot */
.pwa-install-banner {
  bottom: 120px !important;
}

@media (max-width: 768px) {
  .pwa-install-banner {
    bottom: 110px !important;
  }
}

@media (max-width: 480px) {
  .pwa-install-banner {
    bottom: 100px !important;
  }
}

/* PWA Instructions Popup */
.pwa-instructions {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  max-width: 400px;
  width: calc(100vw - 40px);
  animation: fadeIn 0.3s ease-out;
}

.pwa-instructions-content {
  padding: 24px;
  text-align: center;
}

.pwa-instructions h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}

.instruction-steps {
  margin: 16px 0 20px 0;
  text-align: left;
}

.instruction-steps p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.instruction-steps strong {
  color: #dc2626;
}

.pwa-got-it {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-got-it:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
