/* Estilos para subcategorias do widget */
.widget-subcategory {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

/* --- DASHBOARD FINANCEIRO (Versão Compacta Pro) --- */

#financial-dashboard {
    max-width: 1320px; /* O segredo do Finsiders */
    width: 95%; /* Margem de segurança para telas menores que 1320px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Evita que o conteúdo cole na borda em celulares */
    padding-right: 15px;
}


.dashboard-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o texto e ícone */
    gap: 8px;
}

.dashboard-subtitle i {
    color: var(--primary-color);
}

/* Área Cripto */
.crypto-header-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Cria 3 colunas: esquerda vazia, centro (título), direita (select) */
    align-items: center;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.crypto-header-wrapper .dashboard-subtitle {
    border: none;
    margin: 0;
    padding: 0;
    grid-column: 2; /* Coloca o título na coluna do meio */
    justify-self: center; /* Centraliza o título na coluna */
}

.crypto-header-wrapper .crypto-select-mini {
    grid-column: 3; /* Coloca o select na coluna da direita */
    justify-self: end; /* Alinha o select à direita */
}

.crypto-select-mini {
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    cursor: pointer;
}

.dashboard-footer {
    margin-top: 20px;
    text-align: right;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Container do Dashboard */
.banner-section .right-column #financial-dashboard {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Título do Dashboard padronizado com Ferramentas e Próximos Vencimentos */
#financial-dashboard h2 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-align: center;
}

.banner-section .right-column #financial-dashboard:hover {
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

/* Dashboard grid com mesmo gap das Ferramentas */
.banner-section .right-column .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    flex-grow: 1;
    align-content: start;
}

/* Cards do Dashboard padronizados com .quick-tool-card */
.banner-section .right-column .index-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.banner-section .right-column .index-card:hover {
    transform: scale(1.05);
    background: #cde6ff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-section .right-column .index-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.banner-section .right-column .index-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

/* RESPONSIVIDADE */

/* Tablet (menor que 1024px) -> 3 colunas */
@media (max-width: 1024px) {
    
}

/* Celular (menor que 600px) -> 2 colunas */
@media (max-width: 600px) {
    
}