/* Variáveis CSS para Cores */
:root {
    --primary-color: #5B3A8C; /* Roxo Escuro */
    --secondary-color: #FF0080; /* Magenta */
    --accent-color: #FDB92F; /* Laranja */
    --support-color: #6B5344; /* Marrom */
    --complement-color: #B89FCC; /* Roxo Claro */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --background-light: #F4F4F9;
}

/* --- Estilos Gerais e Layout --- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    display: flex;
    font-family: Arial, sans-serif;
    text-align: center;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Container principal da aplicação (para manter o conteúdo ao lado da sidebar) */
.app-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Sidebar (Navegação) --- */

.sidebar {
    width: 280px;
    background-color: var(--primary-color); /* Roxo Escuro */
    color: var(--text-light);
    height: 100vh;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--complement-color); /* Roxo Claro */
    padding-bottom: 15px;
}

.sidebar-title {
    font-size: 1.4em;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 24px;
}

.module-list {
    list-style: none;
    padding-right: 10px; /* evita overflow horizontal em telas pequenas */
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.module-item {
    display: block;
    background-color: #7A5DA7; /* Roxo Escuro mais claro */
    padding: 12px 10px;
    color: var(--text-light);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background-color 0.3s;
    white-space: normal; /* permite quebra de linha dentro do link */
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.module-item:hover {
    background-color: #7A5DA7; /* Roxo Escuro mais claro */
}

.module-item:focus {
    outline: 2px solid var(--accent-color); /* Laranja como foco */
}

/* --- Conteúdo Principal (Main Content) --- */

.main-content {
    margin-left: 280px; /* Offset para a sidebar fixa */
    padding: 30px;
    flex-grow: 1;
}

/* --- Cabeçalho do Conteúdo --- */

.content-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--complement-color); /* Roxo Claro */
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo-icon circle {
    fill: var(--primary-color); /* Roxo Escuro */
}

.logo-icon text {
    fill: var(--text-light);
    font-weight: bold;
}

.page-title-mobile {
    font-size: 1.5em;
    color: var(--primary-color); /* Roxo Escuro */
    font-weight: 600;
}

/* --- Títulos e Seções --- */

.main-heading {
    font-size: 2em;
    color: var(--primary-color); /* Roxo Escuro */
    margin-bottom: 10px;
}

.navigation-container-mobile {
    display: none;
    margin: 20px 0 24px;
}

.navigation-container-mobile ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.btn-navigation,
.btn-navigation-ativo {
    display: flex;
}

.btn-navigation a,
.btn-navigation-ativo a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: bold;
    border: 2px solid var(--complement-color);
    background-color: var(--text-light);
    color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-navigation a:hover,
.btn-navigation a:focus,
.btn-navigation-ativo a:focus {
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-navigation-ativo a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

h5[dir="rtl"] {
    color: var(--support-color); /* Marrom */
    font-style: italic;
    margin-bottom: 20px;
}

.content-card_mod {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--complement-color); /* Borda Roxo Claro */
    margin-bottom: 30px;
}

.resumo_mod h2, .questoes_mod h2 {
    color: var(--primary-color); /* Roxo Escuro */
    border-bottom: 2px solid var(--secondary-color); /* Sublinhado Magenta */
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.resumo_mod p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.qtoes {
    color: var(--support-color); /* Marrom */
    font-style: italic;
    margin: 20px 0;
    padding: 10px;
    border-left: 5px solid var(--accent-color); /* Destaque Laranja */
    background-color: #FEF7E8; /* Fundo leve para o destaque */
}

.questoes_mod ul {
    margin-left: 25px;
}

.questoes_mod li {
    margin-bottom: 10px;
}

/* --- Botões de Navegação --- */

.navigation-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-button {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    min-width: 120px;
}

.anterior {
    background-color: var(--complement-color); /* Roxo Claro */
    color: var(--primary-color);
}

.anterior:hover {
    background-color: #9C7EC2;
}

.proximo {
    background-color: var(--accent-color); /* Laranja */
    color: var(--text-light);
}

.proximo:hover {
    background-color: #E0A020;
}

/* --- Rodapé --- */

.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--complement-color); /* Roxo Claro */
    margin: 40px 0;
}

