/* Conteúdo original do style.css será colocado aqui */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Mono', 'Roboto Mono', monospace;
}

:root {
    --primary-color: #1DB954;
    --secondary-color: #444;
    --dark-bg: #121212;
    --dark-bg-2: #B3B3B3;
    --sidebar-bg: #000000;
    --card-bg: #181818;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --hover-bg: #282828;
    --code-bg: #1e1e1e;
    --code-text: #e6e6e6;
    --code-border: #444;
    --code-keyword: #569cd6;
    --code-string: #ce9178;
    --code-function: #dcdcaa;
    --code-number: #b5cea8;
    --code-comment: #6A9955;
    --code-operator: #d4d4d4;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    height: 126vh;
    overflow: hidden;
    /* Para o app-container controlar o scroll se necessário */
}

.app-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    grid-template-rows: 1fr 120px;
    /* Main content e player */
    height: 125vh;
    /* Ajustado de 100vh para 125vh (100vh / 0.8) */
    width: 125%;
    /* Adicionado para compensar a escala na largura (100% / 0.8) */
    transform: scale(0.8);
    transform-origin: top left;
    /* Para a escala começar do canto superior esquerdo */
}

/* Sidebar */
.sidebar {
    grid-column: 1;
    grid-row: 1;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Controla o scroll da playlist internamente */
    padding-top: 24px;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    padding: 0 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--text-primary);
    font-size: 24px;
    background: linear-gradient(to right, var(--primary-color), #4df287);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.logo img {
    height: 200px;
    margin: auto;
}

.menu ul {
    list-style: none;
    padding: 0 8px;
}

.menu li {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.menu li:hover,
.menu li.active {
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

.menu li i {
    font-size: 18px;
}

.playlist-container {
    margin-top: 24px;
    flex: 1;
    /* Faz a playlist ocupar o espaço restante */
    overflow-y: auto;
    /* Scroll apenas para a lista de playlists */
    padding: 0 24px;
}

.playlist-container h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.playlist {
    list-style: none;
}

.playlist-module {
    margin-bottom: 16px;
    background-color: rgba(40, 40, 40, 0.4);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-title {
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: all 0.2s ease;
}

.module-title:hover {
    background-color: rgba(60, 60, 60, 0.4);
}

.module-title::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    transition: transform 0.3s ease;
}

.playlist-module.expanded .module-title::after {
    transform: rotate(90deg);
}

.module-lessons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(30, 30, 30, 0.5);
}

.playlist-module.expanded .module-lessons {
    max-height: 1000px;
    /* Valor alto o suficiente para exibir todas as aulas */
}

.lesson {
    display: flex;
    cursor: pointer;
    border-radius: 4px;
    margin: 4px 8px;
    transition: background-color 0.2s ease-in-out;
}

.lesson:hover,
.lesson.active {
    background-color: var(--hover-bg);
}

.lesson a.lesson-link:focus-visible {
    background-color: var(--hover-bg);
    border-radius: 4px;
    outline: none;
}

.play-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.lesson:hover .play-icon,
.lesson.active .play-icon {
    opacity: 1;
    color: var(--primary-color);
}

.lesson-info {
    flex: 1;
    padding-left: 8px;
}

.lesson-title {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.lesson-module {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Estilos para o novo a.lesson-link */
.lesson a.lesson-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    padding: 10px 8px;
    border-radius: 4px;
}

.lesson a.lesson-link:focus {
    outline: none;
}

/* Content */
.content {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(to bottom, #404040, var(--dark-bg) 25%);
    overflow-y: auto;
    /* Scroll para a área de conteúdo principal */
    display: flex;
    flex-direction: column;
}

.main-header {
    display: none;
    /* Oculto por padrão, visível em mobile via media query */
    padding: 10px 16px;
    background-color: var(--card-bg);
    /* Ou outra cor de fundo desejada */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.2); */
    position: sticky;
    /* Faz o header ficar fixo no topo do .content ao rolar */
    top: 0;
    z-index: 999;
    /* Abaixo da sidebar, mas acima do conteúdo */
}

.nav-btn,
.user-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover,
.user-btn:hover {
    color: var(--text-primary);
}

.navigation {
    display: flex;
    gap: 16px;
}

.content-area {
    padding: 24px 32px;
    /* Adiciona padding que antes estava no .content */
    flex-grow: 1;
}

.now-playing {
    margin-bottom: 32px;
}

.now-playing h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.current-lesson {
    display: flex;
    gap: 24px;
    align-items: center;
    background-color: rgba(40, 40, 40, 0.4);
    padding: 20px;
    border-radius: 8px;
}

.lesson-cover {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lesson-details h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.lesson-details p {
    color: var(--text-secondary);
}

.material-container {
    background-color: rgba(30, 30, 30, 0.5);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.material-container h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

#reading-material {
    line-height: 1.6;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    overflow-x: auto;
}

#reading-material pre {
    background-color: var(--code-bg);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    border-left: 4px solid var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    position: relative;
    line-height: 1.5;
}

#reading-material pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 0 0 4px 4px;
    background-color: rgba(0, 0, 0, 0.5);
}

#reading-material h1,
#reading-material h2,
#reading-material h3,
#reading-material h4,
#reading-material h5,
#reading-material h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

#reading-material h1 {
    font-size: 2em;
    margin-top: 16px;
}

