/* Offline Indicator Styles */

#offline-indicator {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 1000;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--warning), #ff8c00);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  animation: slideInUp 0.3s ease;
}

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

/* Pulse animation for offline indicator */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

#offline-indicator {
  animation: slideInUp 0.3s ease, pulse 2s infinite;
}

/* Mobile positioning */
@media (max-width: 768px) {
  #offline-indicator {
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* Status indicator dot */
#offline-indicator::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  margin-right: 8px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49%, 100% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0.3;
  }
}

/* Network status in topbar */
.network-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.network-status-badge.online {
  background: rgba(11, 173, 117, 0.1);
  color: var(--success);
  border: 1px solid rgba(11, 173, 117, 0.3);
}

.network-status-badge.offline {
  background: rgba(240, 146, 10, 0.1);
  color: var(--warning);
  border: 1px solid rgba(240, 146, 10, 0.3);
  animation: pulse 1s infinite;
}

.network-status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