.short-divider {
    width: 50px;
    margin: 15px auto;
}

.page-footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--text-light);
}

.footer-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-box img {
    height: 35px; /* Ajuste o tamanho conforme necessário */
    object-fit: contain;
}

.footer-academy {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.footer-link {
    color: var(--secondary-color); /* Link Magenta */
    margin-bottom: 10px;
    display: block;
}

.footer-copyright {
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}

.footer-developer {
    font-size: 0.9em;
    color: var(--support-color); /* Marrom */
}

.developer-name {
    font-weight: bold;
}

/* --- Responsividade (Ajustes para telas menores) --- */

@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        padding-bottom: 0;
    }

    .sidebar-header {
        border-bottom: none;
    }
    
    .close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .module-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 10px;
    }

    .module-item {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 10px;
        background-color: #7A5DA7;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .content-header {
        flex-direction: column;
        text-align: center;
    }

    .logo-placeholder {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .page-title-mobile {
        font-size: 1.2em;
    }

    .navigation-container-mobile {
        display: block;
    }
    
    .footer-box img {
        height: 30px;
    }
}
.module-item.disabled {
    pointer-events: none; /* Impede o clique */
    opacity: 0.5; /* Torna-o visualmente desativado */
    cursor: default; /* Altera o cursor para não indicar ação */
}
.iframe-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ajuste o valor conforme necessário */
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Reset Básico e Estilos Globais */
h1 {
    color: #007bff;
    margin-bottom: 40px;
}

/* Images/Video responsive */
img, video {
    max-width: 100%;
    height: auto;
}
/* --- Container da Nuvem de Palavras --- */
.word-cloud-container {
    position: relative;
    display: block;
    max-width: 860px; /* Mude para max-width */
    width: 100%; /* Garante que ocupe a largura disponível */
    min-height: 420px;
    height: 520px;
    margin: 0 auto;
    padding: 18px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #d6d8db;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(100, 47, 141, 0.08), transparent 40%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.08), transparent 35%),
        #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.word-cloud-container .word {
    display: inline-block;
    position: absolute;
    max-width: 40%;
    text-align: center;
    line-height: 1.08;
    white-space: normal;
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: 0.08em 0.16em;
    border-radius: 0.2em;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-wrap: balance;
}

.word-cloud-container .word:hover,
.word-cloud-container .word:focus-visible {
    filter: brightness(0.9);
    outline: none;
}

@media (max-width: 768px) {
    .word-cloud-container {
        min-height: 360px;
        height: 460px;
        padding: 14px;
    }

    .word-cloud-container .word {
        max-width: 46%;
    }
}

/* --- Caixa de Descrição Abaixo da Nuvem --- */
#description-box {
    max-width: 780px; /* Mude para max-width */
    width: 100%; /* Garante que ocupe a largura disponível */
    min-height: 80px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 8px;
    text-align: left;
    font-size: 1.4em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#description-box p {
    margin: 0;
    font-style: italic;
    color: #495057;
}

#description-box p strong {
    font-style: normal;
    color: #007bff;
}

#description-box p:first-child:not(:has(strong)) {
    color: #6c757d;
    font-style: normal;
}

/* Toggle JS: esconder a sidebar via classe e mostrar botão hambúrguer */
.sidebar.sidebar--hidden {
    display: none !important;
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
}

/* Se a sidebar estiver escondida (classe adicionada por JS), mostra o hambúrguer se ele for irmão posterior */
.sidebar.sidebar--hidden + .hamburger-btn {
    display: inline-flex;
}

/* Ajusta conteúdo quando a sidebar estiver colapsada */
body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
}

