/* VivEco — cores inspiradas em vivecovivencias.com.br */
:root {
    --viveco-green: #10441e;
    --viveco-green-mid: #196a2f;
    --viveco-green-light: #23a455;
    --viveco-purple: #622662;
    --viveco-purple-hover: #ce09ce;
    --viveco-teal: #68b5cc;
    --viveco-teal-soft: #88abce;
    --viveco-blue: #013080;
    --viveco-gray: #54595f;
    --viveco-bg: #f4f7f5;
    --viveco-surface: #ffffff;

    --bs-primary: #10441e;
    --bs-primary-rgb: 16, 68, 30;
    --bs-success: #23a455;
    --bs-success-rgb: 35, 164, 85;
    --bs-link-color: #622662;
    --bs-link-hover-color: #ce09ce;
    --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: #333333;
}

body.etec-body {
    background: linear-gradient(165deg, rgba(104, 181, 204, 0.12) 0%, var(--viveco-bg) 38%, #eef2ea 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Barra de marca */
.etec-brand-bar {
    background: var(--viveco-green);
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 68, 30, 0.25);
}

.etec-brand-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    max-width: 1140px;
    margin: 0 auto;
}

.etec-brand-link {
    flex-shrink: 0;
    line-height: 0;
}

.etec-brand-logo {
    height: 72px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.etec-brand-bar--compact .etec-brand-logo {
    height: 56px;
}

.etec-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.etec-brand-product {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.etec-brand-product-link {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
}

.etec-brand-product-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.etec-brand-bar-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.etec-brand-bar-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.etec-brand-inline-link {
    color: var(--viveco-purple);
    font-weight: 700;
    text-decoration: none;
}

.etec-brand-inline-link:hover {
    color: var(--viveco-purple-hover);
    text-decoration: underline;
}

.etec-brand-slogan {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .etec-brand-slogan {
        display: none;
    }
    .etec-brand-logo {
        height: 52px;
        max-width: 200px;
    }
}

/* Navbar aluno / admin — full width mesmo dentro de .container */
.etec-nav-top-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 1.5rem;
}

.etec-nav-top,
.etec-nav-admin {
    background: var(--viveco-green) !important;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(16, 68, 30, 0.18);
    padding: 0.65rem 0;
    margin-bottom: 0 !important;
}

.etec-nav-top-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.etec-nav-brand {
    margin-right: 0;
    flex-shrink: 0;
}

.etec-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
}

.etec-nav-top .nav-link,
.etec-nav-admin .nav-link {
    font-size: 0.95rem;
    white-space: nowrap;
}

.etec-nav-admin .nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.etec-nav-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    mix-blend-mode: lighten;
    display: block;
}

.etec-nav-admin-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.etec-nav-user-badge {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    line-height: 1.2;
}

.etec-nav-btn-menu {
    font-weight: 700;
    white-space: nowrap;
}

.etec-nav-pagina-ativa {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.etec-nav-sair {
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.etec-nav-sair:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .etec-nav-logo {
        height: 44px;
        max-width: 160px;
    }

    .etec-nav-user-badge {
        max-width: 110px;
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }
}

/* Botões */
.btn-primary {
    background-color: var(--viveco-green);
    border-color: var(--viveco-green);
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--viveco-green-mid);
    border-color: var(--viveco-green-mid);
}

.btn-outline-primary {
    color: var(--viveco-green);
    border-color: var(--viveco-green);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--viveco-green);
    border-color: var(--viveco-green);
}

.btn-success {
    background-color: var(--viveco-green-light);
    border-color: var(--viveco-green-light);
}

.text-primary {
    color: var(--viveco-green) !important;
}

.border-primary {
    border-color: var(--viveco-green) !important;
}

.bg-primary {
    background-color: var(--viveco-green) !important;
}

.badge.text-bg-primary {
    background-color: var(--viveco-purple) !important;
}

