/**
 * ==============================================================================
 * FOLHA DE ESTILOS ULTRA PREMIUM - CONECTA NET LMS (LIGHT & SILVER EDITION)
 * ARQUITETURA DE DESIGN: Tipografia SaaS Moderna ('Plus Jakarta Sans'), 
 * Traços Finos, Espaçamento Amplo e Contraste de Alta Definição.
 * ==============================================================================
 */

/* 
 * 1. IMPORTAÇÃO DA TIPOGRAFIA CORPORATIVA
 * POR QUÊ IMPORTAR O 'PLUS JAKARTA SANS'?
 * É a fonte mais utilizada por plataformas de tecnologia de ponta em 2026. 
 * Seus traços são mais altos, finos e elegantes, eliminando completamente o aspecto "quadrado/infantil".
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #f1f5f9;        /* Branco Gelo / Prateado claro (Fundo da tela) */
    --bg-navbar: #ffffff;      /* Branco puro para o cabeçalho e login */
    
    --bg-card: #1e293b;        /* Cinza Chumbo Espelhado para os cards */
    --bg-card-hover: #0f172a;  /* Chumbo mais profundo no hover */
    
    --primary: #ff6a00;        /* Laranja Conecta NET Vibrante */
    --primary-hover: #e05e00;  /* Laranja Escuro */
    --primary-glow: rgba(255, 106, 0, 0.25);
    
    --text-main: #0f172a;      /* Texto principal escuro */
    --text-sec: #475569;       /* Cinza médio para subtítulos */
    --text-muted: #64748b;     /* Cinza suave */
    --text-white: #ffffff;     /* Texto branco dentro dos cards escuros */
    
    --border-subtle: #e2e8f0;  /* Borda clara divisória */
    --border-card: #334155;    /* Borda para os cards chumbo */
    
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 10px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

/* ==============================================================================
 * 2. RESET E TIPOGRAFIA GERAL
 * ============================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Aplicação obrigatória da nova fonte com traços finos e suaves */
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* ==============================================================================
 * 3. TELA DE LOGIN (CARD BRANCO EM FUNDO CINZA GELO)
 * ============================================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-box-white {
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 3.2rem 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.brand-area-login { margin-bottom: 2.2rem; }

.company-logo-login {
    max-height: 75px;
    width: auto;
    margin: 0 auto 1rem auto;
    display: block;
}

.system-subtitle { 
    font-size: 0.95rem; 
    color: var(--text-sec); 
    font-weight: 500; /* Peso médio para não ficar grosso */
}

.form-group-clean { margin-bottom: 1.4rem; text-align: left; }
.form-group-clean label { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-main); 
    margin-bottom: 0.5rem; 
}

.form-group-clean input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem; /* Letra maior no input para conforto de leitura */
    outline: none;
    transition: all 0.2s ease;
}

.form-group-clean input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15);
}

.btn-orange-full {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 0.95rem;
    border-radius: 8px;
    font-size: 1.05rem; /* Letra maior e imponente no botão */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.btn-orange-full:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35); }

.alert-error {
    background-color: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b;
    padding: 0.8rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1.2rem; font-weight: 500; text-align: left;
}

/* ==============================================================================
 * 4. CABEÇALHO SUPERIOR (MAIS ALTO, COM LETRAS GRANDES E FINAS)
 * ============================================================================== */
.top-navbar {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-subtle);
    /* Aumento do preenchimento interno (1.2rem) para afastar os menus da borda */
    padding: 1.2rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.brand-area { display: flex; align-items: center; gap: 2rem; }

.company-logo-navbar {
    max-height: 52px; /* Logo maior e mais respeitável */
    width: auto;
    object-fit: contain;
}

.brand-divider { width: 1px; height: 38px; background-color: var(--border-subtle); }

.system-title { display: flex; flex-direction: column; justify-content: center; }

/* Título superior: Letra bem maior (1.3rem), mas com peso leve/médio (600) para elegância */
.title-main { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--text-main); 
    letter-spacing: -0.4px; 
}

/* Subtítulo: Letra maior (0.8rem), traço fino (500) e espaçamento arejado entre letras */
.title-sub { 
    font-size: 0.8rem; 
    color: var(--primary); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-top: 2px;
}

.user-controls { display: flex; align-items: center; gap: 2rem; }

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f8fafc;
    padding: 0.45rem 1.2rem 0.45rem 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.user-details { display: flex; flex-direction: column; text-align: left; }
.user-name { font-size: 0.95rem; font-weight: 600; color: var(--text-main); line-height: 1.2; }
.user-sector { font-size: 0.8rem; color: var(--text-sec); }
.user-sector strong { color: var(--primary); font-weight: 600; }

.btn-outline-logout {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-sec);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-logout:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ==============================================================================
 * 5. DASHBOARD E HERO BANNER (LETRAS IMPONENTES E FINAS)
 * ============================================================================== */
