* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    outline: none;
}

body {
    background: #232946;
    color: #F4F4F4;
    padding: 0 20px;
}


.logo {
    width: 320px;
    max-width: 90vw;
    margin: 10px auto 2px auto;
    display: block;
}

main {
    width: 100%;
    max-width: 375px;
    border-radius: 20px;
    background: #2A2D34;
    margin: 0 auto 32px;
    padding: 36px 20px 18px;
}

label {
    color: #C9B037;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}

select,
input {
    border-radius: 6px;
    border: 1px solid #393E46;
    background: #232946;
    height: 44px;
    width: 100%;
    margin-bottom: 20px;
    appearance: none;
    padding-left: 14px;
    font-size: 16px;
    font-weight: 400;
    color: #F4F4F4;
    cursor: pointer;
}

/* Remove as setas de input[type=number] com placeholder 'Digite o valor' */
input[type="number"][placeholder="Digite o valor"]::-webkit-outer-spin-button,
input[type="number"][placeholder="Digite o valor"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"][placeholder="Digite o valor"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

button {
    width: 100%;
    height: 44px;
    color: #F4F4F4;
    border-radius: 6px;
    background: linear-gradient(90deg, #5F4B8B 0%, #232946 100%);
    border: none;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #393E46;
    opacity: 0.95;
}

button:active {
    background: #5F4B8B;
    opacity: 0.7;
}

section {
    border-radius: 16px;
    border: 1px solid #393E46;
    margin-top: 28px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-img {
    margin: 10px 0;
}

.currency-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.currency-text {
    color: #C9B037;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.currency-value,
.currency-value-to-convert {
    color: #F4F4F4;
    font-size: 19px;
    font-weight: 700;
    line-height: 18px;
}

/* --- Media Queries --- */

/* Responsividade para telas de até 768px (tablets e laptops menores) */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    main {
        max-width: 98vw;
        border-radius: 16px;
    }

    .logo {
        width: 220px;
    }

    .currency-value,
    .currency-value-to-convert {
        font-size: 17px;
    }
}

/* Responsividade para telas de até 480px (smartphones) */
@media (max-width: 480px) {
    body {
        padding: 0 4vw;
    }

    main {
        max-width: 100%;
        min-width: unset;
        padding: 24px 8px 12px;
        margin: 0 auto 24px;
        border-radius: 14px;
    }

    .logo {
        width: 180px;
        margin: 8px auto 2px auto;
    }

    label {
        font-size: 14px;
    }

    select,
    input {
        height: 40px;
        font-size: 15px;
        margin-bottom: 16px;
        padding-left: 10px;
    }

    button {
        height: 40px;
        font-size: 15px;
    }

    section {
        border-radius: 12px;
        margin-top: 18px;
        padding: 8px;
    }

    .currency-text {
        font-size: 13px;
    }

    .currency-value,
    .currency-value-to-convert {
        font-size: 16px;
    }
}

/* Responsividade para telas muito pequenas (até 350px) */
@media (max-width: 350px) {
    .logo {
        width: 120px;
    }

    main {
        padding: 10px 2px 8px;
    }

    .currency-value,
    .currency-value-to-convert {
        font-size: 14px;
    }
}