/* ============================================================
   PROESTUDO - LAYOUT COMPARTILHADO DOS DASHBOARDS
   ============================================================ */

:root {
    --dashboard-sidebar-width: 255px;
    --dashboard-sidebar-small: 78px;
    --dashboard-header-height: 76px;
    --dashboard-radius: 16px;
    --dashboard-shadow: 0 4px 18px rgba(10, 43, 98, 0.06);
}

/* ESTRUTURA PRINCIPAL */

.dashboard-layout {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-light);
    color: var(--primary-navy);
    font-family: inherit;
}

.dashboard-main {
    min-width: 0;
    margin-left: var(--dashboard-sidebar-width);
    transition: margin-left 0.25s ease;
}

.dashboard-content {
    padding: 28px 32px;
    max-width: 1680px;
    margin: 0 auto;
}

.dashboard-layout.sidebar-recolhida .dashboard-main {
    margin-left: var(--dashboard-sidebar-small);
}

/* MENU LATERAL */

.dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--dashboard-sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease;
}

.dashboard-sidebar-top {
    min-height: var(--dashboard-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-sidebar-top .logo {
    white-space: nowrap;
    font-size: 22px;
}

.dashboard-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--primary-navy);
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dashboard-toggle:hover {
    background: var(--bg-light);
}

.dashboard-sidebar-perfil {
    padding: 20px 15px 10px;
}

.dashboard-sidebar-perfil-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #e0fbf2;
}

.dashboard-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-green);
    object-fit: cover;
}

.dashboard-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0fbf2;
    font-size: 20px;
}

.dashboard-perfil-info {
    min-width: 0;
}

.dashboard-perfil-info strong {
    display: block;
    color: var(--primary-navy);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-perfil-info small {
    color: var(--text-muted);
    font-size: 11px;
}

.dashboard-nav {
    flex: 1;
    padding: 10px 12px 20px;
}

.dashboard-nav-label {
    display: block;
    padding: 16px 12px 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 5px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--secondary-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dashboard-nav-link:hover {
    background: var(--bg-light);
    color: var(--accent-green);
}

.dashboard-nav-link.active {
    color: #008d63;
    background: #e0fbf2;
    box-shadow: inset 3px 0 0 var(--accent-green);
    font-weight: 800;
}

.dashboard-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    flex-shrink: 0;
    font-size: 19px;
}

.dashboard-nav-text {
    white-space: nowrap;
}

.dashboard-sidebar-footer {
    margin-top: auto;
    padding: 14px 12px;
    border-top: 1px solid var(--border-color);
}

.dashboard-nav-link.sair {
    color: #dc3545;
}

.dashboard-nav-link.sair:hover {
    background: #fef2f2;
}

/* MENU RECOLHIDO */

.dashboard-layout.sidebar-recolhida .dashboard-sidebar {
    width: var(--dashboard-sidebar-small);
}

.dashboard-layout.sidebar-recolhida .dashboard-sidebar-top {
    justify-content: center;
    padding: 15px;
}

.dashboard-layout.sidebar-recolhida .dashboard-sidebar-top .logo,
.dashboard-layout.sidebar-recolhida .dashboard-nav-text,
.dashboard-layout.sidebar-recolhida .dashboard-nav-label,
.dashboard-layout.sidebar-recolhida .dashboard-perfil-info {
    display: none;
}

.dashboard-layout.sidebar-recolhida .dashboard-sidebar-perfil {
    padding: 15px 10px;
}

.dashboard-layout.sidebar-recolhida .dashboard-sidebar-perfil-card {
    justify-content: center;
    padding: 8px;
}

.dashboard-layout.sidebar-recolhida .dashboard-nav-link {
    justify-content: center;
    padding: 13px 8px;
}

/* CABEÇALHO */

.dashboard-header {
    min-height: var(--dashboard-header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h1 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--primary-navy);
}

.dashboard-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.dashboard-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-navy);
}

.dashboard-header-user strong {
    display: block;
    font-size: 13px;
}

.dashboard-header-user small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

/* FAIXA DE BOAS-VINDAS */

.dashboard-welcome {
    background: linear-gradient(
        120deg,
        #0a2b62 0%,
        #183765 58%,
        #008d76 100%
    );
    color: #ffffff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    overflow: hidden;
}

.dashboard-welcome-text {
    max-width: 650px;
}

.dashboard-welcome-label {
    display: block;
    color: #a7f3d0;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.dashboard-welcome h2 {
    font-size: clamp(23px, 2.8vw, 34px);
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.dashboard-welcome p {
    font-size: 14px;
    color: #e0eaf2;
    line-height: 1.7;
    margin-bottom: 20px;
}

.dashboard-welcome-icon {
    font-size: 90px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* INDICADORES */

.dashboard-indicators {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-indicator {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--dashboard-radius);
    padding: 22px;
    box-shadow: var(--dashboard-shadow);
    color: var(--primary-navy);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.dashboard-indicator:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(10, 43, 98, 0.1);
}

.dashboard-indicator-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0fbf2;
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 13px;
}

.dashboard-indicator-value {
    display: block;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.2;
    color: var(--accent-green);
    overflow-wrap: anywhere;
}

.dashboard-indicator-label {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-indicator-detail {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

/* ORGANIZAÇÃO EM COLUNAS */

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 25px;
}

.dashboard-columns-equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--dashboard-radius);
    padding: 24px;
    box-shadow: var(--dashboard-shadow);
}

