@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.5em; /* Un poco más grande para destacar */
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.card {
    background-color: #fdfdff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.drop-area {
    border: 2px dashed #a8c0ff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-area:hover {
    background-color: #eef2ff;
    border-color: #8cafff;
}

.drop-area.highlight {
    background-color: #eef2ff;
    border-color: #6a9eff;
}

.drop-area p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #fefefe;
}

.file-list li {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: #555;
    word-break: break-all;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list li .file-name {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list li .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.file-info {
    text-align: right;
    padding: 8px 5px;
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
    border-top: 1px solid #eee;
    margin-top: -1px; /* Para que el borde se una con la lista */
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 5px 5px; /* Redondear esquinas inferiores */
}


button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Empuja el botón hacia abajo */
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.hint-text {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 15px;
    line-height: 1.4;
}

.message-area {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    color: #333;
    background-color: #e0eaff;
    border: 1px solid #b3caff;
    display: none;
}

.message-area.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.message-area.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}