/**
 * Estilos específicos para Monitoreo en Tiempo Real
 */

/* Panel de filtros */
.filters-panel {
  background: white;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-panel .form-group {
  margin-bottom: 15px;
}

.filters-panel label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

/* Mapa */
#map {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  border-radius: 5px;
}

/* Panel de alarmas */
.alarmas-panel {
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
}

.alarmas-panel h5 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* Panel de estados */
.estados-panel {
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.estados-panel h5 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* Timer de actualización */
.timer-control {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  margin: 10px 0;
}

.timer-control img {
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.timer-control strong {
  font-size: 14px;
  color: #3a6fad;
}

/* Tabla de alarmas */
#tablaRecord {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

#tablaRecord th {
  background-color: #3a6fad;
  color: white;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #2a5a9d;
}

#tablaRecord td {
  padding: 6px;
  text-align: center;
  border: 1px solid #ddd;
}

#tablaRecord tr:nth-child(even) {
  background-color: #f2f2f2;
}

#tablaRecord tr:hover {
  background-color: #e8f4f8;
}

/* Leyenda de estados */
.leyenda-table {
  width: 100%;
  font-size: 12px;
}

.leyenda-table td {
  padding: 5px;
  vertical-align: middle;
}

.leyenda-table a {
  text-decoration: none;
  color: #333;
}

.leyenda-table a:hover {
  color: #3a6fad;
  text-decoration: underline;
}

/* Información del vehículo */
#vehiculo-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

#vehiculo-info .form-control-plaintext {
  color: #666;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  #map {
    height: 60vh;
    min-height: 400px;
  }
  
  .filters-panel {
    margin-bottom: 15px;
  }
  
  .alarmas-panel,
  .estados-panel {
    margin-top: 15px;
  }
}