.dashboard-panel-highlight {
    background: linear-gradient(
        145deg,
        #ffffff,
        #e0fbf2
    );
}

.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-panel-heading h2,
.dashboard-section-heading h2 {
    color: var(--primary-navy);
    font-size: 18px;
    font-weight: 800;
}

.dashboard-panel-heading p,
.dashboard-section-heading p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.dashboard-section {
    margin-bottom: 26px;
    scroll-margin-top: 95px;
}

.dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dashboard-link {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

/* CARDS DE AULA */

.dashboard-aula {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-aula:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-aula-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    background: #e7f1ff;
    font-size: 24px;
}

.dashboard-aula-info {
    flex: 1;
    min-width: 0;
}

.dashboard-aula-info h3 {
    color: var(--primary-navy);
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
    margin-bottom: 5px;
}

.dashboard-aula-info p {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.dashboard-aula-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* STATUS DAS AULAS */

.dashboard-status {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-status.publicada,
.dashboard-status.concluido {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-status.rascunho {
    background: #f1f5f9;
    color: #475569;
}

.dashboard-status.revisao,
.dashboard-status.andamento,
.dashboard-status.arquivado {
    background: #fff3cd;
    color: #a16207;
}

.dashboard-status.novo {
    background: #e7f1ff;
    color: #0d6efd;
}

/* CARDS DE MATÉRIAS */

.dashboard-materias {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-materia {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--dashboard-radius);
    padding: 22px;
    box-shadow: var(--dashboard-shadow);
    transition: transform 0.2s;
}

.dashboard-materia:hover {
    transform: translateY(-3px);
}

.dashboard-materia-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #e0fbf2;
    border-radius: 13px;
    font-size: 27px;
    margin-bottom: 13px;
}

.dashboard-materia h3 {
    font-size: 15px;
    color: var(--primary-navy);
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.dashboard-materia p {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 17px;
}

.dashboard-materia .dashboard-link {
    margin-top: auto;
}

/* ACESSOS RÁPIDOS */

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.dashboard-quick-card {
    display: block;
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: var(--primary-navy);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.dashboard-quick-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
}

.dashboard-quick-card span {
    display: block;
    font-size: 25px;
    margin-bottom: 10px;
}

.dashboard-quick-card h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.dashboard-quick-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ESTADOS VAZIOS */

.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 18px;
    gap: 10px;
}

.dashboard-empty-icon {
    font-size: 42px;
    margin-bottom: 3px;
}

.dashboard-empty h3 {
    font-size: 16px;
    color: var(--primary-navy);
}

.dashboard-empty p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 350px;
}

.dashboard-empty .btn {
    margin-top: 8px;
}

/* BARRA DE PROGRESSO */

.dashboard-progress {
    width: 100%;
    height: 10px;
    margin: 12px 0;
    appearance: none;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--border-color);
    accent-color: var(--accent-green);
}

.dashboard-progress::-webkit-progress-bar {
    background: var(--border-color);
}

.dashboard-progress::-webkit-progress-value {
    background: var(--green-gradient);
    border-radius: 20px;
}

.dashboard-progress::-moz-progress-bar {
    background: var(--accent-green);
}

/* ACESSIBILIDADE */

.dashboard-layout a:focus-visible,
.dashboard-layout button:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .dashboard-layout *,
    .dashboard-layout *::before,
    .dashboard-layout *::after {
        transition: none !important;
    }

}

/* TABLETS E COMPUTADORES MENORES */

@media (max-width: 1200px) {

    .dashboard-content {
        padding: 24px;
    }

    .dashboard-indicators {
        gap: 12px;
    }

    .dashboard-indicator {
        padding: 17px;
    }

    .dashboard-indicator-value {
        font-size: 28px;
    }

    .dashboard-columns {
        gap: 16px;
    }

    .dashboard-panel {
        padding: 20px;
    }

}

@media (max-width: 1024px) {

    .dashboard-indicators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-materias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-welcome-icon {
        font-size: 65px;
    }

}

@media (max-width: 768px) {

    .dashboard-content {
        padding: 16px;
    }

    .dashboard-header {
        padding: 12px 16px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }

    .dashboard-header-user-info {
        display: none;
    }

    .dashboard-welcome {
        padding: 22px;
    }

    .dashboard-welcome-icon {
        display: none;
    }

    .dashboard-sidebar {
        box-shadow: 5px 0 25px rgba(10, 43, 98, 0.08);
    }

    .dashboard-main {
        margin-left: var(--dashboard-sidebar-small);
    }

}

@media (max-width: 480px) {

    .dashboard-materias,
    .dashboard-quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-indicators {
        gap: 8px;
    }

    .dashboard-indicator {
        padding: 12px;
    }

    .dashboard-indicator-value {
        font-size: 24px;
    }

    .dashboard-panel {
        padding: 15px;
    }

}

/* ============================================================
   DASHBOARD DEFINITIVO DO ALUNO
   ============================================================ */

.dashboard-config-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    background: #e0fbf2;
    border: 1px solid #bcefdc;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.dashboard-config-icon {
    font-size: 32px;
}

.dashboard-config-text {
    flex: 1;
    min-width: 160px;
}

