/* PWA-specific styles */

/* Online/Offline status indicator */
#online-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* By default, hide the status */
  display: none;
}

/* We don't need the online class styling since we're only showing offline status */
#online-status.offline {
  background-color: #f44336;
  color: white;
  opacity: 1;
  transform: translateY(0);
}

/* Initial animation of status */
body.offline #online-status {
  opacity: 1;
  transform: translateY(0);
}

/* "Add to Home Screen" button styles */
.install-button {
  background-color: var(--accent, #0091ff);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.install-button:hover {
  background-color: var(--accent-dark, #0077cc);
  transform: translateY(-2px);
}

.install-button svg {
  margin-right: 8px;
}

/* Hide install button on iOS devices (can't install PWAs the same way) */
@supports (-webkit-touch-callout: none) {
  .install-button {
    display: none;
  }
}

/* For devices where PWA is already installed */
@media all and (display-mode: standalone) {
  .install-button {
    display: none;
  }
}
