/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4; /* Fundo cinza claro da imagem */
    color: #333;
}

/* === Cabeçalho Superior === */
.top-header {
    background-color: #004b36; /* Verde escuro da Universidade */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 50px;
}

.logo-container {
    width: 250px;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: auto; /* Deixando no tamanho natural dela */
    max-height: 38px; /* Apenas garantindo que não vaze o menu verde */
    object-fit: contain;
}

.title-container {
    flex-grow: 1;
    text-align: center;
}

.title-container h1 {
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Faixa amarela abaixo do cabeçalho */
.yellow-stripe {
    height: 12px;
    background-color: #fca311; 
}

/* === Área Principal === */
.container {
    max-width: 98%;
    margin: 15px auto;
    padding: 0 10px;
}

/* Quadro com borda verde clara em volta das abas */
.tabs-border {
    border: 1px solid #b5d596;
    background-color: white;
    margin-bottom: 25px;
    padding: 0px;
}

/* Abas */
.tabs-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.tab {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    background-color: #8cc63f; /* Verde claro brilhante */
    color: white;
    border-radius: 0px;
    padding: 6px 15px;
}

/* Formato de seta para a aba ativa (ex: Modulos) */
.tab.tab-arrow {
    padding: 6px 22px 6px 12px;
    border-radius: 0px;
    clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
}

.tab:not(.active):hover {
    color: #222;
}

.divider {
    width: 1px;
    height: 15px;
    background-color: #ddd;
    margin: 0 5px;
}

/* === Conteúdo: Textos === */
.content-section {
    padding: 0 5px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: #222;
    font-weight: 600;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 25px;
    color: #333;
}

.light-text {
    color: #888;
    font-weight: normal;
}

/* === Módulos Grid === */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.modulo-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    padding: 12px;
    font-size: 13px;
    color: #444;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.modulo-card i {
    color: #555;
    font-size: 16px;
}

.modulo-card:hover {
    background-color: #fafafa;
    border-color: #ccc;
}


/* === Lista de Carreiras (Acordeão) === */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espaçamento entre as caixas brancas */
}

.accordion-item {
    background-color: white;
    border: 1px solid #e5e5e5;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02); /* Sombra super sutil */
}

.accordion-item i {
    font-weight: bold;
    font-size: 14px;
    color: #111;
}

.accordion-item:hover {
    background-color: #fafafa;
    border-color: #ccc;
}

/* === Customizações para a Página de Inicio === */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 10px;
}