.dashboard-config-text h3 {
    color: var(--primary-navy);
    font-size: 16px;
    margin-bottom: 5px;
}

.dashboard-config-text p {
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-objective {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.dashboard-objective-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #e0fbf2;
    font-size: 38px;
}

.dashboard-objective-label {
    color: #008d63;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
}

.dashboard-objective h3 {
    color: var(--primary-navy);
    font-size: 22px;
}

.dashboard-objective p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.dashboard-objective .btn {
    margin-top: 8px;
}

/* DESEMPENHO ACADÊMICO */

.dashboard-performance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-performance-item {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.dashboard-performance-item span {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.dashboard-performance-item strong {
    display: block;
    color: var(--accent-green);
    font-size: 26px;
    font-weight: 900;
}

.dashboard-performance-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.dashboard-performance-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.dashboard-performance-summary h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.dashboard-performance-summary strong {
    display: block;
    font-size: 25px;
    color: var(--accent-green);
}

.dashboard-performance-summary p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
}

/* FORMULÁRIOS DE PERSONALIZAÇÃO */

.dashboard-form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--primary-navy);
    outline: none;
}

.dashboard-form-select:focus {
    border-color: var(--accent-green);
}

.dashboard-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-option {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.dashboard-option input {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    cursor: pointer;
}

.dashboard-option-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding: 22px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.dashboard-option:hover .dashboard-option-content {
    border-color: var(--accent-green);
}

.dashboard-option input:checked + .dashboard-option-content {
    border-color: var(--accent-green);
    background: #e0fbf2;
    box-shadow: 0 4px 12px rgba(0,168,117,0.12);
}

.dashboard-option input:focus-visible + .dashboard-option-content {
    outline: 3px solid var(--accent-green);
    outline-offset: 3px;
}

.dashboard-option-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.dashboard-option-content strong {
    color: var(--primary-navy);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dashboard-option-content small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.dashboard-form-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.dashboard-form-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {

    .dashboard-performance-grid,
    .dashboard-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .dashboard-option-grid,
    .dashboard-performance-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-config-alert {
        align-items: flex-start;
    }

    .dashboard-performance-item {
        padding: 14px;
    }

    .dashboard-form-actions .btn {
        width: 100%;
    }

}

.dashboard-sidebar-top .logo img {
    max-width: 125px;
    max-height: 48px;
    object-fit: contain;
}

/* ============================================================
   DASHBOARD DO PROFESSOR - EDITOR E GERENCIAMENTO
   ============================================================ */

.dashboard-editor-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.dashboard-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-editor-grid label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy, #0a2b62);
}

.dashboard-editor-grid p,
.dashboard-editor-grid small {
    font-size: 13px;
    color: var(--text-muted, #59708e);
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dashboard-editor-full {
    grid-column: 1 / -1;
}

.dashboard-editor-grid textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.dashboard-editor-grid input[type="file"] {
    background: #f8fafc;
    border: 2px dashed #ccd9e7;
    padding: 22px;
}

.dashboard-editor-grid input[type="file"]::file-selector-button {
    border: 0;
    background: #0a2b62;
    color: white;
    border-radius: 8px;
    padding: 9px 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-right: 12px;
}

.dashboard-filter {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-editor-fieldset:disabled input,
.dashboard-editor-fieldset:disabled select,
.dashboard-editor-fieldset:disabled textarea {
    background: #f1f5f9;
    cursor: not-allowed;
}

.dashboard-editor-fieldset:disabled label {
    opacity: 0.75;
}

@media (max-width: 850px) {

    .dashboard-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* ============================================================
   PROESTUDO - PERSONALIZAÇÃO DO PRIMEIRO ACESSO
   ============================================================ */

.dashboard-onboarding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #dbe6ef;
    border-radius: 20px;
    padding: 40px 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(10, 43, 98, 0.06);
}

.dashboard-onboarding-label {
    color: #008d76;
    background: #e0fbf2;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dashboard-onboarding-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 25px;
    background: #e0fbf2;
    font-size: 48px;
}

.dashboard-onboarding h2 {
    color: #0a2b62;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 900;
}

.dashboard-onboarding p {
    max-width: 600px;
    color: #59708e;
    font-size: 14px;
    line-height: 1.8;
}

.dashboard-onboarding small {
    color: #59708e;
    font-size: 12px;
}

.dashboard-onboarding-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
}

.dashboard-onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.dashboard-onboarding-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf8fc;
    color: #59708e;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid #dbe6ef;
}

.dashboard-onboarding-step strong {
    font-size: 12px;
    color: #59708e;
}

.dashboard-onboarding-step.completo span {
    background: #00a875;
    border-color: #00a875;
    color: #ffffff;
}

.dashboard-onboarding-step.completo strong {
    color: #008d76;
}

.dashboard-onboarding-step.atual span {
    background: #0a2b62;
    border-color: #0a2b62;
    color: #ffffff;
}

.dashboard-onboarding-step.atual strong {
    color: #0a2b62;
}

.dashboard-onboarding-line {
    flex: 0.7;
    height: 3px;
    background: #dbe6ef;
    margin-top: 21px;
}

.dashboard-onboarding-line.completo {
    background: #00a875;
}

.dashboard-skip-form {
    text-align: center;
    margin: 15px 0 35px;
}

.dashboard-skip-button {
    border: 0;
    background: transparent;
    color: #59708e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
}

.dashboard-skip-button:hover {
    color: #008d76;
    text-decoration: underline;
}

@media (max-width: 600px) {

    .dashboard-onboarding {
        padding: 25px 15px;
    }

    .dashboard-onboarding-step strong {
        font-size: 10px;
    }

    .dashboard-onboarding-step span {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .dashboard-onboarding-line {
        margin-top: 17px;
        flex: 0.3;
    }

}

/* ============================================================
   PROESTUDO - INTEGRAÇÃO GLOBAL DAS PÁGINAS
   ============================================================ */

/* Ocultar a navegação antiga apenas para alunos e professores */

body.dashboard-global .topbar {
    display: none !important;
}

body.dashboard-global > footer {
    display: none;
}

body.dashboard-global {
    background: #edf8fc;
}

/* Aproveitamento da largura disponível */

.dashboard-page-content {
    width: 100%;
    min-width: 0;
}

.dashboard-page-content > .materia-container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0 auto;
}

.dashboard-page-content > .container {
    width: 100%;
    max-width: none;
}

/* Títulos das páginas existentes */

.dashboard-page-content .materia-header {
    margin-bottom: 28px;
    text-align: left;
}

.dashboard-page-content .materia-header h1 {
    font-size: clamp(24px, 3vw, 34px);
    color: #0a2b62;
    font-weight: 800;
    line-height: 1.3;
}

.dashboard-page-content .materia-header p {
    color: #59708e;
    font-size: 14px;
    line-height: 1.7;
}

/* Cards */

.dashboard-page-content .card-conteudo,
.dashboard-page-content .leaderboard-card {
    border: 1px solid #dbe6ef;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(10, 43, 98, 0.05);
}

/* Grades das páginas existentes */

.dashboard-page-content .materias-grid {
    grid-template-columns:
        repeat(auto-fill, minmax(min(280px, 100%), 1fr))
        !important;
    gap: 20px;
}

.dashboard-page-content .card-conteudo {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Tabelas */

.dashboard-page-content .leaderboard-card {
    max-width: 100%;
    overflow-x: auto;
}

.dashboard-page-content .leaderboard-table {
    width: 100%;
}

/* Botões de voltar */

.dashboard-page-content .btn-voltar {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 20px;
}

/* Imagens do perfil */

.dashboard-sidebar img.dashboard-avatar,
.dashboard-header img.dashboard-avatar {
    display: block;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Logo original */

.dashboard-sidebar-top .logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 125px;
    object-fit: contain;
}

/* Ajustes do perfil */

.dashboard-page-content .perfil-grid {
    grid-template-columns:
        minmax(220px, 300px) minmax(0, 1fr);
}

.dashboard-page-content .perfil-grid > * {
    min-width: 0;
}

/* Manter os modais acima do menu lateral */

body.dashboard-global .modal {
    z-index: 10000;
}

/* Responsividade */

@media (max-width: 1200px) {

    .dashboard-page-content .perfil-grid {
        grid-template-columns:
            minmax(200px, 250px) minmax(0, 1fr);
    }

}

@media (max-width: 1024px) {

    .dashboard-page-content .perfil-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 768px) {

    .dashboard-page-content .materia-header h1 {
        font-size: 23px;
    }

    .dashboard-page-content .materias-grid {
        grid-template-columns: minmax(0, 1fr)
            !important;
    }

    .dashboard-page-content .leaderboard-table {
        min-width: 500px;
    }

    .dashboard-page-content .materia-header {
        margin-bottom: 20px;
    }

}

@media (max-width: 600px) {

    .dashboard-layout {
        --dashboard-sidebar-small: 58px;
    }

    .dashboard-sidebar-perfil {
        display: none;
    }

    .dashboard-layout.sidebar-recolhida .dashboard-nav {
        padding: 10px 5px;
    }

    .dashboard-layout.sidebar-recolhida .dashboard-nav-link {
        padding: 11px 5px;
    }

    .dashboard-layout.sidebar-recolhida .dashboard-sidebar-footer {
        padding: 10px 5px;
    }

    .dashboard-header {
        gap: 8px;
    }

    .dashboard-content {
        padding: 12px;
    }

}

/* CABEÇALHO - PONTUAÇÃO, PATENTE E PERFIL */

.dashboard-header-title {
    min-width: 0;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.dashboard-header-badge.patente {
    background: #e7f1ff;
    color: #0a2b62;
}

.dashboard-header-badge.sequencia {
    background: #fff3cd;
    color: #856404;
}

.dashboard-header-badge.pontos {
    background: #e0fbf2;
    color: #008d76;
}

.dashboard-header-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #edf8fc;
    text-decoration: none;
    font-size: 17px;
    flex-shrink: 0;
}

.dashboard-header-message:hover {
    background: #e0fbf2;
}

.dashboard-header-user-info {
    max-width: 180px;
    min-width: 0;
}

.dashboard-header-user-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {

    .dashboard-header-user-info {
        display: none;
    }

}

@media (max-width: 850px) {

    .dashboard-header-badge.patente {
        display: none;
    }

}

@media (max-width: 600px) {

    .dashboard-header-badges {
        display: none;
    }

    .dashboard-header-actions {
        gap: 8px;
    }

}

/* ============================================================
   PROESTUDO - ACABAMENTO VISUAL FINAL
   ============================================================ */

/* BARRA DE ROLAGEM DO MENU LATERAL */

.dashboard-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.dashboard-sidebar:hover {
    scrollbar-color: #cbd5e1 transparent;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 5px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.dashboard-sidebar:hover::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* LOGO PRINCIPAL */

.dashboard-sidebar-top {
    min-height: 85px;
    padding: 12px 18px;
}

.dashboard-sidebar-top .logo img {
    height: 65px;
    max-height: 65px;
    max-width: 155px;
    width: auto;
    object-fit: contain;
}

/* APROVEITAMENTO DA TELA */

.dashboard-content {
    width: 100%;
    max-width: 1800px;
    padding: 24px 28px;
}

.dashboard-page-content > .materia-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* CARDS DE CONTEÚDO */

.dashboard-page-content #gridConteudos {
    align-items: stretch;
    gap: 20px;
}

.dashboard-page-content #gridConteudos .card-conteudo {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    min-width: 0;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.dashboard-page-content #gridConteudos .card-conteudo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 43, 98, 0.10);
}

.dashboard-page-content #gridConteudos .card-conteudo h3 {
    line-height: 1.5;
    font-size: 17px;
}

.dashboard-page-content #gridConteudos .card-conteudo > div:last-child {
    margin-top: auto;
}