.container { 
    max-width: 1450px; 
    /* Aumento da margem superior para afastar o conteúdo do cabeçalho */
    margin: 3.5rem auto; 
    padding: 0 3.5rem; 
}

#hero-continue-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-card);
    border-left: 6px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 4.5rem; /* Mais respiro de separação para os módulos abaixo */
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 106, 0, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 106, 0, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

/* Título em destaque: Aumentado para 2.2rem, porém com peso 600 (traço limpo e sofisticado) */
#hero-title { 
    font-size: 2.2rem; 
    font-weight: 600; 
    margin-bottom: 0.8rem; 
    color: #ffffff; 
    letter-spacing: -0.8px; 
}

#hero-status { color: #cbd5e1; font-size: 1.05rem; font-weight: 400; margin-bottom: 2rem; }

.btn-orange {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 106, 0, 0.45); }

/* ==============================================================================
 * 6. SEÇÕES POR MÓDULO (AFESTADAS E COM TIPOGRAFIA MAIOR)
 * ============================================================================== */
/* Gap de 4.5rem (aprox. 72px) entre uma pasta e outra para não ficar nada amontoado */
.video-grid { display: flex; flex-direction: column; gap: 4.5rem; }

.module-section {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.section-header { margin-bottom: 1.5rem; display: flex; flex-direction: column; justify-content: flex-start; }

/* Título da pasta: Letra bem maior (1.6rem), traço semi-bold fino (600) */
.section-title { 
    font-size: 1.6rem; 
    font-weight: 600; 
    color: var(--text-main); 
    letter-spacing: -0.5px; 
}

.section-subtitle { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    margin-top: 0.3rem; 
    font-weight: 400; 
}

/* ==============================================================================
 * 7. CARROSSEL HORIZONTAL E CARDS ESPELHADOS
 * ============================================================================== */
.carousel-wrapper { position: relative; display: flex; align-items: center; width: 100%; margin-top: 1.2rem; }

.carousel-container {
    display: flex;
    gap: 1.8rem; /* Espaço maior entre os cards de vídeo */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.8rem 0.2rem 1.8rem 0.2rem;
    width: 100%;
}

.carousel-container::-webkit-scrollbar { display: none; }

.carousel-container .video-card {
    min-width: 320px; /* Card ligeiramente mais largo para acomodar a letra maior */
    max-width: 320px;
    flex: 0 0 auto;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3), 0 0 25px -5px var(--primary-glow);
    background-color: var(--bg-card-hover);
}

.video-thumb {
    background: radial-gradient(circle at center, #334155 0%, #0f172a 100%);
    height: 175px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    position: relative;
}

.play-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 106, 0, 0.15);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

.video-card:hover .play-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.6);
}

.video-info { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* Título das Aulas nos cards: Letra maior (1.05rem), porém com peso leve (500) para leitura limpa */
.video-info h4 {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0.9rem 0 1.4rem 0;
    line-height: 1.5;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.video-card:hover .video-info h4 { color: var(--primary); }

.badge {
    align-self: flex-start; 
    font-size: 0.72rem; 
    font-weight: 700;
    padding: 0.3rem 0.7rem; 
    border-radius: 4px; 
    text-transform: uppercase; 
    letter-spacing: 0.8px;
}

.badge-new { background: rgba(255, 106, 0, 0.15); color: var(--primary); border: 1px solid rgba(255, 106, 0, 0.4); }
.badge-progress { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.15); }
.badge-completed { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.progress-bar-container { width: 100%; height: 6px; background: #0f172a; border-radius: 3px; overflow: hidden; margin-top: auto; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-hover) 0%, var(--primary) 100%); transition: width 0.5s ease; }
.progress-bar-fill.completed { background: linear-gradient(90deg, #059669 0%, #10b981 100%); }

/* Botões de Setas Laterais no Fundo Claro */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); transform: translateY(-60%) scale(1.15); box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3); }
.carousel-btn-left { left: -24px; }
.carousel-btn-right { right: -24px; }

/* ==============================================================================
 * 8. MODAL DO REPRODUTOR DE VÍDEO
 * ============================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center; z-index: 1000; padding: 1.5rem;
}

.modal-content {
    background: #ffffff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    width: 100%; max-width: 1000px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.modal-header { padding: 1.4rem 2rem; background: #f8fafc; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.modal-badge { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
#player-video-title { font-size: 1.3rem; font-weight: 600; margin-top: 0.2rem; color: var(--text-main); }

.btn-close-modal {
    background: #ffffff; border: 1px solid var(--border-subtle); color: var(--text-sec);
    width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-close-modal:hover { background: #ef4444; border-color: #ef4444; color: #fff; transform: rotate(90deg); }
.player-wrapper { width: 100%; background: #000; aspect-ratio: 16 / 9; }
.player-wrapper video { width: 100%; height: 100%; outline: none; }
.modal-footer { padding: 1rem 2rem; background: #f8fafc; border-top: 1px solid var(--border-subtle); font-size: 0.85rem; color: var(--text-muted); }

/* ==============================================================================
 * 10. REVOLUÇÃO VISUAL: PAINEL ADMINISTRATIVO & BOTÃO HEADER (DESIGN SYSTEM LIGHT)
 * ============================================================================== */

/* BOTÃO NO TOPO: Transforma aquele botão cinza feio em uma cápsula elegante */
#btn-admin-panel, .btn-admin-outline {
    background: linear-gradient(135deg, #fffaf5 0%, #fff0e6 100%) !important;
    border: 1.5px solid #ff6a00 !important;
    color: #ff6a00 !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(255, 106, 0, 0.15) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-admin-panel:hover, .btn-admin-outline:hover {
    background: #ff6a00 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35) !important;
}

/* MODAL DE GESTÃO: Fundo Branco Puro, Bordas Suaves e Sombra Elegante */
.admin-modal-box {
    background-color: #ffffff !important;
    color: #0f172a !important;
    max-width: 1050px !important;
    width: 95% !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    background-color: #f8fafc !important;
}

/* CAIXAS DAS COLUNAS: Acabamento Branco de Card de Crédito */
.admin-section-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 1.8rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
}

.admin-section-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.4rem !important;
    border-left: 4px solid #ff6a00 !important;
    padding-left: 0.8rem !important;
}

