/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
}

/* Container */
.container {
    background-color: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.container:hover {
    transform: translateY(-5px);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.amount label,
.from label,
.to label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #555;
}

form input,
form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: 0.3s;
}

form input:focus,
form select:focus {
    border-color: #4facfe;
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.4);
    outline: none;
}

/* Dropdown */
.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    flex: 1;
    transition: 0.3s;
}

.select-container:hover {
    border-color: #4facfe;
}

.select-container img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.fa-right-left {
    font-size: 1.6rem;
    color: #4facfe;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.fa-right-left:hover {
    transform: rotate(180deg);
    color: #00f2fe;
}

/* Final message */
.finalmessage {
    text-align: center;
    background-color: #e0f7fa;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    color: #00796b;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.finalmessage.updated {
    background-color: #b2ebf2;
}

/* Button */
button {
    padding: 0.85rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
    .dropdown {
        flex-direction: column;
    }
    .fa-right-left {
        transform: rotate(90deg);
    }
}