/* FOTOS DO DASHBOARD */

.dashboard-sidebar .dashboard-avatar,
.dashboard-header .dashboard-avatar {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* INDICADORES */

.dashboard-indicator {
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.dashboard-indicator:hover {
    box-shadow: 0 8px 24px rgba(10, 43, 98, 0.08);
}

/* BOTÕES */

.dashboard-layout .btn,
.dashboard-layout .btn-interativo {
    transition: background 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.dashboard-layout button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* MENU LATERAL RECOLHIDO */

.dashboard-layout.sidebar-recolhida .dashboard-sidebar-top {
    padding: 15px 8px;
}

/* RESPONSIVIDADE */

@media (max-width: 1200px) {

    .dashboard-content {
        padding: 22px;
    }

}

@media (max-width: 768px) {

    .dashboard-content {
        padding: 16px;
    }

    .dashboard-page-content #gridConteudos {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px;
    }

}

@media (max-width: 600px) {

    .dashboard-content {
        padding: 12px;
    }

    .dashboard-page-content #gridConteudos .card-conteudo {
        padding: 16px;
    }

    .dashboard-header {
        flex-wrap: wrap;
    }

    .dashboard-welcome {
        padding: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .dashboard-layout *,
    .dashboard-layout *::before,
    .dashboard-layout *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }

}

/* MENU MOBILE - FUNDO DE SOBREPOSIÇÃO */

.dashboard-sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {

    .dashboard-layout:not(.sidebar-recolhida)
    .dashboard-sidebar-overlay {

        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(10, 43, 98, 0.45);

    }

    .dashboard-sidebar {
        z-index: 1100;
    }

    .dashboard-layout .dashboard-main {
        margin-left: var(--dashboard-sidebar-small);
    }

}

/* ============================================================
   PROESTUDO - CADASTRO PERSONALIZADO
   ============================================================ */

.cadastro-page {
    min-height: 100vh;
    background: #edf8fc;
    color: #0a2b62;
    font-family: 'Inter', Arial, sans-serif;
}

/* CABEÇALHO */

.cadastro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    padding: 12px 5%;
    background: #ffffff;
    border-bottom: 1px solid #dbe6ef;
}

