/* Estilos generales del cuerpo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    /* Apilamos los elementos verticalmente */
    flex-direction: column; 
    height: 100vh;
    margin: 0;
    background-color: #282c34; /* Un fondo un poco más suave */
    color: #fff;
    transition: background-color 0.5s ease;
}

/* --- NUEVOS ESTILOS PARA LA INTERFAZ SEPARADA --- */

/* Contenedor para el display (ocupa el espacio sobrante) */
.display-container {
    flex-grow: 1; /* Hace que este div ocupe todo el espacio vertical disponible */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Display del tiempo (ahora mucho más grande y responsivo) */
#timer-display {
    /* Usamos vw (viewport width) para que el tamaño se ajuste a la pantalla */
    font-size: clamp(80px, 25vw, 300px); 
    font-weight: 600; /* Letra más fina y elegante */
    letter-spacing: 4px;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Contenedor para la barra de controles inferior */
.controls-container {
    width: 100%;
    padding: 25px 0; /* Más espacio vertical */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Evita que se encoja */
}

/* El estilo de los botones se mantiene, solo se ajusta el margen */
.controls-container button {
    font-size: 1.2rem;
    padding: 12px 25px; /* Botones un poco más grandes */
    margin: 0 15px; /* Mayor separación */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s, transform 0.1s;
}

#reset-btn {
    background-color: #f44336;
}

#settings-btn {
    background-color: #008CBA;
}

.controls-container button:hover {
    opacity: 0.9;
}

.controls-container button:active {
    transform: scale(0.98);
}

/* --- ESTILOS DEL MODAL (SIN CAMBIOS SIGNIFICATIVOS) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #444;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input {
    width: 95%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #666;
    background-color: #555;
    color: #fff;
    font-size: 1rem;
}

#save-settings-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#save-settings-btn:hover {
    background-color: #45a049;
}