/* ============================================================
   PARTE 1: TELA INICIAL (DASHBOARD & CARDS) - ESTILO CLEAN TECH
   VERSÃO: COMPACTA (Espaçamentos reduzidos)
   ============================================================ */

:root {
    /* Paleta Suave "Big Tech" */
    --tech-blue: #0066FF;       
    --tech-surface: #ffffff;    
    --tech-bg: #F5F7FA;         
    --tech-text-main: #1F2937;  
    --tech-text-sub: #6B7280;   
    
    /* Sombras Difusas */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    
    /* Bordas */
    --radius-card: 20px;
    --radius-btn: 12px;
}

/* 1. FUNDO DA TELA */
#aluno-dashboard-view {
    background-color: var(--tech-bg);
    background-image: 
        radial-gradient(#E5E7EB 1.5px, transparent 1.5px),
        radial-gradient(#E5E7EB 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    min-height: 100vh;
}

/* 2. NAVBAR */
#aluno-dashboard-view .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
}

#senon-brand-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    
    /* Sintaxe Moderna (Removemos o -webkit- do linear-gradient) */
    background: linear-gradient(0deg, #111827, #4B5563);
    
    /* Adicionamos a propriedade padrão antes da prefixada */
    background-clip: text;
    -webkit-background-clip: text;
    
    /* Garante a transparência */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback de segurança */
}

/* 3. CARD DO CURSO */
#aluno-course-card-container .card {
    background-color: var(--tech-surface);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

#aluno-course-card-container .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 102, 255, 0.3);
}

#aluno-course-card-container .course-img-container {
    height: 180px;
    border-bottom: 1px solid #f3f4f6;
}

#aluno-course-card-container .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

#aluno-course-card-container .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tech-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* DESCRIÇÃO DO CURSO (Atualizado) */
#aluno-course-card-container .card-text {
    /* Fonte Premium */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    font-size: 0.9rem !important;
    color: #52525b; /* Cinza "Zinc" */
    font-weight: 400;
    
    /* Melhoria de Leitura */
    line-height: 1.6 !important; 
    text-align: left !important; 
    letter-spacing: 0.2px;       
    
    margin-bottom: 12px;
}

/* Link "mais" (Estilo Tag) */
.read-more-link {
    color: var(--tech-blue) !important;
    font-weight: 600;
    font-size: 0.75rem; 
    text-decoration: none !important;
    
    /* Visual de Botão Sutil */
    background-color: rgba(37, 99, 235, 0.08); 
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.read-more-link:hover {
    background-color: var(--tech-blue);
    color: #ffffff !important; 
    transform: translateY(-1px);
}

/* 4. AREA DO INSTRUTOR (Ajuste de Peso e Espaçamento) */
#aluno-course-card-container .bg-light.bg-opacity-50 {
    background-color: #F9FAFB !important; /* Cinza muito claro */
    border: 1px solid #F3F4F6 !important;
    border-radius: 12px !important;
    padding: 8px 10px !important; 
    margin-bottom: 8px !important; 
}

/* Ícone do Avatar */
#aluno-course-card-container .rounded-circle.shadow-sm {
    box-shadow: none !important;
    background-color: #E0E7FF !important; /* Fundo azul pálido */
    color: var(--tech-blue) !important;
    width: 32px !important; 
    height: 32px !important;
}

/* --- AJUSTE DOS TEXTOS --- */

/* 1. RÓTULOS (Instrutor / Formação) */
#aluno-course-card-container .bg-light.bg-opacity-50 small {
    text-transform: none !important;
    font-weight: 600 !important;
    color: #9CA3AF !important; 
    font-size: 0.70rem !important;
    letter-spacing: 0px !important;
    display: block; /* Garante quebra de linha */
}