#reading-material h2 {
    font-size: 1.75em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--hover-bg);
}

#reading-material h3 {
    font-size: 1.5em;
}

#reading-material h4 {
    font-size: 1.25em;
}

#reading-material h5 {
    font-size: 1em;
}

#reading-material p {
    margin-bottom: 16px;
    line-height: 1.6;
}

#reading-material a {
    color: var(--primary-color);
    text-decoration: none;
}

#reading-material a:hover {
    text-decoration: underline;
}

#reading-material ul,
#reading-material ol {
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.6;
}

#reading-material li {
    margin-bottom: 8px;
}

#reading-material code {
    font-family: 'Roboto Mono', monospace;
    padding: 2px 5px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--primary-color);
}

#reading-material pre>code {
    display: block;
    padding: 0;
    background-color: transparent;
    color: var(--code-text);
    font-size: 14px;
}

/* Syntax highlighting para código JavaScript */
#reading-material .code-keyword {
    color: var(--code-keyword);
    font-weight: bold;
}

#reading-material .code-string {
    color: var(--code-string);
    white-space: pre-wrap;
}

#reading-material .code-function {
    color: var(--code-function);
}

#reading-material .code-number {
    color: var(--code-number);
}

#reading-material .code-comment {
    color: var(--code-comment);
    font-style: italic;
}

#reading-material .code-operator {
    color: var(--code-operator);
}

#reading-material blockquote {
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(40, 40, 40, 0.4);
    border-radius: 4px;
}

#reading-material hr {
    height: 1px;
    background-color: var(--hover-bg);
    border: none;
    margin: 24px 0;
}

#reading-material table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    overflow-x: auto;
    display: block;
}

#reading-material th,
#reading-material td {
    padding: 8px 16px;
    border: 1px solid var(--hover-bg);
    text-align: left;
}

#reading-material th {
    background-color: rgba(40, 40, 40, 0.6);
    font-weight: 600;
}

#material-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

#material-link:hover {
    color: #4df287;
}

.hidden {
    display: none !important;
}

/* Player */
.player {
    grid-column: 1 / span 2;
    grid-row: 2;
    background-color: var(--card-bg);
    border-top: 1px solid var(--hover-bg);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
}

.mini-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--dark-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.track-info {
    max-width: 200px;
    overflow: hidden;
}

#mini-title {
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mini-module {
    color: var(--text-secondary);
    font-size: 12px;
}

.like-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.like-btn:hover {
    color: var(--primary-color);
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn:active {
    color: var(--primary-color);
}

/* Adiciona um estilo de foco para acessibilidade, especialmente para spans atuando como botões */
.control-btn:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
    /* Um brilho sutil no foco */
}

.play-pause-btn {
    width: 44px;
    height: 44px;
    background-color: var(--text-primary);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.play-pause-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    color: var(--dark-bg);
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    gap: 8px;
}

#current-time,
#duration {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress {
    background-color: #4df287;
}

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 30%;
}

.volume-bar {
    width: 100px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.volume-bar input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.volume-bar input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: transparent;
    border-radius: 2px;
}

.volume-bar input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    margin-top: -4px;
    background-color: var(--primary-color);
    box-shadow: -100vw 0 0 100vw var(--primary-color);
}

.volume {
    position: absolute;
    top: 5px;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    width: 50%;
    border-radius: 2px;
    z-index: 1;
}

.volume-bar input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    cursor: pointer;
}

.volume-bar input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.volume-bar input[type="range"]::-ms-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-color: transparent;
    color: transparent;
    cursor: pointer;
}

.volume-bar input[type="range"]::-ms-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

