/* =========================================
   ELEVAMIND - LANDING PAGE CARGOS
   Estilos específicos para cargos.html
   ========================================= */

/* =========================================
   HERO - PREVIEW DO SISTEMA
   ========================================= */

.hero-cargos {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-preview {
    max-width: 700px;
    perspective: 1000px;
}

.preview-window {
    background: var(--dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border-medium);
    transform: rotateX(5deg);
    transition: transform 0.3s ease;
}

.preview-window:hover {
    transform: rotateX(0deg);
}

.preview-header {
    background: var(--dark-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-base);
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.preview-content {
    display: flex;
    min-height: 250px;
}

.preview-sidebar {
    width: 60px;
    background: var(--dark-base);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--border-light);
}

.preview-menu-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.preview-menu-item.active {
    background: var(--primary);
    color: white;
}

.preview-main {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card {
    background: var(--dark-base);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 350px;
    border: 1px solid var(--border-medium);
}

.preview-card-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Preview Descrição de Cargos */
.preview-card-descricao {
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.preview-card-descricao .preview-card-header {
    background: var(--dark-tertiary);
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
}

.preview-tabs {
    display: flex;
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--border-light);
}

.preview-tabs .tab {
    padding: 10px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.preview-tabs .tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--dark-base);
}

.preview-fields {
    padding: 16px;
}

.preview-fields .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.preview-fields .field:last-child {
    margin-bottom: 0;
}

.preview-fields .field-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.preview-fields .field-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.preview-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border-light);
}

.preview-status .badge {
    font-size: 0.7rem;
}

/* =========================================
   SEÇÃO PROBLEMA/SOLUÇÃO
   ========================================= */

.problema-icon,
.solucao-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problema-icon {
    background: rgba(239, 68, 68, 0.1);
}

.problema-icon i {
    font-size: 1.25rem;
}

.solucao-icon {
    background: rgba(34, 197, 94, 0.1);
}

.solucao-icon i {
    font-size: 1.25rem;
}

