/* /oab/css/simulado-moderno.css */

/* --- GERAL E TIPOGRAFIA --- */
body {
    font-family: 'Inter', sans-serif;
}

.top-heading .bg-primary {
    background-color: #0d6efd !important; /* Cor primária do Bootstrap 5 */
}

.content {
    padding-top: 80px; /* Espaço para o header fixo */
    padding-bottom: 100px; /* Espaço para a barra de controle fixa */
}

/* --- TELA INICIAL --- */
#intro-card {
    background-color: #ffffff;
}

#intro-card .form-select, #intro-card .btn {
    height: 48px;
    font-size: 1rem;
}

/* --- FORMULÁRIO DA PROVA --- */
.question-card {
    transition: box-shadow 0.2s ease-in-out;
}
.question-card:focus-within {
     box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.question-header {
    display: flex;
    align-items: center;
}
.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 700;
}
.question-exam-name {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}
.question-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #212529;
}

.options-group .list-group-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}
.options-group .list-group-item:hover {
    background-color: #f1f3f5;
}
.options-group .form-check-input {
    pointer-events: none; /* O clique é na label */
}
input[type="radio"]:checked + label, .options-group .list-group-item-action:has(input:checked) {
    background-color: #cfe2ff;
    border-color: #9ec5fe;
    color: #0a58ca;
    font-weight: 500;
}


/* --- BARRA DE CONTROLE DO EXAME --- */
#exam-controls {
    border-top: 1px solid #dee2e6;
}
#clock {
    font-weight: 700;
    color: #343a40;
}

/* --- TELA DE RESULTADOS --- */
#results-card .card-header {
    border-bottom: 0;
}

.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-size: 1rem;
    color: #6c757d;
}
.stat-card.text-success .stat-value { color: #198754; }
.stat-card.text-danger .stat-value { color: #dc3545; }
.stat-card.text-warning .stat-value { color: #ffc107; }
.stat-card.text-secondary .stat-value { color: #495057; }


/* --- REVISÃO DAS RESPOSTAS --- */
.review-card .list-group-item {
    font-size: 1rem;
}
.review-card .list-group-item b {
    margin-right: 5px;
}
.review-card .list-group-item-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.review-card .list-group-item-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Responsividade */
@media (max-width: 767px) {
    .content {
        padding-top: 60px;
    }
    .stat-value {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
}	
/* --- CSS ADICIONAL PARA O CÍRCULO DE PROGRESSO --- */
.progress-circle {
    width: 180px;
    height: 180px;
    position: relative;
    margin: 0 auto;
}

.progress-circle-svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #e9ecef; /* Cor do fundo do círculo */
    stroke-width: 18;
}

.progress-circle-fg {
    fill: none;
    stroke: #198754; /* Cor do progresso (verde) */
    stroke-width: 18;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    color: #198754;
}

.progress-circle-text .percent {
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

.progress-circle-text .label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: normal;
}
/* Estilos para o Modal de Aproveitamento Geral */

.aproveitamento-geral-modal {
    padding: 1rem;
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 1.1rem;
}

.user-details span {
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.chart-container {
    height: 250px;
    margin-bottom: 2rem;
    position: relative;
}

.history-container h5 {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

/* --- Mágica da Tabela Responsiva --- */

/* Esconde o cabeçalho da tabela em telas pequenas */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 1rem;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }

    /* Adiciona o label da coluna antes do conteúdo do td */
    .responsive-table td[data-label]::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        text-align: left;
        color: #343a40;
    }
}
/* --- Estilo para destacar pergunta não respondida --- */
.question-unanswered {
    border: 2px solid #dc3545 !important; /* Borda vermelha de perigo */
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}