/* Network Status Styles */
.network-status {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 300px;
  pointer-events: none;
}

.network-status.offline {
  background: rgba(244, 67, 54, 0.95);
  color: white;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.network-status.unstable {
  background: rgba(255, 152, 0, 0.95);
  color: white;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.network-status.online {
  background: rgba(76, 175, 80, 0.95);
  color: white;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.network-status-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.network-icon {
  font-size: 16px;
  line-height: 1;
}

.network-message {
  line-height: 1.2;
}

/* Dark theme adjustments */
[data-theme="dark"] .network-status {
  backdrop-filter: blur(20px);
}

[data-theme="dark"] .network-status.offline {
  background: rgba(244, 67, 54, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .network-status.unstable {
  background: rgba(255, 152, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .network-status.online {
  background: rgba(76, 175, 80, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .network-status {
    top: 8px;
    right: 8px;
    left: 8px;
    max-width: none;
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Animation for status changes */
.network-status {
  animation: slideInFromTop 0.3s ease-out;
}

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