.admin-section-desc {
    font-size: 0.82rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
}

/* INPUTS E SELECTS: Altos, limpos e com foco em Laranja */
.form-group-admin {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group-admin label {
    display: block;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.4rem;
}

.form-group-admin input, 
.form-group-admin select {
    width: 100% !important;
    padding: 0.8rem 1rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    outline: none;
    transition: all 0.2s ease;
}

.form-group-admin input:focus, 
.form-group-admin select:focus {
    border-color: #ff6a00 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15) !important;
}

/* GRADE DE PASTAS (CHECKBOXES): Acabamento Prateado Moderno */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff !important;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: #ff6a00 !important;
    background: #fffaf5 !important;
    transform: translateX(2px);
}

.checkbox-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #ff6a00 !important;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    user-select: none;
}

/* ==============================================================================
 * 11. GRADE EM 3 COLUNAS E CHECKBOXES MATERIAL DESIGN
 * ============================================================================== */

/* Alarga o modal para caber as 3 colunas perfeitamente */
.admin-modal-box {
    max-width: 1350px !important;
    width: 98% !important;
}

.admin-grid-layout-3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f8fafc !important;
}

@media (max-width: 1100px) {
    .admin-grid-layout-3 { grid-template-columns: 1fr; }
}

/* Container dos Checkboxes Material Design */
.material-checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.8rem;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

/* Card Individual de Checkbox */
.material-check-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.material-check-card:hover {
    border-color: #ff6a00;
    background: #fffaf5;
    transform: translateX(3px);
}

/* Quando marcado, o card acende em laranja suave */
.material-check-card.active-check {
    border-color: #ff6a00 !important;
    background-color: #fff2e6 !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
}

.material-check-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff6a00;
    cursor: pointer;
}

.material-check-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    user-select: none;
}
/* ==============================================================================
 * 12. GRADE ADAPTATIVA PARA MÓDULOS PEQUENOS E REDUÇÃO DE ESPAÇO VERTICAL
 * ============================================================================== */

/* Quando o submódulo tem até 3 vídeos, ele usa flexbox ao lado em vez de carrossel */
.adaptive-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem 0;
}

.adaptive-grid-container .video-card {
    width: 280px;
    margin: 0;
}

/* Reduz o espaçamento entre subpastas para o layout não ficar comprido demais na vertical */
.submodule-section {
    margin-bottom: 1.8rem !important;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

/* ==============================================================================
 * 13. ENCAPSULAMENTO VISUAL DE CURSOS (COURSE FRAMING & DEPTH UI)
 * ============================================================================== */

/* A "Caixa Grande" que engloba o Curso Principal inteiro e suas subpastas */
.course-container-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 2rem 2rem 1rem 2rem !important;
    margin-bottom: 3.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

/* Barra de destaque laranja no topo do container do curso */
.course-container-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff6a00 0%, #ff9a44 100%);
}

/* Banner do Curso Centralizado e Imponente */
.course-header-banner {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.course-title-main {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.course-stats-badge {
    display: inline-block;
    background: #fffaf5 !important;
    color: #ff6a00 !important;
    border: 1px solid #ffddcc !important;
    padding: 0.35rem 1rem !important;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajuste nas Subpastas para dar o efeito de profundidade (anel interno) */
.course-container-box .submodule-section {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.2rem 1.5rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
    .course-container-box { padding: 1rem !important; }
    .course-title-main { font-size: 1.2rem !important; }
}