
        :root {
            --primary-color: #4e73df;
            --accent-color: #0751ff;
            --dark-bg: #191c24;
            --sidebar-width: 205px;
            --sidebar-collapsed-width: 70px;
            --header-height: 60px;
            --body-bg: #f5f8fa;
            --card-bg: #ffffff;
            --text-color: #333;
            --sidebar-text: #a7a7a7;
            --active-link: #4e73df;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: var(--body-bg);
            overflow-x: hidden;
        }
        
        /* SIDEBAR STYLES */
        .sidebar {
            position: fixed;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--dark-bg);
            z-index: 100;
            transition: all 0.3s ease;
            overflow-y: auto;
        }
        
        .sidebar-header {
            height: 60px;
            display: flex;
            align-items: center;
            padding: 0 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .sidebar-header .logo-icon {
            width: 120px;
            margin-right: 40px;
        }
        
        .logo-text {
            color: white;
            font-weight: 600;
            font-size: 18px;
        }
        
        .user-info {
            padding: 15px 20px;
            color: var(--accent-color);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .user-info-item {
            display: flex;
            align-items: center;
            margin-top: 10px;
            color: var(--sidebar-text);
            font-size: 13px;
        }
        
        .user-info-item i {
            width: 20px;
            margin-right: 8px;
            color: var(--sidebar-text);
        }
        
        .menu-section {
            padding: 15px 0;
        }
        
        .menu-title {
            padding: 0 20px;
            margin-bottom: 10px;
            color: var(--sidebar-text);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .menu-item {
            list-style: none;
        }
        
        
        .menu-text {
            font-size: 14px;
        }
        
        /* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
    padding-top: 20px; /* reduzido */
}
        
        /* HEADER - CORREÇÃO APLICADA AQUI */
        .header {
             height: var(--header-height);
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alterado para flex-start */
    padding: 0 20px;
    transition: all 0.3s ease;
        }
        
        /* Botão de toggle - CORREÇÃO APLICADA AQUI */
        #toggleSidebarBtn {
            display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0; /* Remover qualquer padding */
    text-decoration: none;
    margin: 0; /* Remover qualquer margem */
        }
        
        #toggleSidebarBtn:hover {
            background-color: #e0e0e0;
        }
        
        #toggleSidebarBtn i {
           font-size: 26px;
    color: #333;
    display: flex; /* Garante alinhamento exato */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
        }
        
        /* Para dispositivos móveis */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        left: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        left: 0;
    }
    
    #toggleSidebarBtn {
        margin-right: 15px; /* Adicionado margin apenas no mobile */
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content.sidebar-active {
        margin-left: var(--sidebar-width);
    }
    
    .header.sidebar-active {
        left: var(--sidebar-width);
    }
}

        
        /* Para desktop - Menu recolhido (esconde completamente) */
