@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


body {
  padding-top: env(safe-area-inset-top);
  background: #fff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* Make install prompt scrollable and above wide slider */
.q-pwa-install-prompt {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
  z-index: 10002;
  position: relative;
}

/* PWA Install Prompt */
.q-pwa-install-container {
  position: fixed;
  top: 0;
  z-index: 9999;
  height: 100vh;
  background: #FFFFFF;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.q-pwa-install-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* iOS Install Instructions */
.q-pwa-ios-instructions {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.q-pwa-ios-instructions-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  position: relative;
}

.q-pwa-ios-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.q-pwa-ios-instructions-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.q-pwa-ios-instructions-content ol {
  margin: 0;
  padding-left: 20px;
}

.q-pwa-ios-instructions-content li {
  margin-bottom: 10px;
}

.ios-share-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 5px;
}



.q-ios-prompt-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  padding: 16px;
  gap: 10px;
}



.q-pwa-install-content {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Screenshot slider dots */
.q-pwa-screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.q-pwa-screenshot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D0D5DD;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.q-pwa-screenshot-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #0384C6;
}

.q-pwa-narrow-dots {
  margin-top: 20px;
}

.q-pwa-wide-dots {
  margin-top: 12px;
}

/* PWA Screenshot Slider */
.q-pwa-screenshot-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}



/* Specific styles for narrow slider */
.q-pwa-narrow-slider {
  margin-left: 10%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.q-pwa-screenshot-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* .q-pwa-narrow-slide {
  width:auto;
  height: 420px;
  padding: 15px;
  border-radius: 8px;
  background: #F2F4F7 ;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
} */

.q-pwa-narrow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F2F4F7;
  padding: 20px;
  border-radius: 20px;
}

/* Wide screenshot styles */
.q-pwa-wide-slide {
  width: 100%;
  height: 200px;
  display: none;
  align-items: center;
  justify-content: center;
}

.q-pwa-wide-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21/9;
}

.q-pwa-install-icon {
  font-size: 48px;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  flex-shrink: 0;
}

.q-pwa-install-text {
  flex: 1;
}

.q-pwa-install-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.q-pwa-install-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.q-pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.q-pwa-btn-primary {
  font-size: 12px;
  display: inline-block;
  border: 1px solid #d0d5dd;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0px 0px 1px rgba(16, 24, 40, 0.18) inset,
    0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
  transition: all 0.2s ease;
  background: #005a87;
  color: #FFF;
  font-weight: 500;
  cursor: pointer;
}

.q-pwa-btn-primary:hover {
  background: #fff;
  color: #005a87;
}

/* Progress Bar Styles */
.q-pwa-install-progress-container {
  width: 100%;
  height: 8px;
  background: #f2f4f7;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
  display: none;
}

.q-pwa-install-progress-bar {
  height: 100%;
  width: 0;
  background: #005a87;
  border-radius: 4px;
  transition: width 0.1s linear;
}

.q-pwa-install-progress-container.show {
  display: block;
}

.q-pwa-btn-secondary {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-pwa-btn-secondary:hover {
  background: #000;
  color: #fff;
}

/* PWA App Shell */


.pwa-installed .site-header {
  /* Adjust header for standalone mode */
  padding-top: env(safe-area-inset-top);
}

.pwa-installed .site-footer {
  /* Adjust footer for standalone mode */
  padding-bottom: env(safe-area-inset-bottom);
}

/* iOS Standalone Mode */
.ios-standalone {
  /* iOS-specific standalone styles */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  height: 100%;
  width: 100%;
  position: fixed;
}

.ios-standalone .site-header {
  padding-top: 44px;
  /* Status bar height */
}

/* Prevent content overlap with top section on iOS */
.ios-standalone body {
  padding-top: 44px !important;
}

/* Ensure top section is opaque on iOS */
.ios-standalone .site-header {
  background: #fff !important;
}

/* Fix for iOS blank screen issue */
@supports (-webkit-touch-callout: none) {

  html,
  body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body {
    /* Ensure body is visible on iOS */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}






/* Responsive Design for PWA */
@media (display-mode: standalone) {

  /* Styles when running as installed PWA */
  body {
    user-select: none;
    /* Prevent text selection in app mode */
  }

  /* Hide browser-specific elements */
  .browser-only {
    display: none !important;
  }

  /* Show PWA-specific elements */
  .pwa-only {
    display: block !important;
  }
}

@media (display-mode: fullscreen) {

  /* Styles for fullscreen mode */
  .site-header,
  .site-footer {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {


  .q-pwa-install-actions {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {


  .q-pwa-install-text h3 {
    font-size: 16px;
  }

  .q-pwa-install-text p {
    font-size: 13px;
  }
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* Contact Picker Styles */
.q-pwa-contact-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.q-pwa-contact-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.q-pwa-contact-prompt {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.q-pwa-contact-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.q-pwa-contact-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.q-pwa-contact-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.q-pwa-contact-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.q-pwa-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes loading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .q-pwa-contact-content {
    background: #2c2c2c;
    color: #fff;
  }

  .q-pwa-install-text h3 {
    color: #fff;
  }

  .q-pwa-install-text p {
    color: #ccc;
  }
}

/* Subscription Toggle Styles */
#q-subscription-toggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

#q-subscription-toggle i {
  transition: all 0.3s ease;
  font-size: 1.1em;
}

#q-subscription-toggle span {
  transition: all 0.3s ease;
}

/* Loading state */
#q-subscription-toggle.loading {
  pointer-events: none;
}

#q-subscription-toggle.loading i {
  animation: spin 1s linear infinite;
}

/* Subscribed state */
#q-subscription-toggle.subscribed {
  background-color: #dc3545;
  border-color: #dc3545;
}

#q-subscription-toggle.subscribed:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

/* Unsubscribed state hover */
#q-subscription-toggle:not(.subscribed):not(.loading):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
#q-subscription-toggle:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Disabled state */
#q-subscription-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Ripple effect */
#q-subscription-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

#q-subscription-toggle:active::before {
  width: 100px;
  height: 100px;
}

/* Notification styles */
.q-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
  cursor: pointer;
}