/* Botão de compartilhamento */
.share-btn {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.share-btn:hover {
    color: var(--primary-color);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Media Queries para responsividade */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 320px 1fr;
        /* Sidebar menor em tablets */
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        /* Conteúdo ocupa tudo */
        grid-template-rows: auto 1fr auto;
        /* Header, Conteúdo, Player */
    }

    .main-header {
        display: flex;
        /* Torna o header visível e permite alinhar o botão */
        align-items: center;
    }

    .sidebar {
        grid-column: auto;
        grid-row: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        /* ALTERADO de 300px para 100% */
        max-width: 100%;
        /* ALTERADO de 85vw para 100% */
        height: 100vh;
        /* Ocupa toda a altura */
        z-index: 1001;
        padding-top: 20px;
        /* Ajuste o padding se necessário */
        overflow-y: auto;
        /* Garante scroll na sidebar se o conteúdo for grande */
    }

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

    .sidebar.open .close-menu-btn {
        display: flex !important;
    }

    .content {
        grid-column: auto;
        /* Ocupa a coluna inteira */
        grid-row: auto;
        /* Ocupa a linha inteira */
        overflow-y: auto;
        /* Garante que o content seja scrollável */
    }

    .menu-toggle {
        display: inline-block;
        /* Torna o botão visível */
    }

    .player {
        padding: 8px 16px;
    }

    .player-center .progress-container {
        /* Talvez precise de mais ajustes aqui */
    }
}

@media (max-width: 576px) {
    .app-container {
        /* grid-template-rows: 50px 1fr auto;  Ajuste altura do header se necessário */
    }

    .sidebar {
        width: 100%;
        /* ALTERADO de 280px para 100% */
        /* max-width já será 100% herdado ou não necessário se width é 100% */
    }

    .content-area {
        padding: 16px;
        /* Menos padding em telas pequenas */
    }

    .player {
        grid-template-rows: auto auto;
        /* Empilha controles e progresso */
        padding: 8px;
    }

    .player-left,
    .player-right {
        /* Ocultar alguns elementos ou reduzir tamanho/espaçamento */
    }

    .player-left .track-info #mini-module {
        display: none;
        /* Oculta o nome do módulo no player em telas muito pequenas */
    }

    .player-center {
        width: 100%;
        /* Ocupa toda a largura disponível */
        order: -1;
        /* Move a barra de progresso e controles para cima no layout flex do player */
        padding-bottom: 8px;
    }

    .player-controls {
        justify-content: space-around;
        /* Distribui os botões */
    }

    .progress-container {
        width: 100%;
    }

    .player-left {
        justify-self: start;
    }

    .player-right {
        justify-self: end;
    }
}

/* Estilo para exemplos de código completos */
.code-example {
    position: relative;
    background-color: var(--code-bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    margin: 24px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.code-example pre {
    margin: 0;
    border-left: none;
}

.code-example-title {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--hover-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    background-color: rgba(29, 185, 84, 0.2);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.copy-code-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Ajustes para o conteúdo de código */
#reading-material pre code {
    padding: 0;
    background-color: transparent;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    tab-size: 4;
}

/* Estilos para o link do GitHub na sidebar */
.github-link-container {
    padding: 16px 24px;
    /* Mesmo padding lateral do logo e playlist-container */
    margin-top: 16px;
    /* Espaço acima */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Separador visual */
}

.github-link-container a {
    color: var(--text-secondary);
    /* Cor do texto padrão */
    text-decoration: none;
    /* Remove sublinhado */
    display: flex;
    /* Alinha ícone e texto */
    align-items: center;
    gap: 10px;
    /* Espaço entre ícone e texto */
    transition: color 0.2s ease;
}

.github-link-container a:hover {
    color: var(--text-primary);
    /* Cor ao passar o mouse */
}

.github-link-container i {
    font-size: 20px;
    /* Tamanho do ícone */
}

/* NOVOS ESTILOS PARA O TOAST */
/* .toast-notification { ... } */
/* Comentado pois já deve existir acima e não estamos focando nisso */

/* Overlay para a sidebar quando aberta em mobile */
/* .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; 
    display: none; 
}

.sidebar.open + .sidebar-overlay {
    display: block;
} */

/* Module Page Styles */
.module-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Roboto Mono', monospace;
    background-color: var(--sidebar-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

.module-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--hover-bg);
}

.module-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.module-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.breadcrumb a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.module-content {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.module-content h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.module-content ul {
    margin-bottom: 1rem;
}

.module-content li {
    margin-bottom: 0.5rem;
}

.module-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.module-content a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.module-footer {
    border-top: 2px solid var(--hover-bg);
    padding-top: 1rem;
}

.module-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary-light);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .module-page {
        padding: 1rem;
    }

    .module-header h1 {
        font-size: 2rem;
    }

    .module-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .nav-btn.prev,
    .nav-btn.next {
        margin: 0;
    }
}