body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 500px;
}

h2 {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 0.3em;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 1.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1b5fbd;
}

/* ... (estilos existentes) ... */
.hidden {
    display: none;
}

#completion-section {
    text-align: center;
}

.button-group {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.control-btn, .control-btn-exit {
    padding: 12px 25px;
    font-size: 1.1em;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn {
    background-color: #2d89ef;
}

.control-btn:hover {
    background-color: #1b5fbd;
}

.control-btn-exit {
    background-color: #6c757d;
}

.control-btn-exit:hover {
    background-color: #5a6268;
}

.folder-btn {
    width: auto;
    padding: 10px 15px;
    font-size: 0.9em;
    background-color: #5a67d8;
    margin-bottom: 0.5em;
}
.folder-btn:hover {
    background-color: #434190;
}
.folder-path {
    font-family: monospace;
    font-size: 0.8em;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5em;
    word-wrap: break-word;
}
.hidden {
    display: none;
}
#progress-section {
    margin-top: 2em;
}
.progress-bar-container {
    width: 100%;
    background-color: #e0e0de;
    border-radius: 5px;
    margin-bottom: 1em;
}
.progress-bar {
    width: 0%;
    height: 20px;
    background-color: #4caf50;
    border-radius: 5px;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.4s ease;
}
#file-progress-label {
    font-size: 0.9em;
    color: #333;
}
.message-success {
    display: block;
    margin-top: 1em;
    padding: 1em;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 16px;
    text-align: center;
}
.message-error {
    display: block;
    margin-top: 1em;
    padding: 1em;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
}

.upload-btn {
    display: block; /* Para que ocupe todo el ancho */
    width: 95%;
    padding: 12px;
    font-size: 1.1em;
    background-color: #28a745; /* Verde claro */
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    margin-bottom: 1em; /* Espacio debajo del botón */
}

.upload-btn:hover {
    background-color: #218838; /* Verde un poco más oscuro */
}

/* Estilo para el párrafo que mostrará los archivos */
.file-list-display {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}
/* --- ESTILOS PARA LA SECCIÓN DE FINALIZACIÓN --- */

#completion-section {
    text-align: center;
}

.button-group {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    gap: 1em; /* Espacio entre los botones */
}

.control-btn, .control-btn-exit {
    padding: 12px 25px;
    font-size: 1.1em;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto; /* Ancho automático basado en el contenido */
}

.control-btn {
    background-color: #2d89ef; /* Azul */
}

.control-btn:hover {
    background-color: #1b5fbd;
}

.control-btn-exit {
    background-color: #6c757d; /* Gris */
}

.control-btn-exit:hover {
    background-color: #5a6268;
}