.card.border-primary {
    border-width: 2px;
}

/* Hero landing */
.etec-hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.etec-hero-logo {
    max-width: 440px;
    width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
    mix-blend-mode: lighten;
}

.etec-hero-title {
    color: var(--viveco-green);
    font-weight: 800;
}

.etec-hero-lead {
    color: var(--viveco-gray);
    font-weight: 600;
}

.etec-card-destaque {
    border-top: 4px solid var(--viveco-teal);
}

/* Conteúdo */
.etec-explicacao {
    white-space: pre-wrap;
    line-height: 1.55;
}

.etec-progress-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(244, 247, 245, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid rgba(16, 68, 30, 0.12);
}

.etec-vitoria {
    border: 2px solid var(--viveco-green-light);
    background: linear-gradient(135deg, #d8f3e0 0%, #e8f5ec 100%);
}

.etec-preparacao-card {
    max-width: 520px;
    margin: 2rem auto;
}

.etec-preparacao-card .progress {
    height: 1.35rem;
}

.etec-menu-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-top: 3px solid transparent;
}

.etec-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(16, 68, 30, 0.12) !important;
    border-top-color: var(--viveco-teal);
}

.etec-menu-card.border-primary {
    border-top-color: var(--viveco-purple);
}

/* Tutor */
.etec-tutor-log {
    max-height: 280px;
    overflow-y: auto;
    background: #f0f6f2;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border: 1px solid rgba(16, 68, 30, 0.1);
}

.etec-tutor-msg {
    margin-bottom: 0.75rem;
}

.etec-tutor-msg:last-child {
    margin-bottom: 0;
}

.etec-tutor-msg--aluno .etec-tutor-msg-body {
    background: rgba(104, 181, 204, 0.25);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.etec-tutor-msg--tutor .etec-tutor-msg-body {
    background: #fff;
    border: 1px solid rgba(98, 38, 98, 0.15);
    border-left: 3px solid var(--viveco-purple);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.etec-tutor-msg-label {
    margin-bottom: 0.15rem;
    color: var(--viveco-gray);
    font-weight: 700;
}

/* Footer */
.etec-site-footer {
    background: var(--viveco-green);
    color: #fff;
    margin-top: 3rem;
}

.etec-footer-logo {
    height: 80px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    mix-blend-mode: lighten;
    display: block;
}

.etec-footer-muted {
    color: rgba(255, 255, 255, 0.82);
}

.etec-footer-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.etec-footer-link:hover {
    color: var(--viveco-purple-hover);
}

.etec-footer-link-subtle {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.etec-footer-link-subtle:hover {
    color: #fff;
    text-decoration: underline;
}

.progress-bar {
    background-color: var(--viveco-green-light);
}

.alert-info {
    background-color: rgba(104, 181, 204, 0.2);
    border-color: var(--viveco-teal);
    color: #1a4a5c;
}

/* Admin — cards de nível (questões) */
.etec-nivel-card {
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-top: 3px solid var(--viveco-teal);
}

.etec-nivel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 1rem rgba(16, 68, 30, 0.12) !important;
}

.etec-nivel-card--ativo {
    border-top-color: var(--viveco-purple) !important;
    background: rgba(16, 68, 30, 0.04);
}

/* Painel aluno — progressão visual */
.etec-painel-aluno {
    max-width: 960px;
}

.etec-painel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.etec-painel-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--viveco-green-light);
}

.etec-painel-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--viveco-green);
}

.etec-painel-cta {
    border-radius: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 700;
}

.etec-painel-card {
    border: 1px solid rgba(16, 68, 30, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(16, 68, 30, 0.06);
    background: var(--viveco-surface);
    overflow: hidden;
}

.etec-painel-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #fafcfb;
    border-bottom: 1px solid rgba(16, 68, 30, 0.08);
    padding: 0.85rem 1.25rem;
}

