/* ============================================================
   SALA DE AULA - PLAYER DE CURSO
   Estilo Cinematic Dark Mode (Kiwify/Netflix)
   ============================================================ */

:root {
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --accent-green: #00e676;
    --accent-green-dark: #00c853;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   BARRA DE PROGRESSO GLOBAL
   ============================================================ */

.progress-bar-container {
    background: var(--bg-secondary);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.progress-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-percentage {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-stats {
    font-size: 12px;
    color: var(--text-muted);
}

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

.course-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* ============================================================
   SIDEBAR DE NAVEGAÇÃO
   ============================================================ */

.course-sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    height: calc(100vh - 120px);
    position: sticky;
    top: 120px;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.sidebar-toggle:hover {
    color: var(--text-primary);
}

.modules-nav {
    padding: 10px 0;
}

.module-item {
    border-bottom: 1px solid var(--border-color);
}

.module-header {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.module-header:hover {
    background: var(--bg-tertiary);
}

.module-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.module-item.active .module-icon {
    transform: rotate(180deg);
}

.module-lessons {
    display: none;
    background: var(--bg-primary);
}

.module-item.active .module-lessons {
    display: block;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 12px;
    position: relative;
}

.lesson-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.lesson-item.current {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-green);
}

.lesson-item.completed .lesson-status {
    color: var(--accent-green);
}

.lesson-status {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 18px;
}

.lesson-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.lesson-duration {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.no-content,
.no-lessons {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   ÁREA PRINCIPAL (PLAYER)
   ============================================================ */

.course-main {
    flex: 1;
    padding: 30px;
    max-width: calc(100vw - 320px);
    overflow-y: auto;
}

.lesson-header {
    margin-bottom: 30px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-green);
}

.breadcrumbs i {
    font-size: 10px;
    color: var(--text-muted);
}

.current-breadcrumb {
    color: var(--text-primary);
    font-weight: 500;
}

.lesson-title-main {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* ============================================================
   CONTAINER DE VÍDEO
   ============================================================ */

.video-container {
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
}

.video-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 16px;
}

/* ============================================================
   BARRA DE AÇÕES
   ============================================================ */

.lesson-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-nav,
.btn-complete {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nav {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-nav:hover:not(.disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-green);
}

.btn-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-complete {
    background: var(--accent-green);
    color: #000;
    font-weight: 700;
}

.btn-complete:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.btn-complete.completed {
    background: var(--bg-tertiary);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-complete.completed:hover {
    background: var(--bg-secondary);
}

/* ============================================================
   ABAS DE CONTEÚDO
   ============================================================ */

.content-tabs {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-buttons {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tab-btn.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
    background: var(--bg-secondary);
}

.tab-content {
    display: none;
    padding: 30px;
}

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

.tab-content-inner {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tab-content-inner p {
    margin-bottom: 15px;
}

.no-content-text {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.materials-list {
    list-style: none;
    padding: 0;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.material-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.material-item i {
    font-size: 20px;
    color: var(--accent-green);
}

.material-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.material-item a:hover {
    color: var(--accent-green);
}

/* ============================================================
   ESTADO: NENHUMA AULA SELECIONADA
   ============================================================ */

.no-lesson-selected {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.no-lesson-selected i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.no-lesson-selected h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.no-lesson-selected p {
    font-size: 16px;
}

/* ============================================================
   MOBILE: BOTÃO TOGGLE SIDEBAR
   ============================================================ */

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4);
    z-index: 200;
    transition: all 0.2s ease;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
}

/* ============================================================
   RESPONSIVE (MOBILE)
   ============================================================ */

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

    .course-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 150;
        box-shadow: 4px 0 24px var(--shadow);
    }

    .course-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .course-main {
        max-width: 100%;
        padding: 20px;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lesson-title-main {
        font-size: 24px;
    }

    .lesson-actions {
        flex-direction: column;
    }

    .btn-nav,
    .btn-complete {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .progress-bar-container {
        padding: 15px 20px;
    }

    .course-main {
        padding: 15px;
    }

    .lesson-title-main {
        font-size: 20px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .progress-bar-container {
        padding: 12px 15px;
    }

    .progress-label,
    .progress-percentage {
        font-size: 12px;
    }

    .progress-stats {
        font-size: 11px;
    }

    .lesson-title-main {
        font-size: 18px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .tab-content {
        padding: 15px;
    }

    .mobile-sidebar-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}