.cadastro-logo {
    display: inline-flex;
    align-items: center;
}

.cadastro-logo img {
    display: block;
    width: auto;
    height: 65px;
    object-fit: contain;
}

.cadastro-header-text {
    color: #59708e;
    font-size: 13px;
    font-weight: 600;
}

/* ESTRUTURA PRINCIPAL */

.cadastro-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    gap: 30px;
    width: 100%;
    max-width: 1450px;
    padding: 35px;
    margin: 0 auto;
    align-items: stretch;
}

/* PAINEL INSTITUCIONAL */

.cadastro-apresentacao {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 45px;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        #0a2b62 0%,
        #183765 65%,
        #008d76 100%
    );
    color: #ffffff;
}

.cadastro-apresentacao-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.cadastro-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.cadastro-apresentacao h1 {
    font-size: clamp(30px, 3.3vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.cadastro-apresentacao h1 span {
    color: #6ee7b7;
}

.cadastro-apresentacao p {
    color: #dce9fa;
    font-size: 15px;
    line-height: 1.8;
}

/* BENEFÍCIOS */

.cadastro-beneficios {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.cadastro-beneficio {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cadastro-beneficio > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #6ee7b7;
    font-size: 20px;
    font-weight: 800;
}

.cadastro-beneficio strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 3px;
}

.cadastro-beneficio small {
    display: block;
    font-size: 12px;
    color: #dce9fa;
}

.cadastro-apresentacao-footer {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    font-size: 12px;
    color: #dce9fa;
}

/* ÁREA DO FORMULÁRIO */

.cadastro-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.cadastro-card {
    width: 100%;
    min-width: 0;
    padding: 35px;
    border: 1px solid #dbe6ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(10, 43, 98, 0.07);
}

/* INDICADOR DE ETAPAS */

.cadastro-etapas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.cadastro-etapa {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
}

.cadastro-etapa > span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf8fc;
    border: 1px solid #dbe6ef;
    color: #59708e;
    font-weight: 800;
    flex-shrink: 0;
}

.cadastro-etapa strong {
    font-size: 11px;
    font-weight: 700;
}

.cadastro-etapa.ativa {
    color: #0a2b62;
}

.cadastro-etapa.ativa > span {
    background: #0a2b62;
    color: #ffffff;
    border-color: #0a2b62;
}

.cadastro-etapa.completa {
    color: #008d76;
}

.cadastro-etapa.completa > span {
    background: #00a875;
    border-color: #00a875;
    color: #ffffff;
}

.cadastro-etapa-linha {
    height: 2px;
    flex: 1;
    background: #dbe6ef;
}

/* PROGRESSO */

.cadastro-progresso-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #59708e;
    margin-bottom: 8px;
}

