.sidebar {
    margin-top:70px; /* Ajuste para descer após o header fixo de 90px de altura (padding + imagem) */
    grid-row: 2 / -1; /* Ocupa as linhas restantes após o header */
    background-color: #fcfcfc; /* Fundo do sidebar é um branco suave */
    padding: 20px 10px;
    font-weight: 700;
    border-right: 1px solid var(--cor01); /* Borda direita laranja */
}
.main-content {

    flex-grow: 1; /* Allows the main content to take up available space */
    padding: 20px;
    background-color: white; /* Dark background for the main content area */
    color: black; /* Light text color */
    overflow-y: auto; /* Enable scrolling if content overflows */
    margin-left: 40px; /* Adjust based on your sidebar width */
    padding-top: 80px; /* Adjust for fixed header height */
}

h2 {
  
    color: black;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.balance-cards {

    display: grid; /* Usar Grid para melhor controle de colunas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colunas responsivas */
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-left: 5.5px solid var(--cor01);
    margin-left: 0; /* REMOVIDO: Margem negativa que causava problemas */
    background-color: var(--cor02);
    border-radius: 10px;
    padding: 25px;
    height: 150px; /* Altura ajustada para ser mais compacta */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
   /* Sombra mais suave */
}

.balance-card h3 {
    color: #000000;
    font-size: 1.1em;
    margin-bottom: 10px; /* Espaço ajustado */
    font-weight: 500;
}

.balance-info {
   
    display: flex;
    align-items: center;
    justify-content: space-between; /* Mantido para alinhar valor e ícone (se houver) */
    margin-bottom: 0; /* Removido, pois já há espaço no h3 */
}

.balance-info .amount {
    margin-left: 0; /* REMOVIDO: Margem negativa que forçava posicionamento */
    font-size: 2.2em;
    font-weight: 700;
    color: var(--cor01); /* Valor em laranja, como na captura de tela */
}

/* Ocultado se não houver funcionalidade */
.balance-info .fas.fa-eye {
    display: none; 
}

.withdraw-button { /* Botão de saque, se existir */
    background-color: #007bff; 
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-end; 
    margin-top: auto; 
}

.withdraw-button:hover {
    background-color: #0056b3;
}

.finance-details-card {
    margin-right: 0; /* REMOVIDO: Margem que apertava o card */
    background-color: var(--cor02);
    border-radius: 10px;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; /* Sombra mais suave */
}

/* Aba "Detalhes" (se você tiver apenas uma, a navegação de abas não é estritamente necessária, mas o estilo pode ser mantido) */
.finance-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    /* Se você tem apenas uma aba, pode remover overflow-x: auto */
    /* overflow-x: auto; */ 
}

.tab-item {
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap; 
    border-bottom: 2px solid transparent; 
}

.tab-item:hover {
    color: var(--cor01); /* Cor de hover em laranja para ser legível */
    border-bottom-color: var(--cor01); /* Cor da borda de hover */
}

.tab-item.active {
    color: var(--cor01); /* Cor ativa em laranja */
    border-bottom: 2px solid var(--cor01);
}

