/* styles.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.8em;
    color: #0056b3;
}

form {
    display: flex;
    align-items: center;
}

label {
    margin-right: 10px;
    font-weight: bold;
}

select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
    cursor: pointer;
    background-color: #fff;
}

select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25);
}

main {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto; /* Permite el desplazamiento horizontal en la tabla */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

thead th {
    background-color: #0056b3;
    color: #fff;
    font-weight: bold;
    position: sticky;
    top: 0;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

td {
    white-space: normal; /* Permite que el contenido de las celdas se divida en varias líneas */
    word-break: break-word; /* Rompe las palabras largas para que no desborden la celda */
    min-width: 350px;
    width: 1000px; /* Ancho máximo antes de que el texto se divida */
}

td:first-child, th:first-child {
    border-left: 1px solid #ddd;
}
td:last-child, th:last-child {
    border-right: 1px solid #ddd;
}

td.nombreColegios {
    white-space: normal; /* Permite que el contenido de las celdas se divida en varias líneas */
    word-break: break-word; /* Rompe las palabras largas para que no desborden la celda */
    min-width: 1000px;
    width: 1000px; /* Ancho máximo antes de que el texto se divida */
}

/* Estilos para la vista vertical */
.vertical-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.response-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
}

.response-card h2 {
    background-color: #0056b3;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.4em;
}

.card-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.card-section:last-child {
    border-bottom: none;
}

.card-section h3 {
    color: #0056b3;
    font-size: 1.2em;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.card-row {
    display: flex;
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-label {
    flex: 0 0 40%;
    font-weight: bold;
    padding-right: 15px;
}

.card-value {
    flex: 0 0 60%;
}

.card-value.observation {
    flex: 1;
    white-space: pre-line;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.no-results {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    color: #666;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    h1 {
        margin-bottom: 15px;
    }
}

.export-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 0 20px 20px 0;
}

.export-button {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.export-button:hover {
    background-color: #003d7a;
}