/* 2. NOMES E CARGOS (Leonardo Silva) - VOLUME MÉDIO + DISTÂNCIA */
#aluno-course-card-container .bg-light.bg-opacity-50 span {
    text-transform: uppercase !important;
    
    /* AQUI: Peso 600 (Semi-Bold) dá volume sem ser agressivo */
    font-weight: 600 !important; 
    
    color: #374151 !important; 
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
    
    /* AQUI: Cria o respiro (distância) entre o rótulo e o nome */
    display: block;
    margin-top: 3px !important; 
}

/* ============================================================
   5. STATUS E PROGRESSO (RESTAURAÇÃO DA LINHA)
   Copie e substitua a Seção 5 inteira por este código
   ============================================================ */

.status-info-row {
    /* 1. POSICIONAMENTO DA LINHA */
    /* margin-top: 0 'puxa' a linha para cima (em direção ao instrutor) */
    margin-top: 6px !important;      
    
    /* padding-top: 10 'empurra' o conteúdo de baixo, centralizando o visual */
    padding-top: 12px !important;     
    padding-bottom: 10px !important;   
    
    /* 2. A LINHA EM SI */
    border-top: 2px dashed #E5E7EB !important; 
    
    /* 3. ALINHAMENTO FLEX (Garante que esquerda e direita fiquem na mesma altura) */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

.status-label {
    font-size: 0.65rem; 
    color: #9CA3AF;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1.2;
    display: block;
}

.status-value {
    color: #374151;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Barra de Progresso "Líquida" */
.progress-track-modern {
    background-color: #E5E7EB;
    border-radius: 10px;
    height: 6px;
    margin-bottom: 12px; 
    margin-top: 10px; /* Ajuste fino para afastar da linha de texto */
}

.progress-bar-liquid {
    border-radius: 10px;
    /* Sombra suave sem forçar cor, para respeitar o JS (Vermelho/Amarelo/Verde) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 6. BOTÃO DE AÇÃO (CTA - Fonte Premium e Fino) */
#aluno-course-card-container .btn-start-course {
    width: 100%;
    border-radius: var(--radius-btn);
    
    /* --- MELHORIA DA FONTE --- */
    /* Pilha de fontes moderna (Inter, San Francisco, Segoe UI) */
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; 
    font-weight: 600;        /* Semi-negrito para leitura clara */
    letter-spacing: 0.3px;   /* Leve respiro entre as letras (elegância) */
    -webkit-font-smoothing: antialiased; /* Deixa a fonte mais nítida (menos pixelada) */
    -moz-osx-font-smoothing: grayscale;
    /* ------------------------ */

    text-transform: none; 
    
    /* Dimensões (Mantendo o ajuste fino anterior) */
    padding: 7px 12px; 
    min-height: 38px;  
    
    font-size: 0.9rem; 
    border: none;
    transition: all 0.2s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto; 
}

/* ... (Mantenha as cores dos botões abaixo iguais ao anterior) ... */
#aluno-course-card-container .btn-primary {
    background-color: var(--tech-blue);
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.2);
}
#aluno-course-card-container .btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 102, 255, 0.3);
}

#aluno-course-card-container .btn-outline-primary {
    border: 1px solid #E5E7EB;
    color: var(--tech-text-main);
    background: transparent;
}
#aluno-course-card-container .btn-outline-primary:hover {
    border-color: var(--tech-blue);
    color: var(--tech-blue);
    background: #EFF6FF;
}

#aluno-course-card-container .btn-success {
    background-color: #10B981;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

#aluno-course-card-container .btn-warning {
    background-color: #F59E0B;
    color: white !important;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