/* Estilos de título e subtítulo dentro do conteúdo da aba */
.tab-content h3 { /* NÃO USEI NO HTML FORNECIDO, MAS SE TIVER, ESTILIZA */
    color: black;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tab-content .subtitle { /* NÃO USEI NO HTML FORNECIDO, MAS SE TIVER, ESTILIZA */
    color: black;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Lista de Métodos de Pagamento */
.fees-list {
    display: grid; /* Usar Grid para os itens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colunas responsivas */
    gap: 20px;
}

.fees-list .fee-item {
    background-color: var(--cor02); /* Fundo branco */
    border-radius: 10px; /* Bordas arredondadas */
    padding: 20px; /* Padding interno */
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra mais suave */
}

.fees-list .fee-item i {
    font-size: 2.2em; /* Tamanho do ícone ajustado */
    color: var(--cor01); 
    min-width: 40px; /* Garante que o ícone tenha um espaço mínimo */
    text-align: center;
}

.fee-details {
    flex-grow: 1; 
}

.fee-details h4 {
    color: #333; /* Cor mais escura para o título do método */
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.fee-details .percentage { 
    font-size: 1.2em;
    font-weight: bold;
    color: #F58220; /* Verde para porcentagens */
}

.fee-details .fee-value { /* CLASSE CORRIGIDA no HTML e CSS */
    font-size: 1.1em;
    font-weight: bold;
    color: var(--cor01); /* Laranja para o valor total por método */
    margin-top: 5px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0; /* Remove margin for smaller screens, sidebar will overlay */
        padding-top: 60px; /* Adjust padding for potentially smaller header */
    }

    .balance-cards {
        flex-direction: column; /* Stack cards vertically on small screens */
    }

    .balance-card,
    .finance-details-card {
        padding: 20px;
    }

    .balance-info .amount {
   
        color: black;
        font-size: 1.8em;
    }

    .withdraw-button {
        width: 100%; /* Full width button */
    }

    .finance-tabs {
        justify-content: flex-start; /* Align tabs to start when overflowing */
    }

    .tab-item {
        padding: 10px 15px;
    }

    .fees-list .fee-item {
        flex-direction: column; /* Stack fee item elements vertically */
        align-items: flex-start;
        gap: 10px;
    }

    .fees-list .fee-item i {
        margin-bottom: 5px; /* Add space below icon */
    }

    .receipt-time {
        width: 100%; /* Full width for receipt time */
        justify-content: flex-end; /* Align to the right */
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    .balance-card {
        padding: 15px;
    }

    .balance-info .amount {
        font-size: 1.5em;
    }

    .withdraw-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .finance-details-card {
        padding: 15px;
    }

    .tab-item {
        font-size: 0.9em;
    }

    .fee-details h4 {
        font-size: 1em;
    }

    .fee-details p, .receipt-time {
        font-size: 0.85em;
    }
}

@media (max-width:1600px){
    .balance-info .amount {
        margin-left: -230px;
        font-size: 2.2em;
        font-weight: 700;
        color: #000000; /* Bright green for money */
    }
}

@media(max-width:390px){
    h2 {
    margin-top: 20px;
        color: black;
        margin-bottom: 25px;
        font-size: 1.8em;
        font-weight: 600;
    }
    
    .balance-cards {
    
        display: grid; /* Usar Grid para melhor controle de colunas */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colunas responsivas */
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .balance-card {
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border-left: 5.5px solid var(--cor01);
        margin-left: 0; /* REMOVIDO: Margem negativa que causava problemas */
        background-color: var(--cor02);
        border-radius: 10px;
        padding: 25px;
        height: 150px; /* Altura ajustada para ser mais compacta */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
       /* Sombra mais suave */
    }
    
    .balance-card h3 {
        color: #000000;
        font-size: 1.1em;
        margin-bottom: 10px; /* Espaço ajustado */
        font-weight: 500;
    }
    
    .balance-info {
       
        display: flex;
        align-items: center;
        justify-content: space-between; /* Mantido para alinhar valor e ícone (se houver) */
        margin-bottom: 0; /* Removido, pois já há espaço no h3 */
    }
    
    .balance-info .amount {
        margin-left: 0; /* REMOVIDO: Margem negativa que forçava posicionamento */
        font-size: 2.2em;
        font-weight: 700;
        color: black; /* Valor em laranja, como na captura de tela */
    }
    
    /* Ocultado se não houver funcionalidade */
    .balance-info .fas.fa-eye {
        display: none; 
    }
    
    .withdraw-button { /* Botão de saque, se existir */
        background-color: #007bff; 
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        transition: background-color 0.3s ease;
        align-self: flex-end; 
        margin-top: auto; 
    }
    
    .withdraw-button:hover {
        background-color: #0056b3;
    }
    
    .sidebar {
        margin-top:0px; /* Ajuste para descer após o header fixo de 90px de altura (padding + imagem) */
        grid-row: 2 / -1; /* Ocupa as linhas restantes após o header */
        background-color: #fcfcfc; /* Fundo do sidebar é um branco suave */
        padding: 20px 10px;
        font-weight: 700;
        border-right: 1px solid var(--cor01); /* Borda direita laranja */
    }
}


@media(max-width:1280px){
    h2 {
    margin-top: 20px;
        color: black;
        margin-bottom: 25px;
        font-size: 1.8em;
        font-weight: 600;
    }
    
    .balance-cards {
    
        display: grid; /* Usar Grid para melhor controle de colunas */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colunas responsivas */
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .balance-card {
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border-left: 5.5px solid var(--cor01);
        margin-left: 0; /* REMOVIDO: Margem negativa que causava problemas */
        background-color: var(--cor02);
        border-radius: 10px;
        padding: 25px;
        height: 150px; /* Altura ajustada para ser mais compacta */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
       /* Sombra mais suave */
    }
    
    .balance-card h3 {
        color: #000000;
        font-size: 1.1em;
        margin-bottom: 10px; /* Espaço ajustado */
        font-weight: 500;
    }
    
    .balance-info {
       
        display: flex;
        align-items: center;
        justify-content: space-between; /* Mantido para alinhar valor e ícone (se houver) */
        margin-bottom: 0; /* Removido, pois já há espaço no h3 */
    }
    
    .balance-info .amount {
        margin-left: 0; /* REMOVIDO: Margem negativa que forçava posicionamento */
        font-size: 2.2em;
        font-weight: 700;
        color: black; /* Valor em laranja, como na captura de tela */
    }
    
    /* Ocultado se não houver funcionalidade */
    .balance-info .fas.fa-eye {
        display: none; 
    }
    
    .withdraw-button { /* Botão de saque, se existir */
        background-color: #007bff; 
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        transition: background-color 0.3s ease;
        align-self: flex-end; 
        margin-top: auto; 
    }
    
    .withdraw-button:hover {
        background-color: #0056b3;
    }
    
    .sidebar {
        margin-top:0px; /* Ajuste para descer após o header fixo de 90px de altura (padding + imagem) */
        grid-row: 2 / -1; /* Ocupa as linhas restantes após o header */
        background-color: #fcfcfc; /* Fundo do sidebar é um branco suave */
        padding: 20px 10px;
        font-weight: 700;
        border-right: 1px solid var(--cor01); /* Borda direita laranja */
    }
}

