/* floodSimulator.css */
/* Estilos para el simulador de inundación */

.xl-simulator {
  padding: 0;
  background: #f8f9fa;
}

.flood-simulator {
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Header del Simulador */
.flood-simulator__header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.flood-simulator__icon {
  margin-right: 12px;
  font-size: 24px;
}

.flood-simulator__title h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.flood-simulator__title p {
  margin: 0;
  font-size: 12px;
  color: #6c757d;
}

/* Estado actual */
.flood-simulator__status {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

.status-value {
  font-size: 13px;
  font-weight: 600;
}

.status-value.enabled {
  color: #28a745;
}

.status-value.disabled {
  color: #dc3545;
}

/* Controles */
.flood-simulator__controls {
  margin-bottom: 20px;
}

/* Botón principal */
.flood-simulator__toggle {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.flood-simulator__toggle:not(.active) {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.flood-simulator__toggle:not(.active):hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.flood-simulator__toggle.active {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  color: white;
}

.flood-simulator__toggle.active:hover {
  background: linear-gradient(135deg, #c82333, #e8651c);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.flood-simulator__toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Slider Container */
.flood-simulator__slider-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

/* Slider */
.flood-simulator__slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-bottom: 15px;
}

.flood-simulator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00BFFF;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 191, 255, 0.4);
  transition: all 0.2s ease;
}

.flood-simulator__slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.6);
}

.flood-simulator__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00BFFF;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 191, 255, 0.4);
}

/* Slider ticks */
.slider-ticks {
  position: relative;
  height: 20px;
  margin-top: 5px;
}

.tick {
  position: absolute;
  font-size: 11px;
  color: #6c757d;
  transform: translateX(-50%);
  top: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.tick.active {
  color: #00BFFF;
  font-weight: 700;
  font-size: 12px;
}

/* Botón de reset */
.flood-simulator__reset {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid #6c757d;
  border-radius: 6px;
  background: transparent;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flood-simulator__reset:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-1px);
}

/* Información */
.flood-simulator__info {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-section {
  margin-bottom: 15px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-section ul {
  margin: 0;
  padding-left: 16px;
}

.info-section li {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
  line-height: 1.4;
}

.info-section li:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .flood-simulator {
    padding: 15px;
  }
  
  .flood-simulator__title h3 {
    font-size: 16px;
  }
  
  .flood-simulator__toggle {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .slider-label {
    font-size: 13px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flood-simulator__slider-container {
  animation: fadeIn 0.3s ease-out;
}

.flood-simulator__reset {
  animation: fadeIn 0.3s ease-out;
}

/* Scroll personalizado */
.flood-simulator::-webkit-scrollbar {
  width: 6px;
}

.flood-simulator::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.flood-simulator::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.flood-simulator::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
