*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:#403d39 ;
    padding: 20px;
}

.container{
    width: 100%;
    max-width: 480px;
    background-color: #252422;
    color: #e0e1dd;
    padding:30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0, .25);

}

.converter-header{
    color: #f8f9fa;
    margin-bottom: 30px;
}

.converter-header h1{
    font-size: 2rem;
    color: #006d77;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.converter-header p{
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

.amt{
    margin-bottom: 25px;
}

.amt label , 
.currency-box label{
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #edf6f9;
    margin-bottom: 8px;
}

.amt input{
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #012a4a;
    border-radius: 10px;
    font-size: 1.3rem;
    outline: none;
    transition: 0.3s ease-in;
}

.amt input:focus{
    border-color:#219ebc;
}

.dropdown{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.currency-box{
    flex: 1;
}

.select-container{
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #edf6f9;
    border-radius: 10px;
    padding: 5px 28px ;
    background: #fff;
    transition: 0.3s ease-in;
}

.select-container:focus-within{
    border-color: #219ebc;
}

.currency-flag{
    width: 45px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
}

.select-container select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 2px;
    color: #333;
}

.swap_btn{
    margin-top: 25px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #219ebc;
    color:white;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    flex-shrink: 0;
}

.swap_btn:hover{
    background: #012a4a;
    transform: rotate(180deg);
}


.msg{
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    color: #023047;
    font-weight: bold;
    font-size: 17px;
    border: 1px solid #bde7ef;
}

.btn{
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    color: #023047;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease-in;
}

.btn:hover{
    background: #e76f00;
    transform: translateY(-2px);
}

.btn i{
    cursor: pointer;
    color: #012a4a;
    transition: 0.3s ease-in;

}

.btn i:hover{
    color: #ffffff;
    transform: rotate(180deg);
}

.btn:active{
    transform: translateY(0);
}

@media (max-width: 500px){
    .container{
        padding: 22px;
    }

    .converter-header h1{
        font-size: 24px;
    }

    .dropdown{
        gap: 7px;
    }

    .swap-btn{
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .currency-flag{
        width: 32px;
        height: 24px;
    }

    .select-container select{
        font-size: 13px;
    }
}
