* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Telas */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== BOTÕES MELHORADOS ===== */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary.btn-disabled,
.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 1.8rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 600;
    color: #555;
}

/* Conteúdo dos Dashboards */
.admin-content, .employee-content {
    padding: 30px;
    background: rgba(255,255,255,0.95);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cards de Estatísticas */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

/* Tabela de Funcionários */
.employees-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.employees-table-container h2 {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
}

.employees-table th,
.employees-table td {
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.employees-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.employees-table tbody tr:hover {
    background: #f8f9fa;
}

/* Progress Bar */
.progress-overview {
    margin-bottom: 40px;
}

.progress-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Módulos */
.modules-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.module-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #6c757d;
}

.module-item:hover {
    transform: translateY(-5px);
}

.module-item.completed {
    border-left-color: #28a745;
}

.module-item.in-progress {
    border-left-color: #ffc107;
}

.module-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.module-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.module-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-not-started {
    background: #e9ecef;
    color: #6c757d;
}

.status-in-progress {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* ===== MODAL COM CONTROLE DE LEITURA ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content.confirmation-modal {
    max-width: 500px;
    max-height: 70vh;
}

/* ===== MODAL FULLSCREEN PARA TUTORIAL DE IMAGENS ===== */
.modal-fullscreen .modal-content {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: none;
}

/* ===== HEADER DO MODAL COM CONTROLES DE LEITURA ===== */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.4rem;
}

/* Status de leitura no header */
.reading-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.timer-display {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
    transform: rotate(90deg);
}

/* ===== BARRA DE PROGRESSO DE LEITURA ===== */
.reading-progress-bar, .images-progress-bar {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-progress-fill {
    height: 8px;
    background: linear-gradient(90deg, #667eea 0%, #28a745 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    min-width: 0;
    flex-shrink: 0;
    flex-basis: 200px;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== CORPO DO MODAL ===== */
.modal-body {
    padding: 30px;
    max-height: 50vh;
    overflow-y: auto;
    position: relative;
}

/* ===== TUTORIAL DE IMAGENS - CORPO ===== */
.images-tutorial-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 120px);
    padding: 10px;
}

/* Container das imagens */
.images-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.image-display {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    border: 2px solid #e9ecef;
}

#currentTutorialImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

#currentTutorialImage:hover {
    transform: scale(1.02);
}

#currentTutorialImage.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
    z-index: 100;
}