.cadastro-progresso-info strong {
    color: #00a875;
}

.cadastro-progresso {
    width: 100%;
    height: 8px;
    border: 0;
    appearance: none;
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
    accent-color: #00a875;
    margin-bottom: 25px;
}

.cadastro-progresso::-webkit-progress-bar {
    background: #e2e8f0;
}

.cadastro-progresso::-webkit-progress-value {
    background: linear-gradient(
        90deg,
        #00a875,
        #08b96e
    );
    border-radius: 20px;
}

.cadastro-progresso::-moz-progress-bar {
    background: #00a875;
}

/* TÍTULOS */

.cadastro-titulo {
    margin-bottom: 25px;
}

.cadastro-titulo h2 {
    font-size: 28px;
    color: #0a2b62;
    font-weight: 900;
    margin-bottom: 6px;
}

.cadastro-titulo p {
    font-size: 13px;
    color: #59708e;
    line-height: 1.7;
}

/* CAMPOS */

.cadastro-campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 17px;
}

.cadastro-campo label,
.cadastro-perfis legend {
    color: #0a2b62;
    font-size: 13px;
    font-weight: 700;
}

.cadastro-campo input {
    display: block;
    width: 100%;
    height: 47px;
    border: 1px solid #ccd9e7;
    border-radius: 10px;
    padding: 12px 14px;
    color: #0a2b62;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s,
                box-shadow 0.2s;
}

.cadastro-campo input:focus {
    border-color: #00a875;
    box-shadow: 0 0 0 3px rgba(0, 168, 117, 0.10);
}

.cadastro-campo input::placeholder {
    color: #94a3b8;
}

.cadastro-campo small {
    font-size: 11px;
    color: #59708e;
}

/* MOSTRAR SENHA */

.cadastro-senha-box {
    position: relative;
}

.cadastro-senha-box input {
    padding-right: 85px;
}

.cadastro-ver-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px;
    border: 0;
    background: transparent;
    color: #008d76;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* SELEÇÃO DO PERFIL */

.cadastro-perfis {
    padding: 0;
    margin: 25px 0;
    border: 0;
    min-width: 0;
}

.cadastro-perfis legend {
    margin-bottom: 14px;
}

.cadastro-perfis-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cadastro-perfil-opcao {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.cadastro-perfil-opcao input {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    accent-color: #00a875;
    cursor: pointer;
}

.cadastro-perfil-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #dbe6ef;
    background: #ffffff;
    transition: all 0.2s ease;
}

.cadastro-perfil-icone {
    font-size: 32px;
}

.cadastro-perfil-card strong {
    color: #0a2b62;
    font-size: 15px;
}

.cadastro-perfil-card small {
    color: #59708e;
    font-size: 12px;
    line-height: 1.6;
}

.cadastro-perfil-opcao:hover
.cadastro-perfil-card {
    border-color: #00a875;
}

.cadastro-perfil-opcao input:checked
+ .cadastro-perfil-card {
    background: #e0fbf2;
    border-color: #00a875;
    box-shadow: 0 4px 15px rgba(0, 168, 117, 0.10);
}

.cadastro-perfil-opcao input:focus-visible
+ .cadastro-perfil-card {
    outline: 3px solid #00a875;
    outline-offset: 3px;
}

/* BOTÕES */

.cadastro-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.cadastro-acoes .btn {
    min-height: 45px;
    text-align: center;
}

.cadastro-acoes .btn-primary {
    flex: 1;
}

.cadastro-acoes button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cadastro-login-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #59708e;
    font-size: 12px;
}

.cadastro-login-link a {
    color: #008d76;
    text-decoration: none;
    font-weight: 800;
    margin-left: 4px;
}

/* VALIDAÇÃO */

.cadastro-erro {
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
}

.cadastro-campo .cadastro-feedback-erro {
    color: #dc2626;
    font-weight: 600;
}

.cadastro-campo .cadastro-feedback-sucesso {
    color: #008d76;
    font-weight: 600;
}

/* CONFIRMAÇÃO DA PRIMEIRA ETAPA */

.cadastro-confirmacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    text-align: center;
}

.cadastro-confirmacao-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #e0fbf2;
    color: #00a875;
    font-size: 45px;
    font-weight: 800;
}

.cadastro-confirmacao h2 {
    color: #0a2b62;
    font-size: 27px;
    font-weight: 900;
}

