body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    background-color: #dcf4fe;
    background-image: url('fondo2.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed;
    font-family: 'Arial', sans-serif;
    margin: 20px;
}

.container {
    background: #dcf4feb0;
    padding: 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center; /* Asegura que el texto esté centrado */
}

.imagen-formulario {
    width: 60%; /* O ajusta según necesites */
    height: auto;
    margin-bottom: 20px; /* Espacio debajo de la imagen */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px; /* Asegura un margen debajo del título */
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

select, button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

select:focus, button:focus {
    outline: none;
    border-color: #007bff;
}

button:disabled{
    background-color: #474b50;
    color: #fff;
    border: none;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}



#detalles {
    margin-top: 15px;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hidden {
    display: none;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table { 
    width: 100%;
    border-collapse: collapse; 
} 
th, td {
    padding: 10px;
    border: none;
    text-align: center;
}
th {
    background-color: #dcf4fe;
    position: sticky;
    top: 0;
    z-index: 1;
}

.alerts-container {
    max-height: 400px; /* Ajusta la altura máxima según tus necesidades */
    overflow-y: auto;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chartBox {
    width: 83%;
}

.state-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto; /* Centra la tabla en la página */
}

.state-table th, .state-table td {
    border: 3px solid gray; /* Bordes anchos y grises */
    padding: 10px;
    text-align: center; /* Texto centrado */
}

.highcharts-figure .chart-container {
    width: 83%;
    height: 200px;
    float: left;
}

.highcharts-figure,
.highcharts-data-table table {
    width: 600px;
    margin: 0 auto;
}
/*Estilo para la CardView*/
.card {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px;
    overflow: hidden;
    display: inline-block;
}
.card-top {
    display: flex;
    align-items: center;
    padding: 15px;
}
.card-top img {
    width: 75px;
    height: 75px;
    margin-right: 15px;
}
.card-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-main .medida {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.card-main .descripcion {
    font-size: 1em;
    font-weight: bold;
    color: #555;
}
.card-main .info {
    font-size: 0.85em;
    color: #777;
}
.card-text {
    flex-grow: 1;
}
.card-text .descripcion {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}
.card-text .info {
    font-size: 0.85em;
    color: #666;
}
.card-alert {
    padding: 10px 15px;
    font-size: 0.85em;
    color: #d32f2f;
    display: flex;
    align-items: center;
}
.card-alert::before {
    content: "⚠️";
    margin-right: 8px;
}
.card-bottom {
    display: flex;
    gap: 2px; /* Espacio entre secciones */
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.section {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    color: white;
    font-weight: bold;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); /* Borde interno sutil */
}
.verde { background-color: #4CAF50; }
.rojo { background-color: #F44336; }
.gris { background-color: #9E9E9E; }

/* Estilos responsivos para dispositivos móviles */ 
@media (max-width: 600px) { 
    body { 
        height: auto; 
        padding: 0; /* Ajusta el padding en dispositivos pequeños */ 
    } 
    
    .container { 
        padding: 20px; 
        width: 90%; /* Ajusta el ancho para dispositivos móviles */ 
        box-sizing: border-box; 
    }
    .highcharts-figure,
    .highcharts-data-table table {
        width: 100%;
    }

    .highcharts-figure .chart-container {
        width: 300px;
        float: none;
        margin: 0 auto;
    } 
}
