/* 🔮 Módulo de Simulados & Matriz Visual (Tríade) */

.simulados-container {
    padding: 24px;
    background: #0f172a;
    border-radius: 16px;
    color: #f8fafc;
}

.simulados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.simulados-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-novo-simulado {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-novo-simulado:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Card de Simulado Cadastrado */
.simulado-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.simulado-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.simulado-card-info h3 {
    margin: 0 0 6px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #f1f5f9;
}

.simulado-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #0284c7;
    color: white;
}

.simulado-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    background: #0f172a;
    padding: 16px;
    border-radius: 12px;
}

.sim-stat-box {
    text-align: center;
}

.sim-stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.sim-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.sim-stat-value.certa { color: #22c55e; }
.sim-stat-value.errada { color: #ef4444; }
.sim-stat-value.liquida { color: #38bdf8; }

/* 🟢🔴⚪ Matriz Visual Tríade (Grid 1..N) */
.matriz-triade-container {
    margin-top: 16px;
}

.matriz-triade-header {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matriz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
    background: #0f172a;
    padding: 14px;
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
}

.q-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: none;
}

.q-box:hover {
    transform: scale(1.15);
}

.q-box.certa { background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3); }
.q-box.errada { background: #dc2626; box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); }
.q-box.branco { background: #475569; box-shadow: 0 2px 6px rgba(71, 85, 105, 0.3); }

/* Modal Cadastro Simulado */
.modal-simulado {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-simulado.active {
    display: flex;
}

.modal-sim-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
