* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 80%,
            rgba(142, 7, 235, 0.7) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(235, 7, 131, 0.7) 0%,
            transparent 50%),
        radial-gradient(circle at 40% 40%,
            rgba(217, 7, 235, 0.6) 0%,
            transparent 50%),
        radial-gradient(circle at 60% 60%,
            rgba(223, 85, 235, 0.6) 0%,
            transparent 50%);

    width: 100%;
    height: 100vh;
    backdrop-filter: blur(40px);

    /* Animação suave */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

.container {
    background: white;
    width: 90%  ;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.coverter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.currency-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.currency-input{
    flex: 2;
}

.currency-select {
    flex: 1;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(238, 0, 238, 0.158);
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    text-align: left;
}

input:focus, select:focus {
    outline: none;
    border-color: rgba(238, 0, 238);
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    transform: translateY(-2px);
}

.converter-btn {
    background:
        radial-gradient(circle at 20% 80%,
            rgba(142, 7, 235, 0.7) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(235, 7, 131, 0.7) 0%,
            transparent 50%),
        radial-gradient(circle at 40% 40%,
            rgba(217, 7, 235, 0.6) 0%,
            transparent 50%),
        radial-gradient(circle at 60% 60%,
            rgba(223, 85, 235, 0.6) 0%,
            transparent 50%);
        color: #fff;
        border: none;
        padding: 15px 30px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 10px;
        transition: all 0.3s ease;

}
.converter-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.loading {
    margin-top: 20px;
    display: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.info {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    font-size: 16px;
}

.result {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    margin-top: 30px;
    margin-top: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    display: none;
}

.error {
    background: linear-gradient(45deg, #fc4a85 10%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    display: none;
}