/**
 * Folha de Estilo Pública - Dashboard Clean v1.1.1
 * Design Minimalista, Moderno e Flat (Inspirado no print fornecido)
 */

.interage-dashboard-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* ================= 1. CABEÇALHO DO PAINEL ================= */
.interage-dashboard-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.interage-dashboard-breadcrumbs {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.interage-dashboard-titulo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ================= 2. ESTRUTURA GERAL DE PAINÉIS (BLOCOS) ================= */
.interage-dashboard-bloco {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}

.bloco-topo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.interage-dashboard-bloco h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Dropdowns e Filtros de Período Ultra Clean */
.bloco-filtros-periodo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtro-data-select {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filtro-data-select:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.filtro-data-select i {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.filtro-periodo-dropdown, .filtro-simulado-dropdown {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 30px 6px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3专业级%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 18px;
    transition: all 0.2s ease;
}

.filtro-periodo-dropdown:hover, .filtro-simulado-dropdown:hover {
    border-color: #94a3b8;
}

.filtro-periodo-dropdown:focus, .filtro-simulado-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
}

/* ================= 3. PRIMEIRA LINHA (DESEMPENHO + RENDIMENTO) ================= */
.interage-dashboard-grid-topo {
    display: grid;
    grid-template-columns: 7.2fr 2.8fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .interage-dashboard-grid-topo {
        grid-template-columns: 1fr;
    }
}

/* Métricas Horizontais Minimalistas */
.interage-dashboard-metrics-bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.metric-horizontal-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
}

/* Cores específicas baseadas na imagem de referência */
.item-azul .metric-value { color: #3b82f6; }
.item-verde .metric-value { color: #10b981; }
.item-vermelho .metric-value { color: #ef4444; }
.item-roxo .metric-value { color: #8b5cf6; }
.item-laranja .metric-value { color: #f97316; }

/* Contêineres dos Gráficos */
.chart-container-line {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-container-donut {
    position: relative;
    height: 220px;
    width: 100%;
    margin-top: 15px;
}

/* Limpar Histórico */
.bloco-limpar-desempenho-container {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    text-align: center;
}

.btn-limpar-historico {
    background: none;
    border: none;
    color: #f97316;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-limpar-historico:hover {
    color: #ea580c;
    background-color: #fff7ed;
}

.btn-limpar-historico i {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* ================= 4. SEGUNDA LINHA (TABELA DE DISCIPLINAS CLEAN) ================= */
.interage-tabela-disciplinas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.interage-tabela-disciplinas th {
    color: #475569;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    background-color: #ffffff;
}

.interage-tabela-disciplinas td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.interage-tabela-disciplinas tr:hover td {
    background-color: #f8fafc;
}

/* ================= 5. TERCEIRA LINHA (SIMULADOS E PROVAS) ================= */
.interage-dashboard-grid-inferior {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .interage-dashboard-grid-inferior {
        grid-template-columns: 1fr;
    }
}

.lista-simulados-container, .lista-provas-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.item-simulado, .item-prova {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
}

.item-simulado:last-child, .item-prova:last-child {
    border-bottom: none;
}

.simulado-meta, .prova-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 5px;
}

.simulado-questoes-num, .prova-questoes-num {
    color: #64748b;
}

.simulado-conteudo-linha, .prova-conteudo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.simulado-nome, .prova-nome {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

.simulado-acoes, .prova-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Badges e Status */
.status-badge-simulado, .status-badge-prova {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.status-badge-simulado.em-andamento {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge-prova.disponivel {
    background-color: #f1f5f9;
    color: #475569;
}

/* Ações (Botões impressora e lixeira) */
.simulado-btn-impressora, .simulado-btn-lixeira, .prova-btn-impressora {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.simulado-btn-impressora:hover, .prova-btn-impressora:hover {
    color: #3b82f6;
    background-color: #eff6ff;
}

.simulado-btn-lixeira:hover {
    color: #ef4444;
    background-color: #fef2f2;
}

/* ================= 6. SKELETON LOADER ANIMATION (MODERNO) ================= */
.interage-dashboard-skeleton {
    width: 100%;
}

.sk-line {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    border-radius: 4px;
}

.sk-grid-topo {
    display: grid;
    grid-template-columns: 7.2fr 2.8fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .sk-grid-topo {
        grid-template-columns: 1fr;
    }
}

.sk-bloco {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.sk-bloco .h { width: 40%; height: 20px; margin-bottom: 20px; }

.sk-metrics-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.sk-metric-item {
    width: 70px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 4px;
}

.sk-chart-evol {
    flex-grow: 1;
    background: #f1f5f9;
    border-radius: 6px;
}

.sk-circle-rend {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 15px solid #f1f5f9;
    margin: auto;
}

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

/* ================= 7. BANNER DE ERRO / NÃO LOGADO ================= */
.interage-dashboard-erro {
    padding: 40px 10px;
    display: flex;
    justify-content: center;
}

.aviso-erro-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aviso-erro-card i {
    font-size: 40px;
    color: #3b82f6;
    background-color: #eff6ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.aviso-erro-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.aviso-erro-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ================= 5. SIMULADOS E CADERNOS DINÂMICOS (v3.0.0) ================= */
.interage-simulado-modal-overlay, .interage-caderno-modal-overlay {
    transition: opacity 0.25s ease;
}

.simulado-btn-retomar:hover {
    background-color: #1d4ed8 !important;
}

.item-simulado:hover, .item-caderno:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

/* Esconde elementos indesejáveis na visualização do Simulado Ativo */
.interage-simulado-runner-overlay .responder-btn,
.interage-simulado-runner-overlay .feedback-rapido-container,
.interage-simulado-runner-overlay .questao-footer-tabs,
.interage-simulado-runner-overlay .questao-tab-content-drawer {
    display: none !important;
}

/* Ajustes finos do Runner */
.interage-simulado-runner-overlay .interage-questao-card {
    margin-bottom: 25px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

.interage-simulado-runner-overlay .alternativa-item.selecionada {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e3a8a !important;
}

.interage-simulado-runner-overlay .alternativa-item.selecionada .letra-circulo {
    background-color: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

/* ================= 6. OFENSIVA E REVISÕES PENDENTES (v3.1.0) ================= */
@keyframes flame-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4));
    }
    100% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.7));
    }
}

.interage-dashboard-ofensiva-container span.ofensiva-icon {
    animation: flame-pulse 1.2s infinite alternate ease-in-out;
}

.interage-dashboard-revisoes-alert {
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.05), 0 2px 4px -1px rgba(217, 119, 6, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.interage-dashboard-revisoes-alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.08);
}

#btn-iniciar-revisao-dashboard:hover {
    background-color: #b45309 !important;
}

.simulado-btn-impressora:hover {
    color: #1e293b !important;
    background-color: #f1f5f9 !important;
    border-radius: 4px;
}

/* ================= 7. GAMIFICAÇÃO, METAS E INTERAÇÕES (v3.2.0) ================= */
.btn-configurar-meta:hover {
    color: #2563eb !important;
    text-decoration: underline;
}

.item-conquista:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.comentario-curtir-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b !important;
}

.comentario-curtir-btn.curtido:hover {
    background-color: #eff6ff;
    color: #2563eb !important;
}

.comentario-curtir-btn:active {
    transform: scale(0.9);
}

/* ================= 8. FAVORITOS, THREADS E DIFICULDADE (v3.3.0) ================= */
.interage-favoritar-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.interage-favoritar-btn:hover {
    transform: scale(1.3);
    color: #f59e0b !important;
}

.interage-favoritar-btn:active {
    transform: scale(0.9);
}

.virtual-caderno-favoritas {
    border-color: #f59e0b !important;
    transition: transform 0.25s, box-shadow 0.25s;
}

.virtual-caderno-favoritas:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.08);
}

.comentario-responder-trigger:hover {
    background-color: #eff6ff;
    color: #2563eb !important;
}

.comentario-aluno-resposta {
    transition: all 0.2s ease;
}

.comentario-aluno-resposta:hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}

.questao-acerto-bar-bg {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-tabela-estatisticas {
    transition: all 0.2s ease;
}

.tab-tabela-estatisticas:hover {
    color: #1e293b !important;
}