.etec-painel-stat {
    border: 1px solid rgba(16, 68, 30, 0.08);
    border-radius: 0.85rem;
    background: var(--viveco-surface);
    box-shadow: 0 2px 12px rgba(16, 68, 30, 0.04);
}

.etec-painel-stat--destaque {
    border-color: rgba(98, 38, 98, 0.25);
    background: linear-gradient(145deg, #fff 0%, rgba(98, 38, 98, 0.04) 100%);
}

.etec-painel-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--viveco-green);
    line-height: 1.1;
}

.etec-painel-stat-suffix {
    font-size: 1rem;
    font-weight: 700;
    color: var(--viveco-gray);
}

.etec-painel-stat-label {
    font-size: 0.78rem;
    color: var(--viveco-gray);
    margin-top: 0.25rem;
}

.etec-painel-progress {
    height: 8px;
    background: #e8efe9;
    border-radius: 4px;
}

.etec-painel-progress .progress-bar {
    background: linear-gradient(90deg, var(--viveco-green-light), var(--viveco-teal));
    border-radius: 4px;
}

.etec-painel-treino {
    border-left: 4px solid var(--viveco-green-light);
}

.etec-painel-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.72rem;
    color: var(--viveco-gray);
}

.etec-painel-legenda span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.etec-legenda-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.etec-legenda-dot--ok {
    background: var(--viveco-green-light);
}

.etec-legenda-dot--atual {
    background: var(--viveco-purple);
    box-shadow: 0 0 0 2px rgba(98, 38, 98, 0.2);
}

.etec-legenda-dot--bloq {
    background: #ced4da;
}

.etec-nivel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.etec-nivel-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    background: #fafcfb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.etec-nivel-item--concluido {
    border-color: rgba(35, 164, 85, 0.35);
    background: rgba(35, 164, 85, 0.06);
}

.etec-nivel-item--atual {
    border-color: rgba(98, 38, 98, 0.4);
    background: rgba(98, 38, 98, 0.05);
    box-shadow: 0 0 0 3px rgba(98, 38, 98, 0.08);
}

.etec-nivel-item--bloqueado {
    opacity: 0.72;
}

.etec-nivel-item-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: #fff;
    border: 2px solid #dee2e6;
    color: var(--viveco-gray);
}

.etec-nivel-item--concluido .etec-nivel-item-num {
    background: var(--viveco-green-light);
    border-color: var(--viveco-green);
    color: #fff;
}

.etec-nivel-item--atual .etec-nivel-item-num {
    background: var(--viveco-purple);
    border-color: var(--viveco-purple);
    color: #fff;
}

.etec-nivel-item-body {
    min-width: 0;
    flex: 1;
}

.etec-nivel-item-titulo {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--viveco-green);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.etec-nivel-item-meta {
    font-size: 0.72rem;
    color: var(--viveco-gray);
}

.etec-nivel-item-bar {
    height: 4px;
    margin: 0.25rem 0;
    background: rgba(16, 68, 30, 0.12);
}

.etec-nivel-item-bar .progress-bar {
    background: var(--viveco-purple);
}

.etec-painel-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--viveco-gray);
    border-bottom-width: 1px;
    background: #fafcfb;
}

.etec-painel-table tbody td {
    font-size: 0.875rem;
    vertical-align: middle;
}

.etec-pct-badge {
    background: rgba(35, 164, 85, 0.12);
    color: var(--viveco-green);
    font-weight: 700;
}

.etec-painel-empty {
    border-radius: 0.85rem;
    background: var(--viveco-surface);
}

/* Ranking */
.etec-ranking-meu-lugar {
    text-align: center;
    background: linear-gradient(145deg, rgba(98, 38, 98, 0.08), rgba(35, 164, 85, 0.1));
    border: 1px solid rgba(98, 38, 98, 0.2);
    border-radius: 0.85rem;
    padding: 0.65rem 1.25rem;
    min-width: 110px;
}

