/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-size: 2rem;
    color: #333;
}

section {
    margin-bottom: 30px;
}

input, select, button {
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#conversion-result, #total-result {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 40px;
}

/* Estilo para la sección de los selectores */
.currency-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.currency-selectors {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Animación para resultados */
#conversion-result, #total-result {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modo oscuro */
body.dark-mode {
    background-color: #333;
    color: white;
}

body.dark-mode .container {
    background-color: #444;
}

body.dark-mode button {
    background-color: #0066cc;
}

body.dark-mode button:hover {
    background-color: #004d99;
}

/* Diseño responsivo */
@media (max-width: 600px) {
    .container {
        margin: 20px;
    }

    input, select, button {
        font-size: 0.9rem;
    }
}