/* 7. ÍCONES FLUTUANTES */
.course-social-badge, .course-like-badge {
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.course-like-badge {
    top: 70px !important;
}

/* ============================================================
   CONTROLE DA SOMBRA DE FUNDO DO MODAL (POP-UP)
   VERSÃO: CLEAN GLASS (Fundo Claro/Branco + Blur)
   ============================================================ */

/* Aplicamos a regra a TODAS as variações para vencer o preto padrão */
.modal-backdrop,
.modal-backdrop.fade,
.modal-backdrop.show {
    /* MUDANÇA AQUI: Trocamos o escuro por BRANCO com transparência (0.5 = 50%) */
    background-color: rgba(139, 139, 139, 0.533) !important; 
    
    /* Configuração de Transição Suave */
    transition: opacity 0.5s ease-in-out, backdrop-filter 0.5s ease-in-out !important;
    
    /* Força o Bootstrap a usar nossa cor clara */
    --bs-backdrop-bg: rgba(255, 255, 255, 0.5) !important;
    --bs-backdrop-opacity: 1 !important;
}

/* ESTADO 1: INVISÍVEL (Fechado ou Fechando) */
.modal-backdrop,
.modal-backdrop.fade {
    opacity: 0 !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

/* ESTADO 2: VISÍVEL (Aberto) */
.modal-backdrop.show {
    opacity: 1 !important;
    
    /* Mantive o desfoque suave de 3px que você gostou */
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

/* ============================================================
   9. MODAL DE SUPORTE & CUSTOM SELECT (Visual Clean Tech)
   VERSÃO: FINAL (Permite menu flutuante)
   ============================================================ */

/* Container do Modal */
#student-message-modal .modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    
    /* MUDANÇA CRÍTICA: Visible para o menu não ser cortado */
    overflow: visible !important; 
}

/* Cabeçalho */
#student-message-modal .modal-header {
    background: transparent !important;
    border-bottom: 1px solid #f3f4f6;
    padding: 24px 24px 16px 24px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* Título */
#student-message-modal .modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #111827 !important;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#student-message-modal .modal-title i {
    color: var(--tech-blue);
    background: rgba(0, 102, 255, 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

/* Botão Fechar */
#student-message-modal .btn-close {
    background-color: #fee2e2 !important; 
    filter: none !important; 
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s ease;
    width: 12px; 
    height: 12px;
    padding: 10px;
    box-sizing: content-box;
    margin: 0 !important;
}
#student-message-modal .btn-close:hover {
    background-color: #fecaca !important;
    transform: rotate(90deg);
}

/* Corpo e Labels */
#student-message-modal .modal-body { padding: 24px; }

#student-message-modal .modal-body label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 8px;
    display: block;
}

/* Inputs Normais */
#student-message-modal .form-control {
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #1F2937;
    transition: all 0.2s ease;
    box-shadow: none;
}
#student-message-modal .form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--tech-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1) !important;
    outline: none;
}

/* --- ESTILOS DO MENU CUSTOMIZADO (JavaScript vai usar isso) --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

/* O Botão que o usuário vê (imita o input) */
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1F2937;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

/* Seta animada */
.custom-select-trigger:after {
    content: '';
    width: 12px; height: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--tech-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

/* A Lista Flutuante (O que substitui o dropdown feio) */
.custom-options {
    position: absolute;
    display: block;
    top: calc(100% + 8px); left: 0; right: 0;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.15); /* Sombra Big Tech */
    background: #fff;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Itens da Lista */
.custom-option {
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #374151;
    font-size: 0.95rem;
}

.custom-option:hover {
    background-color: #EFF6FF; /* Azul ultra claro */
    color: var(--tech-blue);
}

.custom-option.selected {
    background-color: #EFF6FF;
    color: var(--tech-blue);
    font-weight: 600;
}

/* Botão de Enviar */
#student-message-modal button[type="submit"] {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    background-color: var(--tech-blue) !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
    transition: all 0.2s ease;
}

#student-message-modal button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.3);
    background-color: #0052cc !important;
}

/* ============================================================
   10. ESTADO DE SUCESSO (Mensagem Enviada)
   Adicione ao final do part1-home.css
   ============================================================ */

.msg-success-wrapper {
    text-align: center;
    padding: 30px 20px;
    /* Animação suave de entrada (zoom in elástico) */
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ícone Verde (Check) */
.msg-success-icon {
    width: 80px;
    height: 80px;
    background-color: #DCFCE7; /* Verde Menta (Estilo WhatsApp/Stripe) */
    color: #166534;            /* Verde Floresta Escuro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px auto;
    
    /* Sombra verde suave */
    box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.15);
}