.cadastro-confirmacao p {
    font-size: 14px;
    color: #59708e;
    line-height: 1.7;
}

.cadastro-confirmacao > small {
    font-size: 12px;
    color: #59708e;
}

.cadastro-resumo-perfil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #edf8fc;
    border-radius: 12px;
}

.cadastro-resumo-perfil span {
    font-size: 25px;
}

.cadastro-resumo-perfil strong {
    color: #0a2b62;
    font-size: 15px;
}

.cadastro-aviso {
    width: 100%;
    padding: 20px;
    background: #e0fbf2;
    border: 1px solid #bcefdc;
    border-radius: 12px;
}

.cadastro-aviso strong {
    color: #008d76;
    font-size: 14px;
}

.cadastro-aviso p {
    margin-top: 8px;
    font-size: 13px;
}

/* ACESSIBILIDADE */

.cadastro-page button:focus-visible,
.cadastro-page a:focus-visible {
    outline: 3px solid #00a875;
    outline-offset: 3px;
}

/* RESPONSIVIDADE */

@media (max-width: 1100px) {

    .cadastro-layout {
        gap: 20px;
        padding: 25px;
    }

    .cadastro-apresentacao {
        padding: 28px;
    }

    .cadastro-card {
        padding: 25px;
    }

}

@media (max-width: 900px) {

    .cadastro-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 750px;
    }

    .cadastro-apresentacao {
        padding: 30px;
    }

    .cadastro-apresentacao h1 {
        font-size: 30px;
    }

    .cadastro-beneficios,
    .cadastro-apresentacao-footer {
        display: none;
    }

}