.q-notification-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.q-notification-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.q-notification-content {
  display: flex;
  flex-direction: column;
}

.q-notification-content i {
  font-size: 1.2em;
  flex-shrink: 0;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .q-notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  #q-subscription-toggle {
    min-width: 100px;
    font-size: 0.9em;
  }
}

/* Print Styles */
@media print {

  .q-pwa-contact-container,
  .q-pwa-install-container,
  .q-notification,
  #q-subscription-toggle {
    display: none !important;
  }
}



/* PWA Stats Section */
.q-pwa-stats {
  background: #F2F4F7;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0 0 0;
  width: 90%;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.q-pwa-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  gap: 6px;
}


.q-pwa-stats-label {
  font-size: 10px;
  font-weight: 500;
  color: #667085;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-pwa-stats-value {
  font-size: 18px;
  font-weight: 700;
  color: #667085;
}


/* Offline Banner */
.q-pwa-offline-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #ffefc1;
  color: #7a5a00;
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ffe082;
  transition: top 0.3s;
}

.q-pwa-offline-indicator.hidden {
  display: none !important;
}

.q-pwa-offline-icon {
  margin-right: 8px;
}

/* Toast Notification */
.q-pwa-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: transform 0.3s, opacity 0.3s;
  transform: translateY(0);
}

.q-pwa-toast-hiding {
  transform: translateY(10px);
  opacity: 0;
}

.q-pwa-toast-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.q-pwa-toast-content span {
  flex: 1;
  font-size: 14px;
}

.q-pwa-toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.q-pwa-toast-refresh {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.q-pwa-toast-info {
  border-left: 4px solid #3b82f6;
}

.q-pwa-toast-success {
  border-left: 4px solid #10b981;
  background: #10b981 !important;
  color: white !important;
}

.q-pwa-toast-success .q-pwa-toast-content {
  padding: 16px 20px;
}

.q-pwa-toast-success .q-pwa-toast-content span {
  font-size: 16px;
  font-weight: 500;
  color: white !important;
}

.q-pwa-toast-success .q-pwa-toast-close {
  color: white !important;
  opacity: 0.8;
}

.q-pwa-toast-warning {
  border-left: 4px solid #f59e0b;
}

.q-pwa-toast-error {
  border-left: 4px solid #ef4444;
}

/* Update Notification */
.q-pwa-update-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.q-pwa-update-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.q-pwa-update-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  min-height: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.q-pwa-update-notification.show {
  opacity: 1;
  pointer-events: auto;
}

.q-pwa-update-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 28px 28px 28px;
}

.q-pwa-update-icon {
  margin-bottom: 8px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.q-pwa-update-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
}

.q-pwa-update-version {
  font-size: 14px;
  color: #a3a3a3;
  margin-bottom: 8px;
}

.q-pwa-update-desc {
  font-size: 15px;
  color: #344054;
  text-align: center;
  max-width: 320px;
  margin-bottom: 18px;
}

.q-pwa-update-btn {
  font-size: 12px;
  display: inline-block;
  border: 1px solid #d0d5dd;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0px 0px 1px rgba(16, 24, 40, 0.18) inset,
    0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
  transition: all 0.2s ease;
  background: #fff;
  color: #344054;
  font-weight: 500;
  cursor: pointer;
}

.q-pwa-update-btn:hover {
  background: #005a87;
}

/* Classes replacing inline styles from JS */

.q-ios-prompt-body {
  padding: 16px 16px;
  font-size: 13px;
  color: #666;
}

.q-ios-prompt-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.q-ios-prompt-list-item {
  margin-bottom: 8px;
}

.q-ios-prompt-share-icon,
.q-ios-prompt-add-icon {
  background: #F2F4F7;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.q-ios-prompt-helper-image {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}



.q-pwa-install-title-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.q-pwa-install-title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.q-pwa-stats-row {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
  align-items: stretch;
}

.q-pwa-stats-divider {
  width: 1px;
  background: #e0e0e0;
  margin: 0 18px;
  min-height: 48px;
  align-self: center;
}

.q-pwa-stats-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.q-pwa-stats-desc {
  font-size: 10px;
  color: #667085;
  margin-top: 0;
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.q-pwa-stats-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e6f0fa;
  border-radius: 50%;
  margin: 0 auto 4px auto;
}

.q-pwa-stats-icon {
  font-size: 18px;
  color: #0384C6;
}

.q-pwa-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 2px;
}

.q-pwa-star {
  color: #667085;
  font-size: 10px;
  vertical-align: middle;
}

.q-pwa-install-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.q-pwa-preview-heading {
  font-size: 17px;
  font-weight: bold;
  color: #000;
  text-align: left;
  width: 90%;
  margin: 0px auto 8px auto;
}


/* End Notification Inbox */