/* frontend/assets/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Gris muy claro */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

header {
    background-color: #f7a0be; /* Azul claro para encabezado */
    color: #212529;
    padding: 30px 0;
    text-align: center;
    border-bottom: 5px solid #f7b9cf; /* Borde más oscuro */
}

h1, h2, h3 {
    color: #f93478; /* Azul vibrante */
    margin-bottom: 15px;
}

/* ... (todo el CSS anterior sin cambios) ... */

p {
    margin-bottom: 10px;
}

/* ESTILO AÑADIDO PARA EL NUEVO CONTENEDOR DEL BOTÓN */
.start-prediction-container {
    text-align: center;
    margin-top: 30px;
}

/* Estilo modificado para aplicar al nuevo botón */
.start-prediction-container button {
    background-color: #28a745; /* Verde para el botón principal */
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.start-prediction-container button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* ... (el resto del CSS sin cambios) ... */

/* Formulario */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
}

.form-group input[type="radio"] {
    margin-right: 5px;
}

#calculate-btn {
    background-color: #ff0055; /* Azul para el botón de cálculo */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: 100%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#calculate-btn:hover {
    background-color: #b30045;
}

.loading-spinner {
    text-align: center;
    padding: 10px;
    font-style: italic;
    color: #666;
}

.error-message {
    color: #dc3545; /* Rojo para errores */
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Resultados */
#main-result {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #ff008c;
    font-weight: bold;
}

/* En frontend/assets/css/styles.css */

.chart-container {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta la altura según tus preferencias */
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Opcional: Estilos para los mensajes de estado/notas */
.status-message {
    font-size: 1.1em;
    font-weight: bold;
    color: #0056b3; /* Un color azul para mensajes importantes */
    margin-bottom: 15px;
    text-align: center;
}

.model-notes {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

/* Estilos para los nuevos divs de info */
.info-box {
    background-color: #e9f5ff;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.model-result-box {
    background-color: #f0f8ff;
    border: 1px solid #cceeff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.interpretation {
    background-color: #f1f8e9; /* Verde claro para interpretación */
    border-left: 5px solid #8bc34a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.interpretation h4 {
    margin-top: 15px;
    color: #6a1b9a; /* Púrpura para títulos de subsecciones */
}

.math-formula {
    text-align: center;
    font-size: 1.2em;
    font-family: 'Times New Roman', serif; /* Mejor para fórmulas */
    margin: 15px 0;
}

pre {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.disclaimer {
    background-color: #ffe0b2; /* Naranja claro para advertencia */
    border-left: 5px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 0.95em;
    color: #795548;
}

.disclaimer h3 {
    color: #d32f2f; /* Rojo oscuro para el título de advertencia */
}

.actions {
    text-align: center;
    margin-top: 30px;
}

.actions button {
    background-color: #7d6c74; /* Gris para botones de acción */
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.actions button:hover {
    background-color: #685a5e;
}

.actions button#btnNewPrediction {
    background-color: #b81755; /* Turquesa para "Nueva Predicción" */
}

.actions button#btnNewPrediction:hover {
    background-color: #961345;
}


/* Utilidades */
.hidden {
    display: none !important;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #f7e0eb;
    color: #555;
    font-size: 0.9em;
    border-top: 1px solid #e6adae;
}

/* Responsividad básica */
@media (max-width: 768px) {
    .container {
        margin: 20px 15px;
        padding: 15px;
    }
    .model-selection button {
        width: calc(100% - 20px);
        margin: 5px 10px;
    }
}