/* ===========================================================
   PÁGINAS DE DETALHES DOS INDICADORES FINANCEIROS - MEELION STYLE
   ===========================================================
   Estilos modernos para páginas internas dos indicadores financeiros
   seguindo o design system do CompararInvestimentos
----------------------------------------------------------- */

/* Container principal */
.financial-indicator-detail {
    padding: 40px 0;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    border: none;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

/* Sobreescrever o separador padrão do Bootstrap */
.breadcrumb-item + .breadcrumb-item::before {
    content: '›' !important;
    float: none !important;
    padding-right: 0 !important;
    color: #adb5bd !important;
    font-weight: 400;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Remover qualquer outro separador que o Bootstrap possa adicionar */
.breadcrumb-item:not(:last-child)::after {
    content: none !important;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #2E6C86;
    background-color: rgba(46, 108, 134, 0.1);
    text-decoration: none;
}

.breadcrumb-item:last-child a {
    color: #495057;
    font-weight: 500;
    background-color: transparent;
}

/* Header da página */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.title-section {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 1;
}



.title-content {
    flex: 1;
}

.page-title {
    color: #2E6C86;
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.current-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.current-value .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #a0d533;
    text-shadow: 0 2px 4px rgba(160, 213, 51, 0.2);
}

.current-value .label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
    background: transparent;
    border: none;
    white-space: nowrap;
    flex: 1;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.update-info .material-icons {
    font-size: 1rem;
    color: #2E6C86;
}

/* Descrição principal */
.description-section {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    text-align: justify;
    flex: 2;
    max-width: 66.666%;
}

.main-description p {
    margin: 0 0 1rem 0;
}

.main-description p:last-child {
    margin-bottom: 0;
}

/* Grid de cards de informações */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(46, 108, 134, 0.06);
}



.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 108, 134, 0.12);
    border-color: #a0d533;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.card-icon .material-icons {
    font-size: 1.5rem;
    color: #2E6C86;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2E6C86;
    margin: 0;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-display .value {
    font-size: 2rem;
    font-weight: 700;
    color: #2E6C86;
}

.value-display .date {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.projection-list,
.history-list,
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.projection-item,
.history-item,
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(46, 108, 134, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.projection-item:hover,
.history-item:hover,
.recent-item:hover {
    background: rgba(46, 108, 134, 0.1);
    transform: translateX(4px);
}

.projection-item .year,
.history-item .year,
.recent-item .date {
    font-weight: 600;
    color: #2E6C86;
}

.projection-item .rate,
.history-item .rate,
.recent-item .rate {
    font-weight: 700;
    color: #a0d533;
    font-size: 1.125rem;
}

/* Seção do gráfico */
.chart-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0.5rem;
}

.section-header h2 {
    color: #2E6C86;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
}

.section-header p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-button,
.graph-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-button.active,
.chart-button:hover,
.graph-button.active,
.graph-button:hover {
    background: rgba(46, 108, 134, 0.05);
    color: #2E6C86;
    border-color: #2E6C86;
}

.chart-button.active,
.graph-button.active {
    background: rgba(46, 108, 134, 0.1);
    border-color: #2E6C86;
    color: #2E6C86;
}

.chart-button .material-icons,
.graph-button .material-icons {
    font-size: 1rem;
}

.chart-container {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 400px;
}

/* Seção de tabelas */
.tables-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.table-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(46, 108, 134, 0.06);
    transition: all 0.3s ease;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 108, 134, 0.1);
}

.table-header {
    background: transparent;
    color: #2E6C86;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.table-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.table-container {
    padding: 1.5rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: rgba(46, 108, 134, 0.1);
    color: #2E6C86;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-weight: 500;
}

.modern-table tr:hover {
    background: rgba(160, 213, 51, 0.05);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

/* Seção FAQ */
.faq-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accordion {
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    max-width: 800px;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

.accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    color: #2E6C86;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.accordion-button:hover {
    background: rgba(46, 108, 134, 0.05);
    color: #2E6C86;
}

.accordion-button:not(.collapsed) {
    background: rgba(46, 108, 134, 0.08);
    color: #2E6C86;
    border-left: 3px solid #2E6C86;
}

.accordion-button::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E6C86'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-collapse {
    background: transparent;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
    margin-left: 3px;
}

/* Seção de detalhes */
.details-section {
    margin-bottom: 2rem;
}

.details-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 2rem;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-list li {
    position: relative;
    padding-left: 2rem;
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
}

.details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #a0d533;
    border-radius: 50%;
}

/* Responsividade */
@media (max-width: 1200px) {
    .info-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .tables-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .financial-indicator-detail {
        padding: 30px 0;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    

    
    .page-title {
        font-size: 2rem;
    }
    
    .current-value .value {
        font-size: 1.75rem;
    }
    
    .update-info {
        align-self: stretch;
        justify-content: flex-start;
        flex: none;
        width: 100%;
    }
    
    .description-section {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .main-description {
        max-width: 100%;
    }
    
    .main-description {
        font-size: 1rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .chart-controls {
        align-self: stretch;
        justify-content: center;
    }
    
    .chart-button,
    .graph-button {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: center;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .accordion-button {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
    }
    
    .details-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .current-value .value {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon .material-icons {
        font-size: 1.25rem;
    }
    
    .card-header h3 {
        font-size: 1.125rem;
    }
    
    .value-display .value {
        font-size: 1.75rem;
    }
    
    .projection-item,
    .history-item {
        padding: 0.5rem;
    }
    
    .projection-item .rate,
    .history-item .rate {
        font-size: 1rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .accordion {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Animações */
.info-card,
.table-card,
.accordion-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation */
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.table-card:nth-child(1) { animation-delay: 0.4s; }
.table-card:nth-child(2) { animation-delay: 0.5s; }

.accordion-item:nth-child(1) { animation-delay: 0.6s; }
.accordion-item:nth-child(2) { animation-delay: 0.7s; }
.accordion-item:nth-child(3) { animation-delay: 0.8s; }
.accordion-item:nth-child(4) { animation-delay: 0.9s; }
.accordion-item:nth-child(5) { animation-delay: 1.0s; }
.accordion-item:nth-child(6) { animation-delay: 1.1s; }
.accordion-item:nth-child(7) { animation-delay: 1.2s; }
.accordion-item:nth-child(8) { animation-delay: 1.3s; } 