/* Estilos para indicadores de carga */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 136, 204, 0.2);
  border-top: 5px solid #0088cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(248, 249, 250, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.chart-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 136, 204, 0.2);
  border-top: 3px solid #0088cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.retry-button {
  background-color: #0088cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.retry-button:hover {
  background-color: #006699;
}

.error-message {
  background-color: #fff3f3;
  border-left: 4px solid #e74c3c;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  color: #333;
}

.error-message h3 {
  color: #e74c3c;
  margin-top: 0;
  font-size: 16px;
}

.connection-status {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 12px;
  z-index: 1000;
}

.connection-status.online {
  color: #27ae60;
}

.connection-status.offline {
  color: #e74c3c;
}

.timeout-counter {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  margin: 15px 0;
  font-weight: bold;
}