/* Overlay de navegação */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-display:hover .image-overlay {
    opacity: 1;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nav-prev {
    margin-left: 20px;
}

.nav-next {
    margin-right: 20px;
}

/* Indicador de zoom */
.zoom-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Descrição da imagem */
.image-description {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-description h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.image-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Miniaturas de navegação */
.thumbnails-container {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.thumbnails-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail-item {
    min-width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.thumbnail-item.active {
    border-color: #28a745;
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer do tutorial de imagens */
.images-tutorial-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tutorial-controls {
    display: flex;
    gap: 10px;
}

.tutorial-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Auto-play indicator */
.autoplay-active {
    background: #28a745 !important;
    color: white !important;
}

/* Indicador de leitura completa */
.reading-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    animation: completionPulse 2s ease-in-out;
}

@keyframes completionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.completion-message {
    color: #155724;
    font-size: 1.1rem;
    font-weight: 600;
}

.completion-message strong {
    color: #28a745;
}

.completion-message small {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RODAPÉ DO MODAL COM REQUISITOS ===== */
.modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    width: auto;
    min-width: 150px;
}

/* Botões de ação */
.modal-footer > div:first-child {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Requisitos de conclusão */
.completion-requirements {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.requirement-status {
    font-size: 1.1rem;
    min-width: 20px;
}

.requirement-status.completed {
    color: #28a745;
}

/* ===== MODAL DE CONFIRMAÇÃO ===== */
.confirmation-modal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.confirmation-content {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reading-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* ===== CONTEÚDO DOS TUTORIAIS OTIMIZADO ===== */

/* Container principal do conteúdo */
.tutorial-content, .module-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Formatação de títulos */
.tutorial-content h1, .module-content h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
}

.tutorial-content h2, .module-content h2 {
    color: #34495e;
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border-left: 4px solid #667eea;
    padding-left: 15px;
    background: linear-gradient(90deg, #f8f9fa 0%, transparent 100%);
    padding: 12px 0 12px 15px;
}

.tutorial-content h3, .module-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 3px solid #28a745;
    padding-left: 12px;
    background: #f8fff8;
    padding: 8px 0 8px 12px;
}

.tutorial-content h4, .module-content h4 {
    color: #495057;
    font-size: 1.1rem;
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-content h5, .module-content h5 {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

/* ===== CONTAINERS ESPECÍFICOS DOS MÓDULOS ===== */

/* Containers organizacionais */
.step-container, .dinamica-container, .produto-container, 
.concorrencia-container, .gestao-container, .reputacao-container,
.fechamento-container, .estrategias-complementares, .protocolo-container,
.tecnicas-container, .observacoes-finais, .equipamentos-container,
.etiquetas-container, .categorias-container, .uso-etiquetas-container,
.controle-container {
    margin: 24px 0;
    padding: 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Funil de vendas e etapas */
.funil-container, .funil-etapas {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.funil-stage, .etiqueta-stage {
    background: white;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.funil-stage:hover, .etiqueta-stage:hover {
    transform: translateY(-2px);
}

.funil-stage.special {
    border-left-color: #dc3545;
    background: #fff5f5;
}

/* Cards de conteúdo aprimorados */
.content-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.content-card.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.content-card.danger {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.content-card.info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.content-card.success {
    border-left-color: #28a745;
    background: #f8fff8;
}

/* Equipamentos e aparelhos */
.aparelho-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aparelho-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.aparelho-item h4 {
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.aparelho-specs {
    list-style: none;
    padding: 0;
}

.aparelho-specs li {
    padding: 6px 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tags e códigos */
.tag-code {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.tag-code.danger {
    background: #dc3545;
}

/* Responsáveis e turnos */
.responsaveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.responsavel-item, .turno-item {
    background: white;
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Protocolo de atendimento */
.protocolo-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.step-item {
    background: white;
    padding: 22px;
    border-radius: 12px;
    border-left: 5px solid #28a745;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-item h5 {
    color: #28a745;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Checklists visuais */
.checklist, .step-checklist {
    list-style: none;
    padding: 0;
}

.checklist li, .step-checklist li {
    padding: 6px 0;
    margin: 0;
    position: relative;
    padding-left: 25px;
}

.checklist li::before, .step-checklist li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 6px;
}

/* Templates e respostas rápidas */
.template-card, .template-item {
    background: #fafbfc;
    padding: 20px;
    margin: 16px 0;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.saudacoes, .templates-especificos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hashtags e comandos */
.hashtags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.hashtag-item {
    background: white;
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid #dc3545;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: 'Courier New', monospace;
}

/* Categorias organizadas */
.categoria-grupo {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #667eea;
}

.categoria-list {
    list-style: none;
    padding: 0;
}

.categoria-list li {
    padding: 8px 0;
    margin: 0;
    border-bottom: 1px solid #f8f9fa;
}

.categoria-list li:last-child {
    border-bottom: none;
}

/* Processo de aplicação */
.processo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.insercao-steps {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Listas organizadas */
.tutorial-content ul, .module-content ul,
.tutorial-content ol, .module-content ol {
    margin: 1.5rem 0;
    padding-left: 1.8rem;
}

.tutorial-content li, .module-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.tutorial-content li strong, .module-content li strong {
    color: #2980b9;
    font-weight: 600;
}

/* Texto destacado */
.tutorial-content strong, .module-content strong {
    color: #2980b9;
    font-weight: 600;
}

.tutorial-content em, .module-content em {
    color: #7f8c8d;
    font-style: italic;
}

/* Citações e destaques */
.tutorial-content blockquote, .module-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1.2rem 1.8rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Tabelas melhoradas */
.tutorial-content table, .module-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tutorial-content table th, .module-content table th,
.tutorial-content table td, .module-content table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tutorial-content table th, .module-content table th {
    background: #667eea;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tutorial-content table tbody tr:hover, .module-content table tbody tr:hover {
    background: #f8f9fa;
}

.tutorial-content table tbody tr:nth-child(even), .module-content table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

/* Sistema de cores para identificação */
.color-blue { color: #667eea; font-weight: 600; }
.color-yellow { color: #ffc107; font-weight: 600; }
.color-green { color: #28a745; font-weight: 600; }
.color-red { color: #dc3545; font-weight: 600; }

/* Animações suaves */
.content-card, .step-item, .aparelho-item, .template-card, 
.funil-stage, .etiqueta-stage {
    transition: all 0.3s ease;
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar,
.tutorial-content::-webkit-scrollbar,
.thumbnails-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-body::-webkit-scrollbar-track,
.tutorial-content::-webkit-scrollbar-track,
.thumbnails-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.tutorial-content::-webkit-scrollbar-thumb,
.thumbnails-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.tutorial-content::-webkit-scrollbar-thumb:hover,
.thumbnails-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* ===== RESPONSIVIDADE MELHORADA ===== */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-content, .employee-content {
        margin: 10px;
        padding: 20px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .modules-list {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }

    .modal-fullscreen .modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .reading-progress {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .reading-progress-bar, .images-progress-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .completion-requirements {
        padding: 10px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .modal-footer > div:first-child {
        flex-direction: column;
        gap: 10px;
    }

    /* Tutorial de imagens - mobile */
    .images-tutorial-body {
        padding: 5px;
    }
    
    .images-container {
        gap: 10px;
    }
    
    .image-display {
        min-height: 250px;
    }
    
    .thumbnails-list {
        justify-content: center;
    }
    
    .thumbnail-item {
        min-width: 60px;
        height: 45px;
    }
    
    .images-tutorial-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Responsividade para tutoriais */
    .tutorial-content, .module-content {
        padding: 20px;
        margin: 10px;
    }
    
    .tutorial-content h1, .module-content h1 {
        font-size: 1.6rem;
    }
    
    .tutorial-content h2, .module-content h2 {
        font-size: 1.3rem;
    }
    
    .tutorial-content h3, .module-content h3 {
        font-size: 1.1rem;
    }
    
    .equipamentos-container,
    .categorias-container,
    .observacoes-finais,
    .hashtags-grid,
    .responsaveis-grid {
        grid-template-columns: 1fr;
    }
    
    .processo-steps {
        grid-template-columns: 1fr;
    }
    
    .tutorial-content table, .module-content table {
        font-size: 0.9rem;
    }
    
    .tutorial-content table th, .module-content table th,
    .tutorial-content table td, .module-content table td {
        padding: 10px 12px;
    }
    
    .step-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    /* Tutorial de imagens - mobile pequeno */
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .nav-prev {
        margin-left: 10px;
    }
    
    .nav-next {
        margin-right: 10px;
    }
    
    .zoom-indicator {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .tutorial-content, .module-content {
        padding: 15px;
        margin: 5px;
    }
    
    .content-card, .step-item, .aparelho-item {
        padding: 16px;
    }
    
    .tutorial-content h2, .module-content h2 {
        font-size: 1.2rem;
        padding: 8px 0 8px 12px;
    }
    
    .tutorial-content h3, .module-content h3 {
        font-size: 1rem;
        padding: 6px 0 6px 10px;
    }
}

/* Print styles */
@media print {
    .tutorial-content, .module-content {
        box-shadow: none;
        max-width: none;
        background: white;
    }
    
    .content-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        box-shadow: none;
    }
    
    .step-item, .aparelho-item {
        break-inside: avoid;
        box-shadow: none;
    }
    
    h2, h3, h4 {
        break-after: avoid;
    }
    
    .modal-header, .reading-progress-bar, .modal-footer {
        display: none;
    }
}

/* ============================================================================
   PROVA-STYLES.CSS - Estilos Completos para Sistema de Prova
   Fernanda Ribeiro Joias - Interface Moderna e Responsiva
   ============================================================================ */

/* ============================================================================
   RESET E CONFIGURAÇÕES GLOBAIS DA PROVA
   ============================================================================ */

.prova-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.prova-container {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================================================
   CONTAINER PRINCIPAL DA PROVA
   ============================================================================ */

.prova-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================================================
   CABEÇALHO DA PROVA
   ============================================================================ */

.prova-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prova-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.prova-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.prova-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.usuario-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* ============================================================================
   CONTEÚDO PRINCIPAL
   ============================================================================ */

.prova-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   TELA INICIAL DE BOAS-VINDAS
   ============================================================================ */

.tela-inicial {
    text-align: center;
    padding: 60px 40px;
}

.icone-prova {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.boas-vindas h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.boas-vindas p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.7;
}

.info-prova-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.info-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.info-card .icone {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.info-card span {
    font-size: 0.9rem;
    color: #718096;
}

/* Histórico de tentativas anteriores */
.tentativas-anteriores {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

.tentativas-anteriores h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

/* ============================================================================
   BOTÃO INICIAR PROVA
   ============================================================================ */

.btn-iniciar-prova {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.btn-iniciar-prova:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-iniciar-prova:active {
    transform: translateY(-1px);
}

/* ============================================================================
   INTERFACE DA PROVA - QUESTÕES
   ============================================================================ */

.tela-prova {
    display: none;
    flex: 1;
}

/* Informações da questão */
.questao-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.numero-questao {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 8px 16px;
    border-radius: 20px;
}

.categoria-questao {
    font-size: 0.9rem;
    color: #718096;
    background: #f7fafc;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Barra de progresso */
.progresso-container {
    margin-bottom: 30px;
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progresso-texto {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.barra-progresso-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.barra-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 0;
}

/* Pergunta */
.pergunta-container {
    margin-bottom: 35px;
}

.pergunta-texto {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Alternativas */
.alternativas-container {
    margin-bottom: 40px;
}

.alternativa {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.label-alternativa {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
}

.label-alternativa:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(5px);
}

.label-alternativa input[type="radio"] {
    margin-right: 15px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.label-alternativa input[type="radio"]:checked + .texto-alternativa {
    font-weight: 600;
    color: #4f46e5;
}

.label-alternativa:has(input[type="radio"]:checked) {
    background: #eef2ff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.texto-alternativa {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
}

/* ============================================================================
   BOTÕES DE NAVEGAÇÃO
   ============================================================================ */

.navegacao-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.btn-navegacao {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-anterior {
    background: #f7fafc;
    color: #4a5568;
    border-color: #e2e8f0;
}

.btn-anterior:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(-2px);
}

.btn-proximo, .btn-finalizar {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-proximo:hover:not(:disabled), .btn-finalizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-navegacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================================
   TELA DE RESULTADOS
   ============================================================================ */

.tela-resultados {
    display: none;
    text-align: center;
    padding: 40px;
}

.resultado-principal {
    margin-bottom: 40px;
}

.icone-resultado {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.pontuacao-final {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
}

.pontuacao-final.aprovado {
    color: #48bb78;
    text-shadow: 0 2px 4px rgba(72, 187, 120, 0.2);
}

.pontuacao-final.reprovado {
    color: #e53e3e;
    text-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.status-prova {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 25px;
    border-radius: 25px;
    display: inline-block;
}

.status-prova.aprovado {
    background: #c6f6d5;
    color: #22543d;
}

.status-prova.reprovado {
    background: #fed7d7;
    color: #742a2a;
}

.mensagem-resultado {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   RESUMO DE RESULTADOS
   ============================================================================ */

.resumo-resultado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.item-resumo {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.item-resumo .valor {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
    margin-bottom: 5px;
}

.item-resumo .label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* ============================================================================
   ESTATÍSTICAS POR CATEGORIA
   ============================================================================ */

.estatisticas-categorias {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.estatisticas-categorias h4 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3rem;
}

.item-categoria {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.item-categoria:last-child {
    border-bottom: none;
}

.nome-categoria {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.resultado-categoria {
    display: flex;
    align-items: center;
    gap: 15px;
}

.porcentagem-categoria {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.porcentagem-categoria.categoria-excelente {
    background: #c6f6d5;
    color: #22543d;
}

.porcentagem-categoria.categoria-boa {
    background: #fef5e7;
    color: #744210;
}

.porcentagem-categoria.categoria-ruim {
    background: #fed7d7;
    color: #742a2a;
}

/* ============================================================================
   BOTÕES DE AÇÃO DOS RESULTADOS
   ============================================================================ */

.acoes-resultado {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-revisar, .btn-tentar-novamente, .btn-voltar {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-revisar {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.btn-revisar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

.btn-tentar-novamente {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-tentar-novamente:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.btn-voltar {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-voltar:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* ============================================================================
   MODAL DE REVISÃO
   ============================================================================ */

.modal-revisao {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.conteudo-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.cabecalho-modal {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecalho-modal h2 {
    margin: 0;
    font-size: 1.5rem;
}

.botao-fechar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.corpo-modal {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.rodape-modal {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.botao-fechar-modal {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-fechar-modal:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* ============================================================================
   QUESTÕES NA REVISÃO
   ============================================================================ */

.questao-revisao {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #e2e8f0;
}

.cabecalho-questao {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.numero-questao {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.numero-questao.correto {
    background: #c6f6d5;
    color: #22543d;
    border: 3px solid #48bb78;
}

.numero-questao.incorreto {
    background: #fed7d7;
    color: #742a2a;
    border: 3px solid #e53e3e;
}

.info-questao {
    flex: 1;
}

.info-questao h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.categoria-questao {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================================================
   ALTERNATIVAS NA REVISÃO
   ============================================================================ */

.alternativas-revisao {
    margin-bottom: 20px;
}

.alternativa-revisao {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.alternativa-revisao.resposta-usuario-correta {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
    font-weight: 600;
}

.alternativa-revisao.resposta-usuario-incorreta {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #e53e3e;
    font-weight: 600;
}

.alternativa-revisao.resposta-correta {
    background: #bee3f8;
    color: #2a4365;
    border: 2px solid #4299e1;
    font-weight: 600;
}

.explicacao-questao {
    background: #eef2ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4f46e5;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3748;
}

.explicacao-questao strong {
    color: #4f46e5;
}

/* ============================================================================
   TIMER (SE HABILITADO)
   ============================================================================ */

.timer-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.timer-icon {
    font-size: 1.2rem;
    color: #4f46e5;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

/* ============================================================================
   RESPONSIVIDADE MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .prova-container {
        padding: 10px;
    }
    
    .prova-wrapper {
        border-radius: 15px;
        min-height: 90vh;
    }
    
    .prova-header {
        padding: 20px;
    }
    
    .prova-title {
        font-size: 2rem;
    }
    
    .prova-subtitle {
        font-size: 1rem;
    }
    
    .usuario-info {
        position: static;
        margin-top: 15px;
        display: inline-block;
    }
    
    .prova-content {
        padding: 25px;
    }
    
    .tela-inicial {
        padding: 40px 20px;
    }
    
    .icone-prova {
        font-size: 4rem;
    }
    
    .boas-vindas h2 {
        font-size: 1.8rem;
    }
    
    .info-prova-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }
    
    .info-card {
        padding: 20px;
    }
    
    /* Questões mobile */
    .questao-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pergunta-texto {
        font-size: 1.1rem;
    }
    
    .label-alternativa {
        padding: 15px;
    }
    
    .navegacao-container {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn-navegacao {
        width: 100%;
        justify-content: center;
    }
    
    /* Resultados mobile */
    .pontuacao-final {
        font-size: 3rem;
    }
    
    .status-prova {
        font-size: 1.4rem;
    }
    
    .resumo-resultado {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .acoes-resultado {
        flex-direction: column;
    }
    
    .btn-revisar, .btn-tentar-novamente, .btn-voltar {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal mobile */
    .modal-revisao {
        padding: 10px;
    }
    
    .conteudo-modal {
        max-height: 95vh;
    }
    
    .cabecalho-modal {
        padding: 20px;
    }
    
    .cabecalho-modal h2 {
        font-size: 1.3rem;
    }
    
    .corpo-modal {
        padding: 20px;
    }
    
    .questao-revisao {
        padding: 20px;
    }
    
    .cabecalho-questao {
        flex-direction: column;
        gap: 15px;
    }
    
    .numero-questao {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        align-self: flex-start;
    }
    
    .timer-container {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .prova-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .prova-header {
        border-radius: 0;
    }
    
    .prova-title {
        font-size: 1.6rem;
    }
    
    .boas-vindas h2 {
        font-size: 1.5rem;
    }
    
    .resumo-resultado {
        grid-template-columns: 1fr;
    }
    
    .item-resumo .valor {
        font-size: 1.8rem;
    }
    
    .pontuacao-final {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   ANIMAÇÕES E EFEITOS ESPECIAIS
   ============================================================================ */

/* Fade in para telas */
.tela-inicial, .tela-prova, .tela-resultados {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover effects para alternativas */
.alternativa {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.alternativa:hover {
    transform: translateX(3px);
}

/* Efeito de pulso para elementos importantes */
.btn-iniciar-prova {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(72, 187, 120, 0.5); }
    100% { box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3); }
}

/* Transições suaves para mudança de questões */
.pergunta-container, .alternativas-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Efeitos de loading se necessário */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   ESTADOS DE ACESSIBILIDADE
   ============================================================================ */

/* Focus styles para navegação por teclado */
.btn-navegacao:focus,
.btn-iniciar-prova:focus,
.btn-revisar:focus,
.btn-tentar-novamente:focus,
.btn-voltar:focus {
    outline: 3px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

.label-alternativa:focus-within {
    outline: 2px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .prova-wrapper {
        border: 2px solid #000;
    }
    
    .label-alternativa {
        border-width: 2px;
    }
    
    .label-alternativa:hover {
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shimmer::before,
    .bounce,
    .pulse {
        animation: none !important;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .prova-container {
        background: white !important;
    }
    
    .prova-wrapper {
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .prova-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #000;
    }
    
    .btn-iniciar-prova,
    .btn-navegacao,
    .btn-revisar,
    .btn-tentar-novamente,
    .btn-voltar,
    .timer-container {
        display: none !important;
    }
    
    .alternativa-revisao {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}