@media (max-width: 480px) {

    .cadastro-layout {
        padding: 12px;
        gap: 15px;
    }

    .cadastro-card {
        padding: 18px;
        border-radius: 16px;
    }

    .cadastro-apresentacao {
        padding: 23px;
        border-radius: 16px;
    }

    .cadastro-header-text {
        display: none;
    }

    .cadastro-perfis-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cadastro-etapas {
        gap: 8px;
    }

    .cadastro-etapa {
        gap: 6px;
    }

    .cadastro-etapa strong {
        font-size: 10px;
    }

    .cadastro-acoes {
        flex-wrap: wrap;
    }

    .cadastro-acoes .btn {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {

    .cadastro-page *,
    .cadastro-page *::before,
    .cadastro-page *::after {
        transition: none !important;
    }

}

/* ============================================================
   PROESTUDO - QUESTIONÁRIO PERSONALIZADO
   ============================================================ */

.cadastro-questionario {
    min-width: 0;
}

.cadastro-pergunta-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cadastro-pergunta-perfil {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 20px;
    background: #e0fbf2;
    color: #008d76;
    font-size: 11px;
    font-weight: 700;
}

.cadastro-pergunta-numero {
    color: #59708e;
    font-size: 12px;
    font-weight: 600;
}

/* INDICADORES DAS PERGUNTAS */

.cadastro-pergunta-indicadores {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.cadastro-pergunta-indicador {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf8fc;
    border: 1px solid #dbe6ef;
    color: #59708e;
    font-size: 12px;
    font-weight: 700;
}

.cadastro-pergunta-indicador.atual {
    background: #0a2b62;
    color: #ffffff;
    border-color: #0a2b62;
    box-shadow: 0 3px 10px rgba(10,43,98,0.15);
}

.cadastro-pergunta-indicador.concluida {
    background: #00a875;
    color: #ffffff;
    border-color: #00a875;
}

/* ORIENTAÇÃO */

.cadastro-instrucao {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #59708e;
}

.cadastro-opcional {
    padding: 4px 9px;
    background: #edf8fc;
    border-radius: 12px;
    font-size: 10px;
    color: #59708e;
}

/* ALTERNATIVAS */

.cadastro-questionario-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.cadastro-opcoes-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.cadastro-opcao {
    display: flex;
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.cadastro-opcao > input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cadastro-opcao-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 88px;
    padding: 16px;
    padding-right: 40px;
    background: #ffffff;
    border: 2px solid #dbe6ef;
    border-radius: 13px;
    transition: border-color 0.2s,
                background 0.2s,
                box-shadow 0.2s;
}

.cadastro-opcao-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #edf8fc;
    border-radius: 11px;
    flex-shrink: 0;
    font-size: 23px;
}

.cadastro-opcao-card strong {
    font-size: 12px;
    line-height: 1.5;
    color: #0a2b62;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cadastro-opcao-check {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 11px;
    top: 12px;
    width: 19px;
    height: 19px;
    border: 2px solid #ccd9e7;
    border-radius: 50%;
    color: transparent;
    font-size: 11px;
    font-weight: 800;
}

.cadastro-opcao:hover .cadastro-opcao-card {
    border-color: #00a875;
}

.cadastro-opcao > input:checked
+ .cadastro-opcao-card {
    border-color: #00a875;
    background: #e0fbf2;
    box-shadow: 0 3px 10px rgba(0,168,117,0.08);
}

.cadastro-opcao > input:checked
+ .cadastro-opcao-card
.cadastro-opcao-check {
    color: #ffffff;
    background: #00a875;
    border-color: #00a875;
}

.cadastro-opcao > input:checked
+ .cadastro-opcao-card
.cadastro-opcao-icone {
    background: #c7f3e5;
}

.cadastro-opcao > input:focus-visible
+ .cadastro-opcao-card {
    outline: 3px solid #00a875;
    outline-offset: 3px;
}

/* CONTADOR */

.cadastro-contador {
    margin-top: 15px;
    color: #008d76;
    font-size: 12px;
    font-weight: 700;
}

/* RESPOSTAS EM TEXTO */

.cadastro-resposta-texto {
    width: 100%;
    padding: 16px;
    border: 2px solid #dbe6ef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: #0a2b62;
    resize: vertical;
    outline: none;
}

.cadastro-resposta-texto:focus {
    border-color: #00a875;
}

/* SALVAMENTO */

.cadastro-salvamento-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 15px;
    background: #edf8fc;
    border-radius: 10px;
    color: #59708e;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.cadastro-continuar-depois {
    text-align: center;
    margin-top: 16px;
}

.cadastro-continuar-depois button {
    background: transparent;
    border: 0;
    padding: 10px;
    color: #59708e;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cadastro-continuar-depois button:hover {
    color: #008d76;
    text-decoration: underline;
}

.cadastro-questionario .cadastro-erro {
    margin-top: 16px;
}

.cadastro-questionario .cadastro-erro[hidden] {
    display: none;
}

/* RESPONSIVIDADE */

@media (max-width: 1100px) {

    .cadastro-opcao-card {
        padding: 14px;
        padding-right: 35px;
        gap: 10px;
    }

    .cadastro-opcao-icone {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

}

@media (max-width: 600px) {

    .cadastro-opcoes-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cadastro-opcao-card {
        min-height: 68px;
    }

    .cadastro-pergunta-indicadores {
        gap: 7px;
    }

    .cadastro-pergunta-indicador {
        width: 30px;
        height: 30px;
    }

    .cadastro-questionario .cadastro-titulo h2 {
        font-size: 23px;
    }

}

/* ============================================================
   PERSONALIZAÇÃO E ACESSIBILIDADE
   ============================================================ */

body.acessibilidade-letras-maiores
.dashboard-page-content {
    font-size: 18px;
    line-height: 1.8;
}

body.acessibilidade-letras-maiores
.dashboard-page-content p,

body.acessibilidade-letras-maiores
.dashboard-page-content label,

body.acessibilidade-letras-maiores
.dashboard-page-content li,

body.acessibilidade-letras-maiores
.dashboard-page-content input,

body.acessibilidade-letras-maiores
.dashboard-page-content select,

body.acessibilidade-letras-maiores
.dashboard-page-content textarea,

body.acessibilidade-letras-maiores
.dashboard-page-content button {
    font-size: 17px;
    line-height: 1.7;
}

body.acessibilidade-letras-maiores
.dashboard-page-content h2 {
    font-size: 28px;
}

body.acessibilidade-letras-maiores
.dashboard-page-content h3 {
    font-size: 22px;
}

.dashboard-enem-destaque {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 24px;
    border-radius: 14px;
    background: #e0fbf2;
    border: 1px solid #bcefdc;
}

.dashboard-enem-destaque h3 {
    color: #008d76;
}

.dashboard-enem-destaque p {
    color: #59708e;
}

#recomendacoes-personalizadas,
#meu-jeito-de-aprender,
#minhas-materias {
    scroll-margin-top: 100px;
}

.estudo-texto {
    font-size: 16px;
    line-height: 1.9;
    color: #183765;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 900px;
}

body.acessibilidade-letras-maiores
.estudo-texto {
    font-size: 20px;
    line-height: 2;
}

.estudo-etapa {
    padding: 22px;
    margin-bottom: 18px;
    background: #edf8fc;
    border-radius: 12px;
    border-left: 4px solid #00a875;
}

.estudo-formatos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.estudo-controles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.estudo-modo-ativo {
    background: #e0fbf2 !important;
    color: #008d76 !important;
    border: 2px solid #00a875 !important;
}

.professor-apresentacao {
    padding: 16px;
    margin: 15px 0;
    background: #edf8fc;
    border-radius: 12px;
    text-align: left;
}

.professor-apresentacao strong {
    display: block;
    color: #0a2b62;
    font-size: 13px;
    margin-bottom: 8px;
}

.professor-apresentacao p {
    color: #59708e;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ============================================================
   PROESTUDO - RECOMENDAÇÕES PERSONALIZADAS
   ============================================================ */

.recomendacoes-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 20px;
    align-items: stretch;
}

.recomendacao-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recomendacao-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 43, 98, 0.10);
}

.recomendacao-card h3 {
    color: var(--primary-navy);
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.recomendacao-topo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recomendacao-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #e0fbf2;
    font-size: 21px;
    flex-shrink: 0;
}

.recomendacao-materia {
    color: #008d76;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.recomendacao-dados {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.recomendacao-dados dt {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.recomendacao-dados dd {
    color: var(--primary-navy);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.recomendacao-descricao {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.recomendacao-motivos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.recomendacao-motivos li {
    padding: 4px 10px;
    border-radius: 20px;
    background: #e7f1ff;
    color: #0a2b62;
    font-size: 11px;
    font-weight: 700;
}

.recomendacao-card form,
.recomendacao-card > .btn {
    margin-top: auto;
}
