/* General Styles */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: #333;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    background-color: #f0f0f0;
    /* Fondo neutral */
}

/* Sidebar */
.sidebar {
    width: 25%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 25px;
    flex-wrap: nowrap; /* Keep them on the same line if possible, otherwise smaller */
}

.logo {
    max-width: 45%; /* Cada logo toma máximo el 45% del ancho para que quepan dos */
    max-height: 45px; /* Altura más contenida */
    height: auto;
    width: auto;
    object-fit: contain;
}

h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 700;
}

input[type="file"] {
    display: none;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    font-size: 0.9em;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    background-color: #4d4d4d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333333;
}

/* Main Content */
.content {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
    border-left: 1px solid #dddddd;
}

.header {
    border-bottom: 1px solid #cccccc;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

#downloadReport,
#downloadNotification {
    display: none;
    margin-top: 20px;
    padding: 12px;
    background-color: #1a4d8c; /* Color azul más oscuro para mejor contraste */
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#downloadReport:hover,
#downloadNotification:hover {
    background-color: #123662;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
    }

    .content {
        padding: 20px;
    }
}

/* Skeleton Loader */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    animation: loading 1.5s infinite ease-in-out;
}

.skeleton.line {
    height: 20px;
    margin-bottom: 8px;
}

.skeleton.large {
    height: 80px;
    /* Es más largo para simular un cargado extenso */
    margin-bottom: 20px;
}

/* Animation for the skeleton */
@keyframes loading {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f0f0f0;
    }

    100% {
        background-color: #e0e0e0;
    }
}

#loadingText {
    font-size: 1.2em;
    /* Tamaño de fuente más pequeño */
    font-style: italic;
    /* Cursiva */
    font-weight: normal;
    /* Sin negrita */
    color: #4d4d4d;
    margin-top: 20px;
    text-align: center;
    animation: loading 1.5s infinite ease-in-out;
}

#resultPlaceholder {
    display: block;
    flex-direction: column;
    padding: 20px 100px;
    /* Padding de 100px a los lados */
    min-height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
    color: #666666;
    text-align: justify;
    /* Justificar el texto */
}

#resultPlaceholder img {
    display: block;
    margin: 20px auto;
    /* Márgenes automáticos para centrar */
    max-width: 100%;
    /* Aseguramos que no excedan el ancho */
    height: auto;
    /* Mantener proporciones */
}

/* Nuevos Estilos: Modernización */
.upload-section {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.upload-section h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: #4d4d4d;
    margin-bottom: 15px;
}

.file-upload {
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.file-upload:hover,
.file-upload:focus {
    background-color: #f0f0f0;
    color: #333;
    border-color: #1a4d8c;
    outline: none;
}

.file-upload:focus {
    box-shadow: 0 0 0 2px rgba(26, 77, 140, 0.5);
}

.file-icon {
    font-size: 1.5em;
    margin-right: 8px;
}

.action-buttons {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-section+.upload-section {
    margin-top: 30px;
}

.file-name {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

h4 {
    margin-top: 10px;
}

/* Estilo para el selector (select) */
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Estilo cuando el select está enfocado */
select:focus {
    border-color: #2a67b6;
    /* Color azul similar al botón */
    background-color: #f0f0f0;
    outline: none;
    /* Para evitar el borde por defecto */
}

/* Estilo para la etiqueta del select */
.upload-section select {
    font-size: 1em;
    color: #4d4d4d;
    margin-bottom: 15px;
    display: block;
}

/*Estilo tabla */
table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

th,
td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
}

td {
    background-color: #f2f2f2;
}

th {
    background-color: #e0e0e0;
}

/* Estilos para la barra de progreso */
.progress-container {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, #1b5e20);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-message {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}