.problema-item,
.solucao-item {
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.problema-item:hover {
    background: rgba(239, 68, 68, 0.05);
}

.solucao-item:hover {
    background: rgba(34, 197, 94, 0.05);
}

/* =========================================
   CARDS DE FUNCIONALIDADES
   ========================================= */

.card-func {
    background: var(--dark-base);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-func:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.func-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.bg-dark-secondary {
    background-color: var(--dark-secondary) !important;
}

.bg-dark-tertiary {
    background-color: var(--dark-tertiary) !important;
}

/* =========================================
   CARDS FUNCIONALIDADES
   ========================================= */

.card-funcionalidade {
    background: var(--dark-base);
    border-radius: 16px;
}

.card-funcionalidade .card-header {
    border-bottom: none;
}

.funcionalidade-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funcionalidade-lista li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
}

.funcionalidade-lista li:last-child {
    border-bottom: none;
}

.funcionalidade-lista li i {
    margin-top: 3px;
}

/* =========================================
   COMPARATIVO ANTES/DEPOIS
   ========================================= */

.card-comparativo {
    background: var(--dark-base);
    border-radius: 16px;
    border-width: 2px !important;
}

.card-comparativo .card-header {
    border-bottom: none;
}

.comparativo-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparativo-lista li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.comparativo-lista li:last-child {
    border-bottom: none;
}

/* =========================================
   CADASTRO BETA
   ========================================= */

.card-cadastro {
    background: var(--dark-base);
    border-radius: 24px;
    border: 2px solid var(--primary) !important;
}

.card-cadastro .form-control,
.card-cadastro .form-select {
    background: var(--dark-secondary);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    border-radius: 12px;
}

.card-cadastro .form-control:focus,
.card-cadastro .form-select:focus {
    background: var(--dark-secondary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    color: var(--text-primary);
}

.card-cadastro .form-control::placeholder {
    color: var(--text-muted);
}

.card-cadastro .form-label {
    color: var(--text-secondary);
}

.beneficios-beta {
    background: var(--dark-secondary);
    border-radius: 12px;
    padding: 16px;
}

/* =========================================
   FAQ / ACCORDION
   ========================================= */

.accordion-item {
    background: var(--dark-base) !important;
}

.accordion-button {
    background: var(--dark-base) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--dark-secondary) !important;
    color: var(--primary) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: var(--dark-secondary);
}

/* =========================================
   BADGES CUSTOMIZADOS
   ========================================= */

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

.bg-success-subtle {
    background-color: rgba(74, 222, 128, 0.15) !important;
}

.bg-warning-subtle {
    background-color: rgba(251, 191, 36, 0.15) !important;
}

.bg-primary-subtle {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

.text-danger {
    color: #EF4444 !important;
}

.text-success {
    color: #4ADE80 !important;
}

.text-warning {
    color: #FBBF24 !important;
}

/* =========================================
   RESPONSIVO
   ========================================= */

/* Dashboard Questions */
.question-card {
    background: var(--dark-base);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
    transform: translateY(-2px);
}

.question-card i {
    font-size: 1rem;
}

/* =========================================
   CARD FEATURE HIGHLIGHT (IA)
   ========================================= */

.card-feature-highlight {
    border: 2px solid var(--primary) !important;
    position: relative;
    overflow: hidden;
}

.card-feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.feature-icon-ai {
    background: linear-gradient(135deg, #8B5CF6, #60A5FA) !important;
}

.ai-example {
    background: var(--dark-secondary);
    border-left: 3px solid var(--warning);
    color: var(--text-muted);
}

/* =========================================
   SEÇÃO DE DESTAQUES (R&S + ÍNDICE)
   ========================================= */

.destaque-card {
    background: var(--dark-base);
    border: 1px solid var(--border-medium);
    height: 100%;
}

.destaque-card.destaque-rs {
    border-left: 4px solid var(--success);
}

.destaque-card.destaque-indice {
    border-left: 4px solid var(--primary);
}

.destaque-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.destaque-lista li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.destaque-lista li:last-child {
    border-bottom: none;
}

.indice-preview {
    background: var(--dark-secondary);
}

.indice-beneficios {
    background: var(--dark-secondary);
    border-radius: 12px;
    padding: 16px;
}

/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 768px) {
    .hero-cargos {
        padding-top: 80px;
    }
    
    .preview-window {
        transform: none;
    }
    
    .preview-content {
        flex-direction: column;
    }
    
    .preview-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .escala-barra {
        flex-direction: column;
        height: auto;
    }
    
    .escala-segmento {
        height: 50px;
        width: 100% !important;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 16px;
    }
    
    .escala-marcadores {
        display: none;
    }
    
    .segmento-label {
        font-size: 0.85rem;
    }
    
    .segmento-pontos {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .card-cadastro .card-body {
        padding: 24px !important;
    }
    
    .beneficios-beta .col-6 {
        width: 100%;
    }
}

/* =========================================
   PREVIEW TABS E FIELDS - NOVO DESIGN
   ========================================= */

.preview-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.preview-tabs .tab {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
    background: transparent;
}

.preview-tabs .tab.active {
    background: var(--primary);
    color: white;
}

.preview-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-fields .field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.preview-fields .field:last-child {
    border-bottom: none;
}

.preview-fields .field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.preview-fields .field-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.preview-fields .field-value.status-approved {
    color: var(--success);
}

.preview-fields .field-value.status-approved i {
    margin-right: 4px;
}

/* =========================================
   CARDS DE FUNCIONALIDADES
   ========================================= */

.card-feature {
    background: var(--dark-base);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* =========================================
   STEPS / COMO FUNCIONA
   ========================================= */

.step-card {
    padding: 24px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* =========================================
   DASHBOARD / ANALYTICS
   ========================================= */

.bg-info-subtle {
    background-color: rgba(59, 130, 246, 0.15) !important;
}

.text-info {
    color: #60A5FA !important;
}

.dashboard-preview {
    max-width: 900px;
}

.dashboard-window {
    background: var(--dark-base);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border-medium);
}

.dashboard-header {
    background: var(--dark-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-content {
    background: var(--dark-secondary);
}

/* KPI Cards */
.kpi-card {
    background: var(--dark-base);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-trend {
    font-size: 0.7rem;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.kpi-trend.up {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.kpi-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.kpi-badge {
    font-size: 0.7rem;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
}

/* Chart Cards */
.chart-card {
    background: var(--dark-base);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
    height: 100%;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Bar Chart */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 70px;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 12px;
    background: var(--dark-tertiary);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    transition: width 1s ease;
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 30px;
    text-align: right;
}

/* Donut Chart */
.donut-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.donut-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.donut-ring svg {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--error) !important; }

/* Insight Cards */
.insight-card {
    background: var(--dark-base);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    margin: 0 auto;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .kpi-value {
        font-size: 1.25rem;
    }
    
    .kpi-label {
        font-size: 0.6rem;
    }
    
    .bar-label {
        width: 50px;
        font-size: 0.6rem;
    }
    
    .donut-ring {
        width: 80px;
        height: 80px;
    }
}