@media (min-width: 993px) {
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .main-content,
    body.sidebar-collapsed .header {
        margin-left: 0;
        left: 0;
    }

    /* Essas regras abaixo ficam até desnecessárias, mas não atrapalham.
       Como o menu some da tela, nem vai aparecer texto/ícone mesmo.
       Pode manter ou remover, tanto faz. */
    body.sidebar-collapsed .menu-text,
    body.sidebar-collapsed .user-info-item span,
    body.sidebar-collapsed .logo-text,
    body.sidebar-collapsed .menu-title {
        display: none;
    }

    body.sidebar-collapsed .menu-icon {
        margin-right: 0;
        justify-content: center;
    }

    body.sidebar-collapsed .menu-link {
        justify-content: center;
    }

    body.sidebar-collapsed .user-info > div:not(:first-child) {
        display: none;
    }
}

        }
        
        
        .search-bar {
            flex: 1;
            margin: 0 20px;
        }
        
        .header-right {
            margin-left: auto;
        }
        
        /* CARDS AND CONTENT */
        .content-wrapper {
            padding-top: calc(var(--header-height) + 20px);
        }
        
        .card {
            background: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            overflow: hidden;
            border: none;
        }
        
        .card-header {
            padding: 15px 20px;
            background: var(--card-bg);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-color);
            margin: 0;
        }
        
        .card-body {
            padding: 20px;
        }
        
        /* Search Bar */
        .search-container {
            position: relative;
            margin-bottom: 20px;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
        }
        
        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .btn {
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            border: none;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background: #3a5ccc;
            transform: translateY(-2px);
        }
        
        .btn-warning {
            background: var(--accent-color);
            color: #333;
        }
        
        .btn-warning:hover {
            background: #e5ac00;
            transform: translateY(-2px);
        }
        
        /* Table Styles */
        .table-responsive {
            overflow-x: auto;
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .data-table th {
            padding: 12px 15px;
            text-align: left;
            font-weight: 500;
            font-size: 14px;
            color: #666;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .data-table td {
            padding: 12px 15px;
            font-size: 14px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .data-table tr:hover {
            background: rgba(0, 0, 0, 0.01);
        }
        
        .action-cell {
            display: flex;
            gap: 10px;
        }
        
        .btn-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-edit {
            background: var(--primary-color);
        }
        
        .btn-delete {
            background: #e63946;
        }
        
        @media (max-width: 576px) {
            .action-buttons {
                flex-direction: column;
            }
        }

/* ====== CARDS DE CURSO (ÁREA DO ALUNO) ====== */

.curso-item {
    animation: fadeUp 0.45s ease-out both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-curso {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-curso:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(78, 115, 223, 0.35);
}

.card-curso-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.course-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(78, 115, 223, 0.5);
}

.course-icon-circle i {
    font-size: 18px;
}

.course-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.course-desc {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.course-chip-date {
    font-size: 12px;
    color: #777;
}

/* ====== PÁGINA DO CURSO (LISTA DE AULAS) ====== */

.course-header-card {
    margin-bottom: 15px;
}

.course-header-card .course-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.course-header-meta {
    font-size: 13px;
    color: #666;
}

.course-description-card {
    margin-bottom: 15px;
}

.lesson-list-card {
    margin-bottom: 10px;
}

.accordion .accordion-item {
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.accordion-button {
    background: var(--card-bg);
    padding: 12px 16px;
}

.accordion-button:not(.collapsed) {
    background: #f4f6fb;
    color: #111827;
}

.accordion-button:focus {
    box-shadow: none;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(78, 115, 223, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.lesson-icon-circle i {
    font-size: 15px;
}

.lesson-title-text {
    font-size: 14px;
    font-weight: 500;
}

/* vídeo mais alinhado */
.lesson-video-wrapper video {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
}

/* ====== PÁGINA DO CURSO - CARDS DE AULA ====== */

.lesson-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.lesson-video-wrapper {
    background: #000;
}

.lesson-video-wrapper video {
    width: 100%;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.lesson-card-body {
    padding: 18px 20px 20px 20px;
}

.lesson-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.lesson-card-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* leve animação de entrada */
.lesson-card {
    opacity: 0;
    transform: translateY(8px);
    animation: lessonFadeUp .4s ease-out forwards;
}

@keyframes lessonFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-card-completed {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 8px 22px rgba(15, 23, 42, 0.10);
}

.lesson-card-completed .lesson-card-title {
    text-decoration: line-through;
    color: #16a34a;
}

/* ITEM DE MENU (normal) */
.menu-link {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
    margin: 2px 8px;
}

/* HOVER – “acende” o item */
.menu-link:hover {
    background: rgba(78, 115, 223, 0.23); /* azul suave */
    color: #ffffff;
}

/* ITEM SELECIONADO (ativo) – estilo Dashboard da foto */
.menu-link.active {
    background: #111827;                         /* fundo mais escuro */
    color: #ffffff;
    box-shadow: inset 4px 0 0 var(--active-link); /* barrinha azul à esquerda */
}

/* não usamos mais o pseudo-elemento antigo */
.menu-link.active:before {
    content: none;
}

/* ÍCONE DO MENU */
.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
}

/* cor padrão do ícone (azul) */
.menu-icon i {
    color: #4e73df;
    transition: color 0.2s ease;
}

/* ícone fica branco no hover/ativo */
.menu-link:hover .menu-icon i,
.menu-link.active .menu-icon i {
    color: #ffffff;
}