.etec-ranking-meu-lugar-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--viveco-gray);
    font-weight: 700;
}

.etec-ranking-meu-lugar-num {
    font-size: 1.5rem;
    color: var(--viveco-purple);
    line-height: 1.1;
}

.etec-ranking-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--viveco-gray);
    background: #fafcfb;
    border-bottom-width: 1px;
}

.etec-ranking-table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.etec-ranking-row--eu {
    background: rgba(16, 68, 30, 0.06);
}

.etec-ranking-pos {
    font-size: 1.05rem;
    color: var(--viveco-green);
}

.etec-ranking-bot-badge {
    background: rgba(104, 181, 204, 0.2);
    color: var(--viveco-blue);
    font-size: 0.65rem;
    font-weight: 700;
}

.etec-ranking-mini-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(16, 68, 30, 0.06);
}

.etec-ranking-mini-item:last-child {
    border-bottom: none;
}

.etec-ranking-mini-item--eu {
    font-weight: 700;
    color: var(--viveco-green);
}

.etec-ranking-mini-pos {
    width: 2rem;
    font-weight: 800;
    color: var(--viveco-purple);
    flex-shrink: 0;
}

.etec-ranking-mini-nome {
    flex: 1;
    min-width: 0;
}

.etec-ranking-mini-nivel {
    font-size: 0.78rem;
    color: var(--viveco-gray);
    flex-shrink: 0;
}

.etec-progresso-hero {
    background: linear-gradient(135deg, var(--viveco-green) 0%, var(--viveco-green-mid) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 68, 30, 0.2);
}

.etec-progresso-hero-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.etec-progresso-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.etec-progresso-ring-wrap canvas {
    width: 140px !important;
    height: 140px !important;
}

.etec-progresso-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--viveco-green);
}

.etec-progresso-ring-label small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--viveco-gray);
    margin-top: 0.15rem;
}

/* Landing cadastro */
.etec-landing-hero {
    padding: 2.5rem 0 2rem;
}

.etec-landing-badge {
    display: inline-block;
    background: var(--viveco-green-light);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.etec-landing-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--viveco-green);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.etec-landing-highlight {
    color: var(--viveco-purple);
}

.etec-landing-subtitle {
    font-size: 1.05rem;
    color: var(--viveco-gray);
    line-height: 1.6;
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.etec-landing-pills .etec-pill {
    background: #fff;
    color: var(--viveco-green);
    border: 1px solid rgba(16, 68, 30, 0.15);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
}

.etec-landing-logo-wrap {
    background: var(--viveco-green);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(16, 68, 30, 0.2);
}

.etec-landing-logo {
    max-width: 100%;
    width: 280px;
    height: auto;
    mix-blend-mode: lighten;
}

.etec-landing-section {
    padding: 2.5rem 0;
}

.etec-landing-section--alt {
    background: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(16, 68, 30, 0.08);
    border-bottom: 1px solid rgba(16, 68, 30, 0.08);
}

.etec-landing-section-title {
    color: var(--viveco-green);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.etec-landing-feature {
    border-top: 3px solid var(--viveco-teal) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.etec-landing-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(16, 68, 30, 0.1) !important;
}

.etec-landing-feature-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.etec-landing-step-num {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: var(--viveco-green);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 68, 30, 0.25);
}

.etec-landing-cta-band {
    background: var(--viveco-green);
    color: #fff;
    padding: 2.5rem 0;
}

.etec-landing-form-section {
    scroll-margin-top: 1rem;
    padding-bottom: 1rem;
}

.etec-landing-form-card {
    border-top: 4px solid var(--viveco-purple) !important;
}

.etec-landing-success-icon {
    font-size: 3.5rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .etec-landing-hero {
        text-align: center;
    }

    .etec-landing-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .etec-landing-hero .d-flex.flex-wrap.gap-2 {
        justify-content: center;
    }

    .etec-landing-pills {
        justify-content: center;
    }
}