.user-name {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-link {
    color: white;
    text-decoration: none;
    margin-top: 2px;
    font-size: 10px;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

.user-avatar {
    background-color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

/* Botão Moodle */
.btn-moodle {
    background-color: #8cc63f;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    border-bottom: 2px solid #5d9811; /* Para dar efeito de botão leve 3d */
}

.btn-moodle:hover {
    background-color: #7ab32d;
}

/* Grade de Acesso (Rendir Examenes, etc) */
.acceso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.btn-acceso {
    text-decoration: none;
    padding: 8px 15px;
    font-size: 12px;
    text-align: center;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-acceso.btn-green {
    background-color: #8cc63f;
    color: white;
    font-weight: bold;
    border: none;
}
.btn-acceso.btn-green:hover { background-color: #7ab32d; }

.btn-acceso.btn-white {
    background-color: white;
    color: #444;
    border: 1px solid #e5e5e5;
}
.btn-acceso.btn-white:hover {
    background-color: #fafafa;
    border-color: #ccc;
}

/* === Página Estudiantes === */
.btn-green-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.btn-green-grid .btn-moodle {
    width: 100%;
    justify-content: center;
    border-radius: 0px;
}

.exam-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 10px;
}
.exam-table th {
    background-color: #ededed;
    color: #444;
    text-align: center;
    padding: 6px;
    border: 1px solid #ddd;
    border-bottom: 2px solid #ccc;
}
.exam-table td {
    padding: 4px 10px;
    border: 1px solid #ddd;
    color: #555;
    background-color: white;
}
.exam-table tr:hover td {
    background-color: #fafafa;
}
.exam-table td:nth-child(2) {
    text-align: center;
}

/* === Página Examenes === */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.exam-table-yellow {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    min-width: 700px; /* Garante scroll no celular para não espremer os dados */
    margin-bottom: 10px;
}

.exam-table-yellow th {
    background-color: #ebebeb;
    color: #444;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #ccc;
    font-weight: bold;
}

.exam-table-yellow td {
    padding: 8px 6px;
    border: 1px solid #ccc;
    color: #333;
    text-align: center;
    vertical-align: middle;
}

.exam-table-yellow .row-yellow {
    background-color: #f4fa8c; /* Amarelo/verde limão bem claro conforme a imagem */
}

.exam-table-yellow tr:not(.row-yellow) {
    background-color: white;
}

.btn-comenzar {
    background-color: #4cb255;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-comenzar:hover {
    background-color: #3b9142;
}

/* === Página Intento (Quiz) === */
.quiz-container {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 15px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px;
}

.quiz-panel {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.panel-title {
    text-align: center;
    font-size: 11px;
    color: #444;
    margin-bottom: 20px;
    font-weight: bold;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.q-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #777;
    background-color: white; 
    color: #333;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}
.q-box.answered {
    background-color: #3f903f;
    color: white;
    border-color: #2b602b;
}
.q-box.active {
    border: 2px solid #000;
}

.legend {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #555;
    margin-top: 30px;
}
.legend div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-panel {
    background-color: #efefef;
}
.exam-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}
.exam-header h4 { font-size: 14px; margin-bottom: 5px; color:#222;}
.exam-header h5 { font-size: 13px; color: #555; font-weight:normal;}

.q-text {
    font-size: 14px;
    color: #222;
    margin-bottom: 15px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-left: 10px;
}
.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.btn-siguiente {
    background-color: #61b11a;
    color: white;
    border: none;
    padding: 8px 30px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}
.btn-siguiente:hover { background-color: #4b8f11; }

.q-id {
    font-size: 10px;
    font-style: italic;
    color: #888;
    margin-top: 30px;
}

.timer-box {
    text-align: center;
    margin-bottom: 20px;
}
.timer-labels {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 10px;
    color: #555;
    margin-bottom: 5px;
}
.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.timer-display .t-block {
    background-color: #333;
    color: #ddd;
    font-size: 22px;
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 5px;
    border: 1px solid #111;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}
.timer-display .t-colon {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 2px;
}

.btn-terminar {
    background-color: #337ab7;
    color: white;
    border: none;
    width: 100%;
    padding: 8px;
    font-weight: normal;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 20px;
}
.btn-terminar:hover { background-color: #286090; }

.importante-box {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 3px;
}
.importante-title {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}
.importante-box ol {
    margin: 0;
    padding-left: 15px;
    font-size: 10px;
    color: #555;
    line-height: 1.5;
}

/* === Página Nota Intento === */
.nota-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    min-width: 600px;
}
.nota-table th {
    background-color: #ededed;
    color: #444;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #ccc;
    font-weight: bold;
}
.nota-table td {
    padding: 8px 6px;
    border: 1px solid #ddd;
    color: #333;
    text-align: center;
    vertical-align: middle;
    background-color: white;
}
.nota-table .nota-final-celula {
    background-color: #8cc63f;
    color: white;
    font-weight: bold;
}

.btn-continuar-nota {
    background-color: #8cc63f;
    color: white;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-top: 25px;
}
.btn-continuar-nota:hover {
    background-color: #7ab32d;
}

/* === Página Terminado === */
.terminado-title {
    font-size: 18px;
    color: #444;
    text-align: center;
    margin-bottom: 5px;
}
.terminado-subtitle {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}
.terminado-fecha {
    color: #d9534f;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}
.info-box-blue {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 0 auto 30px;
    max-width: 600px;
}
.info-box-blue h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
}
.info-box-blue p {
    margin: 4px 0;
    font-size: 13px;
}
.info-box-blue .uppercase-text {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
}
.warning-text {
    font-size: 16px;
    color: #444;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
.historial-title {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-weight: bold;
}

/* === Responsividade (Modo Celular) === */
@media (max-width: 900px) {
    .quiz-container { grid-template-columns: 1fr; }
    .center-panel { margin-top: 15px; margin-bottom: 15px; }
    .question-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .btn-green-grid {
        grid-template-columns: 1fr;
    }
    .modulos-grid {
        grid-template-columns: 1fr;
    }
    .acceso-grid {
        grid-template-columns: 1fr;
    }
    .top-header {
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
        padding: 10px;
    }
    .nota-table {
        min-width: 100%;
        font-size: 9px;
    }
    .nota-table th, .nota-table td {
        padding: 4px 2px;
    }
}

