/* ==========================================
   MODERN DASHBOARD - Complete Redesign
   Destrava Concursos
   ========================================== */

/* ==========================================
   1. BACKGROUND & LAYOUT
   ========================================== */

#dashboard-screen {
    background: linear-gradient(to bottom right, #f8fafc, #eff6ff, #faf5ff);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================
   2. HEADER PROFISSIONAL
   ========================================== */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo com Gradiente Animado */
.dashboard-logo .brand-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.3));
    transition: transform 0.3s ease;
    margin-bottom: -39px;
}

.dashboard-logo .brand-logo:hover {
    transform: scale(1.05);
}

/* Badge Premium Destacado */
.plan-badge.premium {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    }
}

/* Notificações com Indicador */
.notification-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-btn:hover {
    background-color: #f3f4f6;
}

.notification-indicator {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 9999px;
    border: 2px solid white;
}

/* Avatar do Usuário */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-profile:hover {
    background-color: #e5e7eb;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

/* ==========================================
   3. CARDS DE STATUS SUPERIORES
   ========================================== */

.status-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Card Principal (Verde) - Cargo */
.status-card-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.status-card-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.status-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.status-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.status-card-title {
    font-size: 1.25rem;
    color: #ffffff;
    padding: 9px;
    border-radius: 1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-card-settings {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.status-card-settings:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cargo Title Section */
.cargo-title-section {
    display: flex;
    flex-direction: column;
}

.cargo-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-switch-cargo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-switch-cargo:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-switch-cargo svg {
    width: 18px;
    height: 18px;
}

/* Upload PDF Button (Orange) */
.btn-upload-pdf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    margin-top: 1rem;
}

.btn-upload-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.btn-upload-pdf svg {
    flex-shrink: 0;
}

.btn-upload-pdf span {
    white-space: nowrap;
}

/* Mobile: Hide text, show only icon */
@media (max-width: 480px) {
    .btn-upload-pdf span {
        display: none;
    }

    .btn-upload-pdf {
        padding: 0.75rem;
    }
}

.status-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.status-metric {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.status-metric-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.status-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Card Sequência (Laranja) */
.status-card-streak {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-card-streak:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.status-icon-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-icon-text {
    flex: 1;
}

.status-icon-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.status-icon-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #111827;
}

.status-card-description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Card Domínio (Azul) */
.status-card-progress {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #bfdbfe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-card-progress:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.status-card-progress .status-icon {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
}

/* Grid para Cards Secundários (Sequência + Domínio) - Side by Side */
.status-cards-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ==========================================
   4. TRILHAS REDESENHADAS (Desktop & Raio-X Fix)
   ========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile default */
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;

}

/* Desktop Layout */
@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    /* Row 1: Rota (Left/Wide) + Agenda (Right/Narrow) */
    .card-rota {
        grid-column: span 8;
        order: 1;
    }

    .card-agenda {
        grid-column: span 4;
        order: 2;
    }

    /* Row 2: Raio-X (Full Width) - CORREÇÃO DE ALTURA AQUI */
    .card-raiox {
        grid-column: span 12;
        order: 3;
    }

    /* ====================================================
       FIX ESPECÍFICO PARA O CARD RAIO-X
       Isso garante que APENAS este card tenha 800px e scroll
       ==================================================== */
    div.card-raiox .trilha-content {
        height: 800px !important;
        /* Força a altura */
        overflow-y: auto !important;
        /* Força a rolagem vertical */
        overflow-x: hidden !important;
        /* Esconde rolagem horizontal */
        display: block !important;
        /* Garante o comportamento de bloco */
        padding-right: 10px;
        /* Espaço para a barra de rolagem não cobrir texto */
    }

    /* Estilização da Barra de Rolagem (Chrome/Edge/Safari) */
    div.card-raiox .trilha-content::-webkit-scrollbar {
        width: 8px;
    }

    div.card-raiox .trilha-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    div.card-raiox .trilha-content::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    div.card-raiox .trilha-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Row 3: Domínio (Left/Narrow) + Mural (Right/Wide) */
    .card-dominio {
        grid-column: span 4;
        order: 4;
        min-height: 350px;
    }

    .notes-card {
        grid-column: span 8;
        order: 5;
        min-height: 350px;
    }
}

.trilhas-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trilha-card {
    background: white;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trilha-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Headers Coloridos por Categoria */
.trilha-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.trilha-header.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.trilha-header.orange {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.trilha-header.purple {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.trilha-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trilha-icon {
    font-size: 2.5rem;
}

.trilha-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trilha-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Conteúdo das Trilhas (Genérico) */
/* ATENÇÃO: Altura removida daqui para não quebrar outros cards */
.trilha-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 900px;
}

.trilha-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.trilha-empty-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

/* Módulos dentro das Trilhas */
.module-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:last-child {
    margin-bottom: 0;
}

.module-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.module-card.in-progress {
    border-color: #fed7aa;
    background: #fff7ed;
}

.module-card.in-progress:hover {
    border-color: #fb923c;
}

/* Badge META GERAL */
.meta-geral-badge {
    position: absolute;
    top: -12px;
    left: 1rem;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.module-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-icon.in-progress {
    background: #f97316;
    color: white;
}

.module-icon.available {
    background: #e5e7eb;
    color: #6b7280;
}

.module-info {
    flex: 1;
    min-width: 0;
}

.module-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.module-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.module-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.module-weight-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tags Coloridas */
.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.tag-high {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.tag-review {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.tag-summary {
    background: #e9d5ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}

/* Barra de Progresso Animada */
.module-progress {
    margin-bottom: 0.75rem;
}

.module-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.module-progress-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.module-progress-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f97316;
}

.module-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.module-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fb923c, #f97316);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Botões CTA Grandes */
.module-cta {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-cta.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.module-cta.primary:hover {
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
    transform: scale(1.02);
}

.module-cta.secondary {
    background: #f3f4f6;
    color: #374151;
}

.module-cta.secondary:hover {
    background: #e5e7eb;
}

/* Filtros de Prioridade */
.priority-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.filter-chip.active {
    border-color: #f97316;
    background: #fff7ed;
    color: #f97316;
}

/* ==========================================
   5. SIDEBAR LATERAL DIREITA
   ========================================== */

.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Gráfico Circular do Domínio */
.progress-chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e9d5ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress-chart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.progress-chart-icon {
    color: #a855f7;
    font-size: 1.5rem;
}

.progress-chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.progress-chart-wrapper {
    position: relative;
    width: 192px;
    height: 192px;
    margin: 0 auto 1.5rem;
}

.progress-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-chart-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 16;
}

.progress-chart-fill {
    fill: none;
    stroke: url(#progress-gradient);
    stroke-width: 16;
    stroke-dasharray: 502.65;
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 1s ease;
    stroke-linecap: round;
}

.progress-chart-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-chart-percentage {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
}

.progress-chart-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-chart-description {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Mural de Anotações - Estilo Post-it Amarelo */
.notes-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.notes-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.notes-card .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
}

.btn-add-note {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add-note:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.notes-container {
    min-height: 100px;
    color: #78350f;
    font-size: 0.875rem;
}

.notes-empty {
    text-align: center;
    padding: 2rem;
    color: #92400e;
    font-style: italic;
}

.notes-wall-add-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.notes-wall-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Cards de Conquistas */
.achievements-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.achievements-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.achievements-icon {
    color: #eab308;
    font-size: 1.25rem;
}

.achievements-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.achievement-item {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   8. GRÁFICO CIRCULAR ANIMADO
   ========================================== */

.donut-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

#progress-circle {
    transition: stroke-dashoffset 1s ease-in-out;
    will-change: stroke-dashoffset;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00C897;
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.chart-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

@keyframes progressFill {
    from {
        stroke-dashoffset: 502.65;
    }
}

.donut-chart-container.animate #progress-circle {
    animation: progressFill 1.5s ease-out;
}

/* ==========================================
   9. MENU HAMBÚRGUER MOBILE
   ========================================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    align-self: center;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100% !important;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding: 80px 24px 24px;
}

.mobile-menu.active {
    right: 0 !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.mobile-menu-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.mobile-menu-item:hover {
    background: #f3f4f6;
    border-color: #00C897;
}

.mobile-menu-item svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.mobile-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.mobile-menu-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.mobile-menu-footer .btn-premium {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   10. RESPONSIVIDADE MOBILE
   ========================================== */

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        margin-left: auto;
        margin-top: -2.6rem;
    }

    div.card-raiox .trilha-content {
        height: 800px !important;
    }

    .header-top {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .brand-logo-container {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .brand-logo {
        display: block;
    }

    .header-actions {
        display: none !important;
    }

    .header-top {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 0;
    }

    .status-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .status-cards-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .trilha-card,
    .dashboard-card {
        padding: 1.25rem;
        margin-left: 1px;
    }

    .module-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-icon {
        margin-bottom: 1rem;
    }

    .status-card-title {
        font-size: 1.25rem;
    }

    .trilha-title {
        font-size: 1.125rem;
    }

    @media (max-width: 480px) {
        .module-meta-item:nth-child(n+3) {
            display: none;
        }
    }
}

.achievement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.achievement-item.purple {
    background: #faf5ff;
}

.achievement-item.blue {
    background: #eff6ff;
}

.achievement-item.green {
    background: #f0fdf4;
}

.achievement-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.achievement-value {
    font-weight: 700;
}

.achievement-item.purple .achievement-value {
    color: #a855f7;
}

.achievement-item.blue .achievement-value {
    color: #3b82f6;
}

.achievement-item.green .achievement-value {
    color: #10b981;
}

/* ==========================================
   6. RESPONSIVIDADE (Ajustes Finais)
   ========================================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .status-card-primary {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .status-cards-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .dashboard-grid {
        padding: 0 1rem 1rem;
    }

    .header-top {
        padding: 1rem;
    }

    .status-metrics-grid {
        grid-template-columns: 1fr;
    }
}