/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container Styling */
.converter-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Input and Dropdown Styling */
.converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currency-input input,
.currency-selection select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.currency-input input:focus,
.currency-selection select:focus {
    border-color: #007bff;
    outline: none;
}

/* Labels */
label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

/* Button Styling */
button {
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Result Styling */
.result {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #333;
}

/* Loading and Error Styling */
.loading,
.error {
    display: none;
    margin-top: 1rem;
    font-size: 1rem;
}

.loading {
    color: #007bff;
}

.error {
    color: #ff4d4d;
}