.msg-success-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #111827;
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.msg-success-text {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Botão de Fechar no Sucesso */
.btn-success-close {
    background-color: #F3F4F6 !important;
    color: #374151 !important;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-success-close:hover {
    background-color: #E5E7EB !important;
    color: #111827 !important;
    transform: translateY(-2px);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   11. MODO ESCURO (DARK MODE - DASHBOARD)
   Adicione este bloco ao FINAL do arquivo part1-home.css
   ============================================================ */

/* 1. FUNDO GERAL (Azul Profundo) */
[data-bs-theme="dark"] #aluno-dashboard-view {
    background-color: #0f172a !important; /* Slate 900 */
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px) !important;
}

/* 2. NAVBAR (Vidro Escuro) */
[data-bs-theme="dark"] #aluno-dashboard-view .navbar {
    background: rgba(30, 41, 59, 0.85) !important; /* Slate 800 */
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Título da Marca (Senon) no Dark Mode */
[data-bs-theme="dark"] #senon-brand-title {
    /* Gradiente Prateado para destacar no escuro */
    background: linear-gradient(0deg, #e2e8f0, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. CARDS DE CURSO (Vidro Translúcido) */
[data-bs-theme="dark"] #aluno-course-card-container .card {
    background-color: rgba(30, 41, 59, 0.7) !important; /* Fundo escuro transparente */
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] #aluno-course-card-container .card-title {
    color: #f8fafc !important; /* Branco puro */
}

[data-bs-theme="dark"] #aluno-course-card-container .card-text {
    color: #cbd5e1 !important; /* Cinza claro */
}

/* Área do Instrutor (Fundo cinza claro vira escuro) */
[data-bs-theme="dark"] #aluno-course-card-container .bg-light.bg-opacity-50 {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] #aluno-course-card-container .bg-light.bg-opacity-50 span {
    color: #e2e8f0 !important; /* Nome do instrutor claro */
}

/* Linha Tracejada e Status */
[data-bs-theme="dark"] .status-info-row {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}
[data-bs-theme="dark"] .status-value {
    color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .progress-track-modern {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Trilho escuro */
}

/* Botão Outline (Continuar Curso) - Ajuste de cor */
[data-bs-theme="dark"] #aluno-course-card-container .btn-outline-primary {
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}
[data-bs-theme="dark"] #aluno-course-card-container .btn-outline-primary:hover {
    background-color: rgba(96, 165, 250, 0.1) !important;
}

/* 4. MODAL DE MENSAGEM (SUPORTE) */
[data-bs-theme="dark"] #student-message-modal .modal-content {
    background-color: #1e293b !important; /* Slate 800 */
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] #student-message-modal .modal-title {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] #student-message-modal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] #student-message-modal .modal-body label {
    color: #94a3b8 !important;
}

/* Inputs e Textareas no Dark Mode */
[data-bs-theme="dark"] #student-message-modal .form-control {
    background-color: #0f172a !important; /* Fundo bem escuro */
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #student-message-modal .form-control:focus {
    border-color: var(--tech-blue) !important;
    background-color: #0f172a !important;
}

