/* ====== ESTILOS GENERALES ====== */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background-color: #E6F0F7;
    color: #003366;
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ====== LOGO ====== */
.logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* ====== TITULOS E INSTRUCCIONES ====== */
h1, h2, h3 {
    color: #003366;
    font-weight: bold;
    margin-bottom: 15px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 15px;
    text-align: justify;
}

/* ====== BOTONES ====== */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn {
    text-decoration: none;
    padding: 12px 20px;
    background: #FF6600;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #E65C00;
    transform: translateY(-2px);
}

.btn-danger, .btn.logout {
    background: #FF3333;
}

.btn-danger:hover, .btn.logout:hover {
    background: #E62E2E;
}

/* ====== FORMULARIOS Y ENTRADAS ====== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    display: block;
    margin-bottom: 5px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 2px solid #003366;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: #FFFFFF;
    color: #003366;
}

/* ====== TABLAS GENERALES ====== */
.question-table, .respuestas-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.question-table th, .question-table td,
.respuestas-table th, .respuestas-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E6F0F7;
}

.question-table th, .respuestas-table th {
    background-color: #003366;
    color: white;
    font-weight: bold;
}

.question-table tr:nth-child(even),
.respuestas-table tr:nth-child(even) {
    background-color: #E6F0F7;
}

.question-table tr:hover,
.respuestas-table tr:hover {
    background-color: #D9E6F2;
}

/* ====== TABLA TIPO LIKERT ====== */
.likert-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.likert-table th, .likert-table td {
    border: 1px solid #003366;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    color: #003366;
}

.likert-table th {
    background-color: #003366;
    color: #FFFFFF;
}

.likert-table td:first-child {
    text-align: left;
    width: 40%;
    font-weight: 500;
    background-color: #E6F0F7;
}

.likert-table input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

/* ====== PREGUNTAS ABIERTAS ====== */
.question-abierta {
    margin: 20px 0;
    text-align: left;
}

.question-abierta h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #003366;
}

.question-abierta textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #003366;
    border-radius: 8px;
    resize: vertical;
}

.question-answer-container {
    border-bottom: 2px solid #E6F0F7; /* Línea separadora */
    margin-bottom: 20px; /* Espacio entre preguntas */
    padding-bottom: 20px; /* Espacio interno abajo */
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); /* Sombra muy leve */
}

.question-container {
    border: 2px solid #000; /* Borde negro grueso */
    margin-bottom: 20px; /* Espacio entre preguntas */
    padding: 10px; /* Espaciado interno */
    border-radius: 8px; /* Bordes ligeramente redondeados (opcional) */
    background-color: #fff; /* Fondo blanco */
}

.question-title {
    font-weight: bold;
    margin-bottom: 10px;
}



/* ====== MENSAJES ====== */
.error {
    color: #FF3333;
    font-size: 14px;
    margin-top: 10px;
    background: #FFE5E5;
    padding: 10px;
    border-radius: 8px;
    animation: error-animation 0.5s ease-in-out;
}

.success {
    color: #009900;
    font-size: 14px;
    margin-top: 10px;
    background: #E5FFE5;
    padding: 10px;
    border-radius: 8px;
    animation: error-animation 0.5s ease-in-out;
}

@keyframes error-animation {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ====== MENSAJE SIN DATOS ====== */
.no-data {
    color: #666666;
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #E6F0F7;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ====== UTILITARIOS ====== */
.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-white {
    background-color: #FFFFFF;
}

/* ====== POWER BI ====== */
.powerbi-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E6F0F7;
}

.powerbi-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-powerbi {
    background: #0066CC;
}

.btn-powerbi:hover {
    background: #004C99;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .likert-table th, .likert-table td,
    .question-table th, .question-table td,
    .respuestas-table th, .respuestas-table td {
        padding: 8px;
    }

    .options {
        flex-direction: column;
    }
}
