body {
    font-family: 'Inter', sans-serif;
    background-color: #E1CE7A;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}


.converter-container {
    width: 100%;
    max-width: 450px;
    margin: 1rem;
    padding: 2rem;
    background-color: #FDD692;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #4A5568; 
    margin-bottom: 0.5rem;
}

p {
    color: #718096;
    margin-bottom: 2rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group, .currency-group {
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4A5568;
    margin-bottom: 0.5rem;
}

input[type="number"],
select {
    width: 90%;
    padding: 0.75rem 1rem;
    background-color: #FFFBEB; 
    border: 1px solid #FBBF24;
    border-radius: 0.5rem;
    color: #4A5568;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.currency-inputs {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 1px;
}

.currency-group {
    flex: 1;
}


.select-wrapper {
    position: relative;
}

.currency-select {
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 24px;
    padding-left: 40px !important;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: #718096;
    position: absolute;
    right: 12px;
    top: 55%;
    /*left: auto;*/
    transform: translateY(-50%);
    pointer-events: none;
}




.swap-button-container {
    padding-bottom: 0.5rem; 
}


#swap-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #FFFBEB;
    border: 1px solid #FBBF24;
    border-radius: 50%;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

#swap-button:hover {
    background-color: #F59E0B;
    color: white;
    transform: rotate(180deg);
}

.swap-icon {
    width: 24px;
    height: 24px;
}


.result-container {
    margin-top: 2rem;
    min-height: 60px; 
}

#loading {
    color: #718096;
}

.result-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: #4A5568;
    display: none;
}

.rate-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
    display: none;
}

.error-message {
    color: #DC2626;
}