/* Configuración general: Fuente y colores de fondo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Un modo oscuro muy gamer */
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    color: #bb86fc; /* Color morado neón */
}

/* --- SECCIÓN DE ESTADÍSTICAS (PROGRESO) --- */
.stats-container {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #444;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

#progress-bar {
    width: 0%; /* Empezamos en 0% */
    height: 100%;
    background: linear-gradient(90deg, #03dac6, #bb86fc);
    transition: width 0.4s ease; /* Para que la barra se mueva suave */
}

/* --- SECCIÓN DE ENTRADA (AÑADIR TAREAS) --- */
.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: white;
}

select, button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold; 
}

button {
    background-color: #03dac6;
    font-weight: bold;
    color: #000;
}

button:hover {
    background-color: #018786;
}

/* --- LISTA DE TAREAS --- */
ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: #333;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-delete {
    background-color: #cf6679;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-complete {
    background-color: #03dac6;
    padding: 5px 10px;
}

.btn-reset {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #cf6679; /* Color rojizo */
    color: white;
    font-size: 12px;
    padding: 8px 15px;
    opacity: 0.6; /* Un poco transparente para que no moleste */
    transition: opacity 0.3s;
}

.btn-reset:hover {
    opacity: 1; /* Se ilumina al pasar el ratón */
    background-color: #ff4444;
}