/* ============================================
   RESET E ESTILOS GLOBAIS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   TELA DE LOGIN
   ============================================ */

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

.login-container h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.login-description {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.btn-entrar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-entrar:active {
    transform: translateY(0);
}

.login-footer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   HEADER FIXO
   ============================================ */

.main-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 20px 30px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.aluno-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.saudacao {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.btn-logout {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #e0e0e0;
}

.header-progresso {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.progresso-resumo {
    flex: 1;
}

.progresso-texto {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.progress-bar-total {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
}

.progresso-metricas {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.progresso-metricas p {
    margin: 5px 0;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 30px;
    min-height: calc(100vh - 200px);
}

/* ============================================
   MENU LATERAL
   ============================================ */

.menu-lateral {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 150px;
}

.menu-lateral h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.menu-lateral ul {
    list-style: none;
}

.menu-lateral li {
    margin-bottom: 10px;
}

.menu-lateral a {
    display: block;
    padding: 10px 15px;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-lateral a:hover {
    background-color: #f0f0f0;
    color: #764ba2;
}

.menu-lateral hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.menu-secoes {
    margin-top: 15px;
}

/* ============================================
   ÁREA PRINCIPAL
   ============================================ */

.main-area {
    flex: 1;
}

.modulos-section,
.faq-section {
    margin-bottom: 50px;
}

.modulos-section h2,
.faq-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.intro-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ============================================
   CARD DE MÓDULO
   ============================================ */

.modulo-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.modulo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.modulo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.modulo-header:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.modulo-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.progresso-modulo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.progresso-texto-modulo {
    font-size: 13px;
    font-weight: 600;
    min-width: 35px;
}

.progress-bar-modulo {
    width: 100px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-modulo .progress-fill {
    background-color: white;
}

.modulo-content {
    padding: 25px;
    display: none;
}

.modulo-content.active {
    display: block;
}

.descricao {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================
   BLOCO DE AULA
   ============================================ */

.aula-bloco {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.aula-bloco h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.status-aula {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    margin-bottom: 10px;
}

.status-aula.concluida {
    background-color: #d4edda;
    color: #155724;
}

.aula-bloco p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.resumo {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.aula-bloco iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
}

.btn-concluir {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-concluir:hover {
    background-color: #218838;
}

.btn-concluir.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* ============================================
   BLOCO DE DESAFIO PRÁTICO
   ============================================ */

.desafio-bloco {
    background: #fff3cd;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

.desafio-bloco h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.desafio-bloco p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.status-desafio {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    margin-left: 10px;
}

.status-desafio.concluido {
    background-color: #d4edda;
    color: #155724;
}

.btn-desafio {
    padding: 10px 20px;
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-desafio:hover {
    background-color: #e0a800;
}

.btn-desafio.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* ============================================
   SEÇÃO FAQ
   ============================================ */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-pergunta {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-pergunta:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.faq-pergunta::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.faq-pergunta.active::after {
    transform: rotate(180deg);
}

.faq-resposta {
    padding: 20px;
    background: #f9f9f9;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq-resposta.active {
    display: block;
}

/* ============================================
   RODAPÉ
   ============================================ */

.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 30px;
    margin-top: 50px;
}

.posicionamento {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    font-style: italic;
    color: #ffc107;
}

.footer-contact {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: #667eea;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .menu-lateral {
        width: 100%;
        position: static;
    }

    .header-progresso {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .progresso-metricas {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .aluno-info {
        width: 100%;
        justify-content: space-between;
    }

    .modulo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .progresso-modulo {
        width: 100%;
    }

    .aula-bloco iframe {
        height: 200px;
    }

    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }

    .login-container h1 {
        font-size: 22px;
    }

    .main-header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 16px;
    }

    .modulo-header h3 {
        font-size: 14px;
    }

    .aula-bloco,
    .desafio-bloco {
        padding: 15px;
    }

    .btn-concluir,
    .btn-desafio {
        width: 100%;
    }
}