/* --- Estilos para Formulário/Mensagem Indisponível --- */
.container {
    max-width: 600px;
    margin: 60px auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5fc 100%);
    border-radius: 16px;
    border: 2px solid var(--complement-color);
    box-shadow: 0 8px 32px rgba(91, 58, 140, 0.15);
    text-align: center;
}

.container .icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.container h1 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.container .subtitle {
    color: var(--support-color);
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 500;
}

.container .message {
    background-color: rgba(253, 185, 47, 0.08);
    border-left: 5px solid var(--accent-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: left;
}

.container .message strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.container .message p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 10px 0;
    font-size: 0.95em;
}

.container .actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.container .btn {
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(91, 58, 140, 0.3);
}

.container .btn-primary:hover {
    background-color: #6B4A9E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 58, 140, 0.4);
}

.container .btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(253, 185, 47, 0.3);
}

.container .btn-secondary:hover {
    background-color: #E0A020;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 185, 47, 0.4);
}

.container .timestamp {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--complement-color);
    color: #888;
    font-size: 0.9em;
}

.container .timestamp p {
    margin: 0;
}

.container .timestamp span {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Estilos para a Classe Card --- */
.card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F5FC 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(91, 58, 140, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: left 0.6s ease;
}

.card:hover {
    box-shadow: 0 12px 36px rgba(91, 58, 140, 0.25);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.card:hover::before {
    left: 100%;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3::before {
    content: '★';
    color: var(--accent-color);
    font-size: 1.2em;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
}

.card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.card strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Image Container Responsivo --- */
.image-container {
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.image-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .image-container {
        padding: 0 8px;
    }
    .image-container img {
        max-height: 360px;
    }
}
/* Estilização da Janela Flutuante */
.support-popup {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: sans-serif;
    overflow: hidden;
}

/* Cabeçalho do formulário */
.support-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Estilo interno do formulário */
form {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 10px;
    font-size: 14px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que o padding não quebre a largura */
}

textarea {
    height: 80px;
    resize: none;
}

button[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #218838;
}

.module-item-highlight {
    background: linear-gradient(135deg, var(--accent-color), #ffd87a);
    color: var(--text-dark);
}

.module-item-logout {
    width: auto;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 0;
}

.student-progress-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto minmax(240px, 1fr);
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, rgba(91, 58, 140, 0.96), rgba(255, 0, 128, 0.92));
    color: var(--text-light);
    border-radius: 18px;
    padding: 24px;
    margin: 0 0 28px;
    box-shadow: 0 18px 40px rgba(91, 58, 140, 0.2);
}

.student-progress-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.student-progress-banner p {
    line-height: 1.5;
    margin: 0;
}

.student-progress-banner__eyebrow,
.dashboard-kicker,
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.student-progress-banner__meta {
    text-align: center;
}

.student-progress-banner__meta strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.student-progress-banner__meta span {
    font-size: 0.92rem;
    opacity: 0.9;
}

.student-progress-banner__actions,
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.student-action-link,
.dashboard-button,
.auth-submit,
.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.student-action-link:hover,
.dashboard-button:hover,
.auth-submit:hover,
.auth-back-link:hover {
    transform: translateY(-1px);
}

.student-action-link {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.student-action-link.is-button {
    font-size: 0.95rem;
}

.auth-body {
    min-height: 100vh;
    display: block;
    background:
        radial-gradient(circle at top left, rgba(253, 185, 47, 0.24), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 0, 128, 0.16), transparent 30%),
        linear-gradient(135deg, #f4f4f9 0%, #fff8ef 100%);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.9fr);
    gap: 28px;
    padding: 32px;
    align-items: stretch;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(184, 159, 204, 0.55);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(91, 58, 140, 0.12);
}

.auth-panel-featured {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background:
        linear-gradient(145deg, rgba(91, 58, 140, 0.95), rgba(107, 83, 68, 0.96)),
        #5B3A8C;
    color: var(--text-light);
}

.auth-panel-featured h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 18px;
}

.auth-panel-featured p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.auth-feature-card {
    padding: 18px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-feature-card strong,
.auth-feature-card span {
    display: block;
}

.auth-feature-card strong {
    margin-bottom: 6px;
}

.auth-back-link {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.auth-panel-form {
    text-align: left;
}

.auth-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background-color: #f4edf9;
    margin-bottom: 24px;
}

.auth-tab {
    border: none;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.auth-tab.is-active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.auth-form h2 {
    color: var(--primary-color);
    margin-bottom: 22px;
}

.auth-form.is-hidden {
    display: none;
}

.auth-label {
    display: block;
    font-weight: 700;
    color: var(--support-color);
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7cce4;
    border-radius: 12px;
    padding: 0 14px;
    margin-bottom: 18px;
    background-color: #fff;
}

.auth-input:focus {
    outline: 2px solid rgba(91, 58, 140, 0.2);
    border-color: var(--primary-color);
}

.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #7b5ab0);
    color: var(--text-light);
    box-shadow: 0 14px 30px rgba(91, 58, 140, 0.18);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.auth-feedback {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.auth-feedback.is-visible {
    display: block;
}

.auth-feedback.is-success {
    background-color: rgba(40, 167, 69, 0.12);
    color: #176631;
}

.auth-feedback.is-error {
    background-color: rgba(220, 20, 60, 0.12);
    color: #8c1630;
}

.auth-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background-color: #f8f5fc;
    color: var(--support-color);
    line-height: 1.6;
}

.dashboard-shell {
    display: grid;
    gap: 24px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(253, 185, 47, 0.2), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8f5fc 100%);
    border: 1px solid rgba(184, 159, 204, 0.6);
    box-shadow: 0 14px 35px rgba(91, 58, 140, 0.08);
}

.dashboard-subtitle,
.dashboard-support-text {
    line-height: 1.7;
    margin-top: 10px;
}

.dashboard-progress-ring {
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 42%, transparent 43%),
        conic-gradient(var(--primary-color) 0deg, var(--secondary-color) 220deg, var(--accent-color) 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.92);
}

.dashboard-progress-ring strong {
    font-size: 2rem;
    color: var(--primary-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-card,
.dashboard-module-card {
    background-color: var(--text-light);
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(184, 159, 204, 0.5);
    box-shadow: 0 12px 28px rgba(91, 58, 140, 0.08);
}

.dashboard-card h2,
.dashboard-module-card h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
}

.dashboard-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-metric {
    padding: 18px;
    border-radius: 18px;
    background-color: #f8f5fc;
    text-align: center;
}

.dashboard-metric strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.dashboard-detail-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 14px;
}

.dashboard-detail-list li {
    line-height: 1.5;
}

.dashboard-button-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.dashboard-button-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.dashboard-button-danger {
    background-color: #8c1630;
    color: var(--text-light);
}

.dashboard-button-ghost {
    background-color: #f4edf9;
    color: var(--primary-color);
}

.dashboard-module-list {
    display: grid;
    gap: 18px;
}

.dashboard-module-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.dashboard-module-card__header p {
    margin: 6px 0 0;
}

.dashboard-module-card__badge {
    min-width: 64px;
    min-height: 64px;
    padding: 12px;
    border-radius: 20px;
    background-color: #f4edf9;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-page-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
}

.dashboard-page-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background-color: #fbf9fd;
}

.dashboard-page-list li.is-done {
    border-left: 4px solid #28a745;
}

.dashboard-page-list li.is-pending {
    border-left: 4px solid var(--accent-color);
}

.dashboard-page-list a {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .auth-layout,
    .dashboard-grid,
    .student-progress-banner {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-progress-banner__meta {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .auth-layout {
        padding: 18px;
    }

    .auth-panel,
    .dashboard-card,
    .dashboard-module-card,
    .dashboard-hero,
    .student-progress-banner {
        padding: 20px;
    }

    .dashboard-metric-row,
    .dashboard-page-list li {
        grid-template-columns: 1fr;
    }

    .dashboard-page-list li {
        align-items: flex-start;
    }
}
