/* Estilos para a seção de cotação */
.exchange-container {
    background: #8b95a1;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.exchange-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.exchange-tabs {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    background: #f5f7fa;
    padding: 5px;
    border-radius: 30px;
}

.tab-btn {
    list-style: none;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: #c1c6c7;
}

.tab-btn img {
    width: 35px;
    height: 35px;
}

.tab-btn .active {
    border-bottom: 3px solid #2ecc71;
}


.currency-converter {
    margin-top: 20px;
}

.currency-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.currency-amount {
    flex: 1;
}

.currency-amount label {
    display: block;
    margin-bottom: 8px;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.currency-input-group {
    position: relative;
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.currency-flag {
    padding: 0 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e0e0e0;
}

.currency-flag img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.currency-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 1.1rem;
    color: #2c3e50;
    outline: none;
}

.currency-code {
    padding: 0 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.9rem;
}

.swap-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.swap-button:hover {
    background: #e8f5e9;
    color: #2ecc71;
    border-color: #2ecc71;
}

.chart-container {
    height: 200px;
    margin: 20px 0;
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.chart-periods {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.period-btn {
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s ease;
}

.period-btn.active {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.rate-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.rate-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-weight: 600;
    color: #2c3e50;
}

.buy-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
}

/* Estilos para o dropdown de moedas */
.currency-dropdown {
    position: relative;
    display: inline-block;
}

.currency-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: #f5f7fa;
}

.currency-option img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
}

.currency-option span {
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Estilos para o gráfico */
.chart-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2ecc71;
}

.chart-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0) 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .exchange-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .currency-row {
        flex-direction: column;
    }

    .exchange-header {
        flex-direction: column;
        gap: 15px;
    }
}

.exchange-container {
    color: #8b95a1;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.exchange-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.exchange-tabs {
    display: flex;
    gap: 12px;
}




.currency-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.currency-dropdown {
    position: relative;
    margin-bottom: 16px;
}

.selected-currency {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.selected-currency img {
    width: 24px;
    margin-right: 8px;
}

.currency-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.currency-option:hover {
    background: #f8f9fa;
}

.amount-input label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.currency-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1.2rem;
    text-align: right;
}

.conversion-arrow {
    text-align: center;
    margin: 16px 0;
    color: #2ecc71;
    font-size: 1.5rem;
}

.result-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.result-currency {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.result-currency img {
    width: 24px;
    margin-right: 8px;
}

.result-amount {
    font-size: 2rem;
    font-weight: 600;
    color: #2ecc71;
}

.exchange-rate {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.buy-button {
    width: 100%;
    padding: 16px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-button:hover {
    background: #27ae60;
}

div.flags > div > img {
    height: 30px;
    width: 30px;
    border-radius: 100%;
}

.sec1 .box-cotacao{
    background: #f5f7f9;
    display: flex;
    width: 100%;
    align-items: flex-start;
    padding:10px 30px 30px;
    flex-flow: column;
    color: #8b95a1;
}
.sec1 .box-cotacao ul.tabs-btn{
    list-style: none;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}
.sec1 .box-cotacao ul.tabs-btn li {
    width: 100%;
    display: flex;
    justify-content: center;
}
.sec1 .box-cotacao ul.tabs-btn li a{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 6px solid #fff;
    padding: 10px 0 8px;
    text-decoration: none !important;
    width: 130px;
}
.sec1 .box-cotacao ul.tabs-btn li a img{
    height: 35px;
    margin-bottom: 10px;
}
.sec1 .box-cotacao ul.tabs-btn li.active a{
    border-color: #d28d01;
}
.sec1 .box-cotacao ul.tabs-content{
    list-style: none;
    display: flex;
    justify-content: center;
    margin:15px 0 0 0;
    padding: 	0;
    width: 100%;
}

.sec1 .box-cotacao ul.tabs-content li .select-flags .flags{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    /*position: relative;*/
    /*background: #71c56c;*/
    /*height: 50px;*/
    /*width: 180px;*/
}

.sec1 .box-cotacao ul.tabs-content > li{
    display: none;
    width: 100%;
}
.sec1 .box-cotacao ul.tabs-content li.active{
    display: flex;
    flex-flow: column;
}
.sec1 .box-cotacao ul.tabs-content li .row{
    margin-left: -7.5px;
    margin-right: -7.5px;
}
.sec1 .box-cotacao ul.tabs-content li .row > *{
    padding-left: 7.5px;
    padding-right: 7.5px;
}
.sec1 .box-cotacao ul.tabs-content li h3{
    font-size: 30px;
    text-transform: uppercase;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px dashed #727272;
    color: #8b95a1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags{
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    -webkit-box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    margin-top: 15px;
    padding: 5px 10px;
}

.sec1 .box-cotacao ul.tabs-content li .select-flags .flags img{
    /*height: 25px;*/
    margin-right: 15px;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags ul{
    position: absolute;
    list-style: none;
    display: none;
    flex-flow: column;
    margin: 0;
    padding: 0;
    background: #ffffff;
    left: 0;
    right: 0;
    -webkit-box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags.active ul{
    display: flex;
}

.sec1 .box-cotacao ul.tabs-content li .select-flags .flags ul li a,
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags .selected{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-flow: row;
    padding: 12.5px 20px;
    cursor: pointer;
    height: 50px;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags ul li a{
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags .selected:hover,
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags ul li a:hover{
    background: rgba(255,255,255,.1);
    text-decoration: none;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags ul li span,
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags .selected span{
    font-size: 20px;
    text-transform: uppercase;
    color: #8b95a1;
    width: 80px;
    position: relative;
    padding-right: 25px;
}

.sec1 .box-cotacao .motivo.show button span:after,
.sec1 .box-cotacao ul.tabs-content li .select-flags .flags.active .selected span:after{
    transform: rotate(135deg);
    top: 10px;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .field {
    display: flex;
    align-items: flex-end;
    flex-flow: row;
    justify-content: space-between;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .field label {
    text-transform: uppercase;
    font-weight: 600;
    color: #bdb7b7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.sec1 .box-cotacao ul.tabs-content li .select-flags .field input{
    height: 50px;
    border-radius: 0;
    border: 0;
    width: 200px;
    font-size: 30px ;
    font-weight: bold;
    outline: 0;
    background: transparent;
    text-align: end;
}

@media (max-width: 768px) {
    .sec1 .box-cotacao ul.tabs-content li .select-flags .field input{
        width: 100px;
        font-size: 13px ;
        font-weight: 800;
    }
}

.sec1 .box-cotacao ul.tabs-content li .select-flags .field strong{
    padding-right: 15px;
    text-align: center;
    color: #71c56c;
    font-size: 18px;
    text-transform: uppercase;
    width: 100%;
    font-weight: normal;
}