/* Estilos para o painel de indicadores financeiros */
.manus-if-main-title {
    color: #1E3A8A !important;
    text-align: center;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    font-size: 2.2em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.manus-if-painel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
    padding: 0;
}

/* Estilos para cada card individual */
.manus-if-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.manus-if-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.manus-if-card:hover {
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    transform: translateY(-6px);
    border-color: #007bff;
}

.manus-if-card:hover::before {
    transform: scaleX(1);
}

.manus-if-card-header {
    margin-bottom: 20px;
}

.manus-if-card-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.manus-if-card-body {
    margin-bottom: 20px;
}

.manus-if-card-value {
    font-size: 2.8em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    transition: color 0.3s ease;
}

.manus-if-card:hover .manus-if-card-value {
    color: #0056b3;
}

.manus-if-card-subtitle {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.manus-if-card-updated {
    font-size: 0.85em;
    color: #adb5bd;
    font-style: italic;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* Cores específicas para cada tipo de indicador */
.manus-if-card-selic {
    --card-color: #28a745;
}

.manus-if-card-cdi {
    --card-color: #1E3A8A;
}

.manus-if-card-dolar_comercial,
.manus-if-card-dolar_ptax {
    --card-color: #ffc107;
}

.manus-if-card-euro {
    --card-color: #6f42c1;
}

.manus-if-card-ipca {
    --card-color: #dc3545;
}

.manus-if-card-sofr {
    --card-color: #17a2b8;
}

.manus-if-card-dolar_futuro {
    --card-color: #fd7e14;
}

.manus-if-card-dolar_bmf_spot {
    --card-color: #8B4513;
}

.manus-if-card-selic::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.manus-if-card-cdi::before {
    background: linear-gradient(90deg, #1E3A8A, #3B82F6);
}

.manus-if-card-dolar_comercial::before,
.manus-if-card-dolar_ptax::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.manus-if-card-euro::before {
    background: linear-gradient(90deg, #6f42c1, #e83e8c);
}

.manus-if-card-ipca::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.manus-if-card-sofr::before {
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

.manus-if-card-dolar_futuro::before {
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

.manus-if-card-dolar_bmf_spot::before {
    background: linear-gradient(90deg, #8B4513, #A0522D);
}

.manus-if-card-selic .manus-if-card-value {
    color: #28a745;
}

.manus-if-card-cdi .manus-if-card-value {
    color: #1E3A8A;
}

.manus-if-card-dolar_comercial .manus-if-card-value,
.manus-if-card-dolar_ptax .manus-if-card-value {
    color: #e67e22;
}

.manus-if-card-euro .manus-if-card-value {
    color: #6f42c1;
}

.manus-if-card-ipca .manus-if-card-value {
    color: #dc3545;
}

.manus-if-card-sofr .manus-if-card-value {
    color: #17a2b8;
}

.manus-if-card-dolar_futuro .manus-if-card-value {
    color: #fd7e14;
}

.manus-if-card-dolar_bmf_spot .manus-if-card-value {
    color: #8B4513;
}

/* Estilos para mensagens de erro */
.manus-if-error {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9em;
}

.manus-if-error-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #fc8181;
    animation: shake 0.5s ease-in-out;
}

.manus-if-error-card::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.manus-if-error-card h3,
.manus-if-error-card p {
    color: #dc3545;
}

/* Animação de shake para erros */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Indicadores inline (para uso em texto) */
.manus-if-indicator {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.manus-if-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Layout alternativo: lista */
.manus-if-layout-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manus-if-layout-lista .manus-if-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
}

.manus-if-layout-lista .manus-if-card-header {
    flex: 1;
    margin-bottom: 0;
    margin-right: 20px;
}

.manus-if-layout-lista .manus-if-card-body {
    margin-bottom: 0;
    text-align: right;
}

.manus-if-layout-lista .manus-if-card-value {
    font-size: 2em;
    margin-bottom: 4px;
}

/* Responsividade avançada */
@media (max-width: 768px) {
    .manus-if-painel {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .manus-if-card {
        padding: 20px;
    }
    
    .manus-if-card-value {
        font-size: 2.4em;
    }
    
    .manus-if-layout-lista .manus-if-card {
        flex-direction: column;
        text-align: center;
    }
    
    .manus-if-layout-lista .manus-if-card-header {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .manus-if-layout-lista .manus-if-card-body {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .manus-if-card {
        padding: 16px;
    }
    
    .manus-if-card-value {
        font-size: 2em;
    }
}



/* Estilos para o container principal */
.manus-if-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para o cabeçalho */
.manus-if-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.manus-if-main-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #212529;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manus-if-main-description {
    font-size: 1.1em;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para descrições dos cards */
.manus-if-card-description {
    font-size: 0.9em;
    color: #6c757d;
    margin: 8px 0 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* Cores específicas para os novos indicadores */
.manus-if-card-ipca {
    --card-color: #dc3545;
}

.manus-if-card-ibc_br {
    --card-color: #20c997;
}

.manus-if-card-taxa_di {
    --card-color: #fd7e14;
}

.manus-if-card-bitcoin {
    --card-color: #f39c12;
}

.manus-if-card-ipca::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.manus-if-card-ibc_br::before {
    background: linear-gradient(90deg, #20c997, #17a2b8);
}

.manus-if-card-taxa_di::before {
    background: linear-gradient(90deg, #fd7e14, #e67e22);
}

.manus-if-card-bitcoin::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.manus-if-card-ipca .manus-if-card-value {
    color: #dc3545;
}

.manus-if-card-ibc_br .manus-if-card-value {
    color: #20c997;
}

.manus-if-card-taxa_di .manus-if-card-value {
    color: #fd7e14;
}

.manus-if-card-bitcoin .manus-if-card-value {
    color: #f39c12;
}

/* Melhorias de responsividade para o cabeçalho */
@media (max-width: 768px) {
    .manus-if-container {
        padding: 15px;
    }
    
    .manus-if-header {
        margin-bottom: 30px;
        padding: 20px 15px;
    }
    
    .manus-if-main-title {
        font-size: 2em;
    }
    
    .manus-if-main-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .manus-if-main-title {
        font-size: 1.8em;
    }
    
    .manus-if-main-description {
        font-size: 0.95em;
    }
}

/* Estados de loading */
.manus-if-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.manus-if-card.loading .manus-if-card-value {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

