/* 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;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    background: rgba(18, 27, 32, 0.62);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
      Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  .pwa-install-popup {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(12, 23, 29, 0.28);
    overflow: hidden;
    max-width: 344px;
    width: 100%;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: auto;
  }
  
  .pwa-install-popup.show {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  .pwa-install-popup.hide {
    transform: translateY(10px) scale(0.97);
    opacity: 0;
  }
  
  .pwa-install-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px 22px 8px;
    background: #ffffff;
    color: #171717;
    position: relative;
  }
  
  .pwa-app-icon {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    flex-shrink: 0;
  }
  
  .pwa-app-icon img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    transform: translateY(-8px);
  }
  
  .pwa-install-title {
    text-align: center;
  }
  
  .pwa-install-title h3 {
    margin: 0;
    color: #171717;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
  }
  
  .pwa-install-title p {
    display: none;
  }
  
  .pwa-close-btn {
    position: absolute;
    top: 17px;
    right: 18px;
    background: #ffffff;
    border: 1.5px solid #1f292d;
    color: #1f292d;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  
  .pwa-close-btn:hover {
    background: #f4f8f6;
    border-color: #178a52;
    color: #178a52;
  }
  
  .pwa-close-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .pwa-install-body {
    padding: 0 34px 20px;
    background: #ffffff;
    color: #5f5f5f;
    font-size: 13.5px;
    line-height: 1.35;
    text-align: center;
  }

  .pwa-install-copy {
    margin: 0;
  }
  
  .pwa-benefits {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 260px;
  }
  
  .pwa-benefits li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
    color: #5f5f5f;
    line-height: 1.35;
    text-align: left;
  }
  
  .pwa-benefits li:last-child {
    margin-bottom: 0;
  }
  
  .pwa-benefits svg {
    width: 16px;
    height: 16px;
    margin: 1px 9px 0 0;
    flex-shrink: 0;
    stroke: #178a52;
  }
  
  .pwa-install-actions {
    display: flex;
    padding: 0 22px 24px;
    border-top: 0;
    gap: 16px;
  }
  
  .pwa-install-btn, .pwa-dismiss-btn {
    min-height: 40px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
  }
  
  .pwa-install-btn {
    background: #1c8f53;
    color: white;
    flex: 1.2;
    box-shadow: 0 8px 18px rgba(28, 143, 83, 0.22);
  }
  
  .pwa-install-btn:hover {
    background: #167a46;
    transform: translateY(-1px);
  }
  
  .pwa-dismiss-btn {
    background: #ecf8f2;
    color: #178a52;
    flex: 0.95;
  }
  
  .pwa-dismiss-btn:hover {
    background: #dff2e8;
    transform: translateY(-1px);
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 480px) {
    .pwa-install-container {
      padding: 8px;
    }
  
    .pwa-install-popup {
      max-width: 100%;
    }

    .pwa-install-body {
      padding-right: 24px;
      padding-left: 24px;
    }

    .pwa-install-actions {
      gap: 10px;
      padding-right: 18px;
      padding-left: 18px;
    }

    .pwa-install-btn,
    .pwa-dismiss-btn {
      padding-right: 12px;
      padding-left: 12px;
      font-size: 11.5px;
    }
  }
