/* Offline Page Styling */
.offline-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 2rem;
  }
  
  .offline-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .offline-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }
  
  .retry-button {
    background: #00A651;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
  }
  
  .retry-button:hover {
    background: #1E457C;
  }


/* PWA Install Prompt Styles */
.pwa-install-container {
    position: fixed !important; /* Force fixed positioning */
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important; /* Ensure it's above other elements */
    max-width: 360px;
    width: calc(100% - 40px); /* Account for margins */
    pointer-events: none; /* Let clicks pass through the container */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
      Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  .pwa-install-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto; /* Re-enable pointer events for the popup */
  }
  
  .pwa-install-popup.show {
    transform: translateY(0);
    opacity: 1;
  }
  
  .pwa-install-popup.hide {
    transform: translateY(-20px);
    opacity: 0;
  }
  
  .pwa-install-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #00A651, #6a5acd);
    color: white;
    position: relative;
  }
  
  .pwa-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .pwa-app-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
  }
  
  .pwa-install-title {
    flex-grow: 1;
  }
  
  .pwa-install-title h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .pwa-install-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
  }
  
  .pwa-close-btn {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
  }
  
  .pwa-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .pwa-close-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .pwa-install-body {
    padding: 16px;
    background: #f8f9fa;
  }
  
  .pwa-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .pwa-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a4a4a;
  }
  
  .pwa-benefits li:last-child {
    margin-bottom: 0;
  }
  
  .pwa-benefits svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    stroke: #4a90e2;
  }
  
  .pwa-install-actions {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
  }
  
  .pwa-install-btn, .pwa-dismiss-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
  }
  
  .pwa-install-btn {
    background: #00A651;
    color: white;
    flex-grow: 1;
  }
  
  .pwa-install-btn:hover {
    background: #3a80d2;
  }
  
  .pwa-dismiss-btn {
    background: #f1f3f5;
    color: #4a4a4a;
  }
  
  .pwa-dismiss-btn:hover {
    background: #e9ecef;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 480px) {
    .pwa-install-container {
      top: auto !important;
      right: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      max-width: 100%;
      padding: 16px;
    }
  
    .pwa-install-popup {
      border-radius: 16px;
    }
  }