.pwa-update-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInUp 0.3s ease-out;
}

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

.pwa-update-content svg {
  width: 24px;
  height: 24px;
  color: #4F46E5;
  flex-shrink: 0;
}

.pwa-update-content span {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.pwa-update-btn {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pwa-update-btn:hover {
  background: #4338ca;
}

.pwa-dismiss-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.pwa-dismiss-btn:hover {
  color: #111827;
}

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideInUp 0.3s ease-out;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-install-icon {
  width: 48px;
  height: 48px;
  background: #EEF2FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-install-icon svg {
  width: 24px;
  height: 24px;
  color: #4F46E5;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-text strong {
  display: block;
  font-size: 16px;
  color: #111827;
  margin-bottom: 4px;
}

.pwa-install-text p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.pwa-install-banner-btn {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pwa-install-banner-btn:hover {
  background: #4338ca;
}

.offline-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FEF3C7;
  color: #92400E;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  animation: slideInDown 0.3s ease-out;
}

.offline-indicator svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.offline-indicator span {
  font-size: 14px;
  font-weight: 500;
}

#pwa-install-btn {
  display: none;
  background: #4F46E5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#pwa-install-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

@keyframes slideInDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .pwa-update-notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .pwa-install-content {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .pwa-install-text {
    flex-basis: 100%;
    order: 2;
  }

  .pwa-install-icon {
    order: 1;
  }

  .pwa-install-banner-btn {
    order: 3;
    flex: 1;
  }

  .pwa-dismiss-btn {
    order: 4;
  }
}

@media (prefers-color-scheme: dark) {
  .pwa-update-notification,
  .pwa-install-banner {
    background: #1f2937;
    border-color: #374151;
  }

  .pwa-update-content span,
  .pwa-install-text strong {
    color: #f9fafb;
  }

  .pwa-install-text p {
    color: #9ca3af;
  }

  .pwa-install-icon {
    background: #374151;
  }

  .offline-indicator {
    background: #FEF3C7;
    color: #92400E;
  }
}