/* --- 5. SELECT CUSTOMIZADO (Dark Mode) --- */
/* O gatilho (botão do select) */
[data-bs-theme="dark"] .custom-select-trigger {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

/* A lista flutuante */
[data-bs-theme="dark"] .custom-options {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

/* Itens da lista */
[data-bs-theme="dark"] .custom-option {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .custom-option:hover,
[data-bs-theme="dark"] .custom-option.selected {
    background-color: rgba(59, 130, 246, 0.2) !important; /* Azul escuro translúcido */
    color: #60a5fa !important;
}

/* --- 6. MENSAGEM DE SUCESSO --- */
[data-bs-theme="dark"] .msg-success-title {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .msg-success-text {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .btn-success-close {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .btn-success-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   12. MODAL DE AVISO DE PRAZO (Start Course Warning)
   Adicione ao final do part1-home.css
   ============================================================ */

/* Container Centralizado */
.modal-warning-content {
    text-align: center;
    padding: 10px 10px 20px 10px;
}

/* 1. ÍCONE DE DESTAQUE (Relógio/Aviso) */
.warning-icon-badge {
    width: 80px;
    height: 80px;
    background-color: #FEF3C7; /* Amarelo muito claro (Amber 100) */
    color: #D97706;            /* Laranja Queimado (Amber 600) */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px auto;
    
    /* Animação suave de pulso */
    animation: pulse-warning 2s infinite;
    box-shadow: 0 0 0 8px rgba(254, 243, 199, 0.4);
}

@keyframes pulse-warning {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* 2. TIPOGRAFIA */
.warning-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.warning-text {
    color: #4B5563; /* Cinza médio */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Destaque para o "5 dias" */
.highlight-time {
    color: #B45309; /* Laranja Escuro */
    font-weight: 800;
    background-color: #FFFBEB;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px dashed #FCD34D;
}

/* 3. BOTÕES DE AÇÃO */
.warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Botão Cancelar (Cinza Fantasma) */
.btn-ghost-cancel {
    background-color: transparent !important;
    border: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.2s;
}
.btn-ghost-cancel:hover {
    background-color: #F3F4F6 !important;
    color: #111827 !important;
}

/* Botão Iniciar (Azul Tech ou Laranja de Ação) */
.btn-action-confirm {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    color: white !important;
    border: none;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-action-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* --- MODO ESCURO (Dark Mode Support) --- */
[data-bs-theme="dark"] .warning-icon-badge {
    background-color: rgba(217, 119, 6, 0.15); /* Amber escuro translúcido */
    color: #fbbf24; /* Amber neon */
    box-shadow: none;
    animation: none; /* Remove pulso no dark para não brilhar demais */
    border: 1px solid rgba(251, 191, 36, 0.2);
}
[data-bs-theme="dark"] .warning-title { color: #f8fafc; }
[data-bs-theme="dark"] .warning-text { color: #cbd5e1; }
[data-bs-theme="dark"] .highlight-time {
    background-color: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
[data-bs-theme="dark"] .btn-ghost-cancel {
    border-color: rgba(255,255,255,0.1) !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .btn-ghost-cancel:hover {
    background-color: rgba(255,255,255,0.05) !important;
    color: #fff !important;
}

/* ============================================================
   AJUSTE: GIRO DO BOTÃO DE FECHAR (X) NO AVISO DE PRAZO
   Adicione ao final da Seção 12 no part1-home.css
   ============================================================ */

#start-course-warning-modal .btn-close {
    /* Define a velocidade e a suavidade da animação */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    
    /* Garante que o botão seja visível e clicável */
    opacity: 1;
    background-color: #f3f4f6; /* Cinza claro inicial */
}

/* O EFEITO AO PASSAR O MOUSE */
#start-course-warning-modal .btn-close:hover {
    /* 1. O Giro (180 graus para meia volta completa) */
    transform: rotate(180deg) !important; 
    
    /* 2. Mudança de Cor (Fica vermelho suave para indicar "fechar") */
    background-color: #fee2e2 !important; 
    
    /* 3. Pequena sombra vermelha (Glow) */
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}

/* Suporte ao Modo Escuro */
[data-bs-theme="dark"] #start-course-warning-modal .btn-close {
    background-color: rgba(255, 255, 255, 0.1);
    filter: invert(1); /* Garante que o X seja visível no escuro */
}
[data-bs-theme="dark"] #start-course-warning-modal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   13. SKELETON LOADING (CARREGAMENTO ESQUELETO ANIMADO)
   Adicione ao final do part1-home.css
   ============================================================ */

/* 1. ANIMAÇÃO BASE (O Efeito de Brilho) */
.skeleton {
    background-color: #E5E7EB; /* Cor Base (Cinza Claro) */
    
    /* O Gradiente que cria o efeito de luz passando */
    background-image: linear-gradient(
        90deg, 
        #E5E7EB 0px, 
        #F3F4F6 60px, /* Cor do Brilho (Mais claro) */
        #E5E7EB 120px
    );
    
    background-size: 800px; /* Largura do efeito */
    animation: skeleton-shimmer 1.5s infinite linear; /* Velocidade da animação */
    border-radius: 8px;
    display: block;
}

@keyframes skeleton-shimmer {
    0% { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}














/* --- AJUSTES MOBILE --- */
@media (max-width: 767.98px) {
    
    /* CORREÇÃO MÁGICA: Força a rolagem a aparecer no mobile */
    html, body {
        overflow-y: auto !important; 
        height: auto !important;
    }

    #content-area { 
        padding-top: 80px; 
        padding-left: 0; 
        padding-right: 0; 
        height: auto !important; 
        min-height: 100vh;
        overflow-y: visible !important; 
        padding-bottom: 150px; 
    } 

}

















/* 2. FORMAS ESPECÍFICAS (Para imitar o card real) */

/* Imagem do Curso (Retângulo Grande no topo) */
.sk-img {
    width: 100%;
    height: 180px; 
    border-radius: 20px 20px 0 0 !important; /* Arredondado igual ao card real */
    margin-bottom: 0;
}

/* Título (Barra Grossa) */
.sk-title {
    height: 24px;
    width: 80%;
    margin-bottom: 12px;
    margin-top: 16px;
}

/* Texto Descrição (Barras Finas) */
.sk-text {
    height: 14px;
    width: 95%;
    margin-bottom: 8px;
}

.sk-text-short {
    height: 14px;
    width: 60%; /* Linha mais curta para parecer parágrafo */
    margin-bottom: 24px;
}

/* Botão (Barra Larga embaixo) */
.sk-btn {
    height: 42px;
    width: 100%;
    border-radius: 12px;
    margin-top: auto; /* Empurra para o fundo se flex */
}

/* 3. ESTRUTURA DO CARD DURANTE O LOADING */
/* Garante que o card vazio tenha o mesmo tamanho do card cheio */
.card:has(.skeleton) {
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

/* ============================================================
   SUPORTE AO MODO ESCURO (DARK MODE SKELETON)
   ============================================================ */
[data-bs-theme="dark"] .skeleton {
    background-color: #1e293b; /* Base Escura (Slate 800) */
    background-image: linear-gradient(
        90deg, 
        #1e293b 0px, 
        #334155 60px, /* Brilho levemente mais claro (Slate 700) */
        #1e293b 120px
    );
}

[data-bs-theme="dark"] .card:has(.skeleton) {
    background: rgba(30, 41, 59, 0.7); /* Fundo do card translúcido */
    border-color: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   MODAL DE DETALHES DO CURSO (ESTILO PREMIUM / HERO)
   ============================================================ */

/* Remove bordas e arredonda */
#course-details-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Área da Imagem (Hero) */
.details-hero-container {
    height: 250px;
    width: 100%;
    position: relative;
    background-color: #e9ecef;
    overflow: hidden;
}

.details-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Gradiente sobre a imagem para o texto do título ficar legível */
.details-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

/* Título sobre a imagem */
.details-hero-title {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* Corpo do Texto */
.details-body {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    max-height: 400px; /* Limite de altura se o texto for gigante */
    overflow-y: auto;
}

/* Barra de Ação (Botão) */
.details-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Botão Fechar Flutuante */
.btn-close-white-absolute {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 10px;
    filter: invert(1);
    transition: background 0.2s;
}
.btn-close-white-absolute:hover {
    background-color: rgba(0,0,0,0.6);
}

/* Scrollbar Bonita */
.details-body::-webkit-scrollbar { width: 6px; }
.details-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* Dark Mode Support */
[data-bs-theme="dark"] #course-details-modal .modal-content { background-color: #1e293b; }
[data-bs-theme="dark"] .details-body { color: #cbd5e1; }
[data-bs-theme="dark"] .details-footer { background-color: #0f172a; border-top-color: rgba(255,255,255,0.05); }