/* css/styles.css */

/* Definição de Variáveis de Cores do Ecossistema Aeronáutico */
:root {
    --primary-blue: #0A192F;       /* Azul Escuro Profundo (Fundo principal/Header) */
    --accent-blue: #172A45;        /* Azul de Suporte para Cards e Containers */
    --native-aviation: #5EBBDE;      /* Amarelo/Dourado para botões de destaque e alertas */
    --text-pure-white: #FFFFFF;    /* Textos principais e contrastes */
    --text-muted-gray: #8892B0;    /* Textos secundários e descrições menos urgentes */
    --bg-light-gray: #F4F6F9;      /* Fundo suave para a área interna das provas */
    --border-radius: 8px;          /* Cantos arredondados modernos e discretos */
    --transition-smooth: all 0.3s ease;
}

/* Reset básico focado em Mobile e iOS Touch View */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* Remove o flash azul ao clicar no iOS */
}

body {
    background-color: black;
    color: var(--text-pure-white);
    overflow-x: hidden;
}

/* Container de Injeção de Telas (SPA) */
#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilo de Botão Padrão da Marca */
.btn-primary {
    background-color: var(--native-aviation);
    color: var(--primary-blue);
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

/* Input de Cockpit (Formulários de Login, Cadastro e Respostas) */
.input-field {
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--text-muted-gray);
    color: #333;
    border-radius: var(--border-radius);
    font-size: 16px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.input-field:focus {
    outline: none;
    border-color: var(--native-aviation);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Customização para o campo de seleção de cursos */
.select-field {
    appearance: none; /* Remove o estilo nativo do sistema (Android/iOS) */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%238892B0'><polygon points='0,0 10,0 5,5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* Garante que as opções fiquem legíveis no fundo escuro */
.select-field option {
    background-color: var(--accent-blue);
    color: var(--text-pure-white);
}


/* Estilos Específicos da View de Login */

.login-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    background-image: url(../assets/imagens/images.jpeg);
    background-color: rgba(000, 000, 000, 0.6); /* White with 60% opacity */
    background-blend-mode: overlay; /* Blends color with image */
    background-repeat: no-repeat;
    background-size: cover;
}



.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-pure-white);
    margin-bottom: 5px;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--native-aviation);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    background-color: white;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted-gray);
    font-weight: 600;
}

.login-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botões estilo Link (Sem fundo) */
.btn-link {
    background: none;
    border: none;
    color: var(--text-muted-gray);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: underline;
}

.btn-link:active {
    color: #666;
}

.text-native {
    color: var(--native-aviation) !important;
    font-weight: bold;
}

.register-text {
    font-size: 14px;
    color: var(--text-muted-gray);
}

/* FIM LOGIN */

/* ADMIN */

/* Estilos Exclusivos do Painel do Administrador */

.admin-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.admin-title {
    font-size: 24px;
    letter-spacing: 1px;
}

.admin-subtitle {
    color: var(--native-aviation);
    font-size: 14px;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--native-aviation);
    padding-left: 10px;
    color: #333;
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* Garante que a tabela role de lado se aberta no celular */
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th, .admin-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    text-transform: uppercase;
    color: var(--text-muted-gray);
    font-size: 11px;
    letter-spacing: 1px;
}

.admin-select {
    margin-bottom: 0 !important;
    padding: 8px 30px 8px 12px !important;
    font-size: 14px !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.btn-approve {
    background-color: #2ecc71; /* Verde aviação de liberação */
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-approve:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: none;
    border: 1px solid var(--text-muted-gray);
    color: #666;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.badge-curso {
    background-color: rgba(245, 166, 35, 0.15);
    color: var(--native-aviation);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.placeholder-text {
    color: var(--text-muted-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* FIM DO ADMIN */

/* ALUNO */

/* Estilos Exclusivos do Cockpit do Aluno */

.dashboard-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 24px;
    letter-spacing: 1px;
    
}

.dashboard-subtitle {
    color: var(--native-aviation);
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-muted-gray);
    font-size: 14px;
}

.status-value {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.status-value-highlight {
    color: var(--native-aviation);
    font-weight: bold;
    font-size: 14px;
}

/* FIM ALUNO */

/* SIMULADO */

/* Estilos do Ambiente do Simulado Interativo */

.simulado-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.simulado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.simulado-title {
    font-size: 22px;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.cronometro-box {
    font-family: 'Courier New', Courier, monospace; /* Fonte estilo painel digital */
    font-size: 32px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.simulado-card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
}

.questao-meta {
    margin-bottom: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-label {
    color: var(--text-muted-gray);
}

.meta-value {
    color: var(--gold-aviation);
    font-weight: bold;
    margin-left: 5px;
    color: #666;
}

.questao-enunciado {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    margin-bottom: 35px;
}

.ajuda-box {
    background-color: rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--gold-aviation);
    padding: 15px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.simulado-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.info-progresso-texto {
    color: var(--text-muted-gray);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* FIM SIMULADO */

/* Container de Grid para os Cards do Cockpit */
.cockpit-grid-container {
    display: flex;
    gap: 25px;
    align-items: stretch;
    justify-content: center;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base do Card de Status (Mantendo o seu card esquerdo alinhado) */
.status-operacional-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #5EBBDE;
}

/* O NOVO CARD PREMIUM (Estilo ChiterOicao) */
.test-card-premium {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.2);
}

/* Bloco Superior com Imagem/Gradiente */
.test-card-header-image {
    position: relative;
    height: 320px;
    /* Substitua pelo caminho real da imagem do piloto com headset ou use um background conceitual moderno */
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 60%, rgba(255,255,255,1) 100%), 
                url('../assets/images/ai-generator-bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Pílula Flutuante Branca Interna */
.badge-floating-tag {
    background: #ffffff;
    color: #111111;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 24px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    margin-bottom: -1px; /* Trava o encaixe no bloco de baixo */
}

/* Bloco Inferior de Conteúdo */
.test-card-body-content {
    background: #ffffff;
    padding: 30px 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-card-title {
    font-family: 'Cinzel', 'Georgia', serif; /* Mantendo a pegada clássica/serifada dos títulos do cliente */
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.test-card-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.test-card-features-list li {
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Botão de Ação Principal */
.btn-premium-start-test {
    background: #5EBBDE;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-premium-start-test:hover {
    background: #008cb0;
}

.ul1{
    padding:20px;
}


     .header-wrapper {
                    display: flex; 
                    justify-content: flex-end; /* Joga o profile totalmente para a direita */
                    align-items: center; 
                    padding: 15px 40px; 
                    border-bottom: 1px solid #111111; 
                    background: #000000;
                    box-sizing: border-box;
                    width: 100%;
                    position: relative;
                    z-index: 100;
                }

                /* Container do Profile */
                .profile-menu-container {
                    position: relative;
                    display: inline-block;
                }

                /* Ícone de Avatar Redondo */
                .profile-avatar-btn {
                    background: #111111;
                    border: 1px solid #222222;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: all 0.2s ease;
                    padding: 0;
                }
                .profile-avatar-btn:hover {
                    border-color: #00a8cc;
                    box-shadow: 0 0 10px rgba(0, 168, 204, 0.2);
                }
                .profile-avatar-btn svg {
                    fill: #888888;
                    transition: fill 0.2s ease;
                }
                .profile-avatar-btn:hover svg {
                    fill: #00a8cc;
                }

                /* Caixa do Dropdown Flutuante */
                .profile-dropdown {
                    display: none; /* Controlado pelo JS */
                    position: absolute;
                    right: 0;
                    top: 50px;
                    background: #111111;
                    border: 1px solid #222222;
                    border-radius: 12px;
                    width: 260px;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
                    padding: 18px;
                    box-sizing: border-box;
                    animation: fadeInDropdown 0.2s ease-out;
                }
                .profile-dropdown.show {
                    display: block;
                }

                /* Itens de Informação dentro do Menu */
                .dropdown-info-item {
                    display: flex;
                    flex-direction: column;
                    gap: 3px;
                    margin-bottom: 14px;
                    border-bottom: 1px solid #1a1a1a;
                    padding-bottom: 10px;
                }
                .dropdown-label {
                    font-size: 10px;
                    color: #444444;
                    font-weight: 700;
                    letter-spacing: 0.5px;
                }
                .dropdown-value {
                    font-size: 13px;
                    color: #999999;
                    font-weight: 500;
                    word-break: break-all;
                }

                /* Botão Sair dentro do Dropdown */
                #btn-logout-aluno {
                    background: #1a1a1a;
                    border: 1px solid #2a2a2a;
                    color: #cc3333;
                    padding: 10px;
                    border-radius: 6px;
                    cursor: pointer;
                    font-size: 12px;
                    font-weight: 600;
                    width: 100%;
                    transition: all 0.2s ease;
                    text-align: center;
                    box-sizing: border-box;
                }
                #btn-logout-aluno:hover {
                    background: #cc3333;
                    color: #ffffff;
                    border-color: #cc3333;
                }

                @keyframes fadeInDropdown {
                    from { opacity: 0; transform: translateY(-10px); }
                    to { opacity: 1; transform: translateY(0); }
                }

                /* Ajuste de Padding do Header no Mobile */
                @media (max-width: 600px) {
                    .header-wrapper {
                        padding: 15px 20px;
                    }
                    .profile-dropdown {
                        width: 240px;
                        right: -5px; /* Evita colar na borda extrema da tela */
                    }
                }
           

                                .fases-icon-bar {
                    display: flex; 
                    justify-content: center; 
                    gap: 40px; 
                    margin-bottom: 25px; 
                    align-items: center;
                    width: 100%;
                }
                .icon-circle {
                    width: 55px; 
                    height: 55px; 
                    border-radius: 50%; 
                    display: flex; 
                    align-items: center; 
                    justify-content: center; 
                    font-size: 22px;
                    flex-shrink: 0; /* IMPEDE QUE O CÍRCULO SE ESMAGUE OU FIQUE OVAL */
                    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
                }
                .question-card {
                    border: 1px solid #e8e8e8; 
                    border-radius: 16px; 
                    padding: 35px; 
                    box-shadow: 0 6px 24px rgba(0,0,0,0.03); 
                    background: #ffffff;
                    box-sizing: border-box;
                    width: 100%;
                }

                /* Quebra de segurança para Tablets e Celulares (Abaixo de 600px) */
                @media (max-width: 600px) {
                    .fases-icon-bar {
                        margin-bottom: 20px;
                    }
                    .icon-circle {
                        width: 44px !important; /* Reduz ligeiramente o diâmetro */
                        height: 44px !important;
                        font-size: 18px !important; /* Adapta o emoji interno */
                    }
                    .question-card {
                        padding: 20px 15px !important; /* Recupera 40px de área útil interna no mobile */
                        border-radius: 12px;
                    }
                    #instrucao-fase-texto {
                        font-size: 13px !important;
                        padding-bottom: 10px;
                        margin-bottom: 15px;
                    }
                    #btn-proxima-etapa {
                        width: 100%; /* Botão next step ocupa largura total no mobile para facilitar o clique */
                        text-align: center;
                    }
                }

                /* Ajuste Extremo para telas de 320px (iPhone SE, etc) */
                @media (max-width: 360px) {
                    .icon-circle {
                        width: 40px !important;
                        height: 40px !important;
                        font-size: 16px !important;
                    }
                }