/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-hover: #eef1f6;
    --border: #d8dce6;
    --text: #1a1a2e;
    --text-muted: #5b6472;
    --primary: #00AEEF;
    --primary-hover: #0095d0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #1a1a5e;
    --sidebar-bg: #ffffff;
    --sidebar-w: 250px;
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    max-width: 180px;
    max-height: 44px;
    object-fit: contain;
    filter: none;
}

.sidebar-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    list-style: none;
    padding: 12px 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.nav-menu::-webkit-scrollbar { width: 6px; }
.nav-menu::-webkit-scrollbar-track { background: transparent; }
.nav-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.nav-menu::-webkit-scrollbar-thumb:hover { background: #b6bcc9; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: #f0f9ff;
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, #00AEEF 0%, #0095d0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
    font-weight: 600;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    padding: 10px 14px 3px;
    margin-top: 2px;
    list-style: none;
}

/* === Content === */
.content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 32px;
    max-width: none;   /* fluido: usa toda a largura disponível */
    min-width: 0;
}

/* Em telas bem largas, mais respiro nas laterais */
@media (min-width: 1700px) {
    .content { padding: 36px 48px; }
}

.page { display: none; }
.page.active { display: block; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* === Cards & Stats === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-card.primary { border-left: 4px solid var(--primary); }
.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.primary .stat-icon { background: rgba(0,174,239,0.1); color: var(--primary); }

.stat-card.success { border-left: 4px solid var(--success); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.success .stat-icon { background: rgba(16,185,129,0.1); color: var(--success); }

.stat-card.warning { border-left: 4px solid var(--warning); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.warning .stat-icon { background: rgba(245,158,11,0.1); color: var(--warning); }

.stat-card.info { border-left: 4px solid var(--info); }
.stat-card.info .stat-value { color: var(--info); }
.stat-card.info .stat-icon { background: rgba(26,26,94,0.1); color: var(--info); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* === Dashboard Vagas Cards === */
.dash-vagas-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-vaga-card {
    display: flex;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dash-vaga-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.dash-vaga-accent {
    width: 5px;
    flex-shrink: 0;
    background: var(--vaga-accent, var(--primary));
}

.dash-vaga-body {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.dash-vaga-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.dash-vaga-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.dash-vaga-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--vaga-accent, var(--primary));
    color: white;
    flex-shrink: 0;
    white-space: nowrap;
}

.dash-vaga-empresa {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dash-vaga-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.dash-vaga-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-weight: 500;
}

.dash-vaga-tag.remoto {
    background: #d1fae5;
    color: #059669;
    border-color: #a7f3d0;
}

.dash-vaga-salario {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-novo { background: #dbeafe; color: #1d4ed8; }
.badge-analisado { background: #e0e7ff; color: #4338ca; }
.badge-aprovado { background: #d1fae5; color: #059669; }
.badge-entrevista { background: #fef3c7; color: #b45309; }
.badge-rejeitado { background: #fee2e2; color: #dc2626; }
.badge-forte { background: #d1fae5; color: #059669; }
.badge-moderada { background: #fef3c7; color: #b45309; }
.badge-fraca { background: #fee2e2; color: #dc2626; }

/* Status de colaborador (substitui o mapa de hex inline em carregarColaboradores) */
.badge-ativo { background: #d1fae5; color: var(--success); }
.badge-experiencia { background: #dbeafe; color: #1d4ed8; }
.badge-ferias { background: #fef3c7; color: #b45309; }
.badge-afastado { background: #fee2e2; color: var(--danger); }
.badge-licenca { background: #ede9fe; color: #6d28d9; }
.badge-desligado { background: var(--bg-hover); color: var(--text-muted); }

/* === Score Ring === */
.score-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid;
    flex-shrink: 0;
}

.score-alto { border-color: var(--success); color: var(--success); }
.score-medio { border-color: var(--warning); color: var(--warning); }
.score-baixo { border-color: var(--danger); color: var(--danger); }

/* === Curriculos Grid === */
.curriculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.curriculo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s;
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.curriculo-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.12);
}

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

.curriculo-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.curriculo-info .cargo {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.curriculo-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* === Detalhe Curriculo === */
.detalhe-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.detalhe-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.detalhe-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.card-foto-wrap {
    position: relative;
    flex-shrink: 0;
}

.card-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.card-foto-score {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-card);
    border: 2px solid;
}

.card-foto-score.score-alto { border-color: var(--success); color: var(--success); }
.card-foto-score.score-medio { border-color: var(--warning); color: var(--warning); }
.card-foto-score.score-baixo { border-color: var(--danger); color: var(--danger); }

.detalhe-info h2 { font-size: 24px; margin-bottom: 4px; }

.detalhe-info .cargo {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.detalhe-contato {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.detalhe-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.detalhe-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-item, .form-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:last-child, .form-item:last-child { border-bottom: none; }

.exp-item h4 { font-size: 14px; font-weight: 600; }

.exp-item .empresa {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 2px;
}

.exp-item .periodo, .form-item .ano {
    font-size: 12px;
    color: var(--text-muted);
}

.exp-item p, .form-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.habilidades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.habilidade-tag {
    padding: 6px 14px;
    background: rgba(0, 174, 239, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.pontos-lista { list-style: none; }

.pontos-lista li {
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ponto-icon-forte { color: var(--success); }
.ponto-icon-fraco { color: var(--warning); }

.rich-text-body p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.rich-text-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.rich-text-body li {
    margin-bottom: 6px;
    line-height: 1.55;
}

/* Score grande */
.score-grande {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    margin: 0 auto 16px;
}

.score-grande .score-num {
    font-size: 28px;
    font-weight: 700;
}

.score-grande .score-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Vagas === */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.vaga-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vaga-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vaga-card .vaga-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vaga-card .vaga-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vaga-actions {
    display: flex;
    gap: 8px;
}

/* Ranking */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ranking-item:hover {
    border-color: var(--primary);
}

.ranking-pos {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.ranking-pos.top-1 { background: #fbbf24; color: #1a1a2e; }
.ranking-pos.top-2 { background: #94a3b8; color: #1a1a2e; }
.ranking-pos.top-3 { background: #cd7f32; color: #1a1a2e; }

.ranking-info { flex: 1; }
.ranking-info h4 { font-size: 14px; font-weight: 600; }
.ranking-info p { font-size: 12px; color: var(--text-muted); }

/* === Upload === */
.upload-area {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(0, 174, 239, 0.04);
}

.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.progress-bar {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    margin: 24px 0 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* === Inputs & Buttons === */
.input, .input-search, .select-filter, .form-control {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
    height: 42px;
}

/* Campos de várias linhas não têm altura fixa */
textarea.input, textarea.input-search, textarea.form-control { height: auto; min-height: 42px; }

/* Utilidade: input ocupa a largura do container (usada nos modais) */
.field-full { width: 100%; margin-top: 4px; }

/* Rótulos de formulário uniformes (mesma altura de linha, sem quebra) */
.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input:focus, .input-search:focus, .select-filter:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.input-search { width: 280px; }
.textarea { resize: vertical; min-height: 80px; width: 100%; }

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: #1a1a2e; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
/* Botão fantasma de perigo: neutro em repouso, vermelho no hover (excluir/remover) */
.btn-ghost-danger { background: transparent; color: var(--danger); border: 1px solid var(--border); }
.btn-ghost-danger:hover { background: #fee2e2; border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-delete {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-delete:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* === Forms === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group .input { width: 100%; }
.form-group.full-width { grid-column: span 2; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.vaga-avaliacoes-section {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.vaga-avaliacoes-header {
    margin-bottom: 14px;
}

.vaga-avaliacoes-header label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.vaga-avaliacoes-header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

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

.vaga-avaliacao-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px 18px 34px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.vaga-avaliacao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.vaga-avaliacao-card::after {
    content: "Selecionado";
    position: absolute;
    left: 18px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: color-mix(in srgb, currentColor 12%, white);
    color: currentColor;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.18s ease;
    pointer-events: none;
}

.vaga-avaliacao-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.vaga-avaliacao-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: currentColor;
    opacity: 0.9;
}

.vaga-avaliacao-card.mod-disc { color: #00AEEF; }
.vaga-avaliacao-card.mod-bigfive { color: #8B5CF6; }
.vaga-avaliacao-card.mod-sjt { color: #F59E0B; }
.vaga-avaliacao-card.mod-motivacional { color: #10B981; }
.vaga-avaliacao-card.mod-cultural { color: #EC4899; }
.vaga-avaliacao-card.mod-aq { color: #F97316; }

.vaga-avaliacao-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: color-mix(in srgb, currentColor 12%, white);
}

.vaga-avaliacao-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.vaga-avaliacao-copy strong {
    font-size: 14px;
    color: var(--text);
    line-height: 1.2;
}

.vaga-avaliacao-copy small {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
}

.vaga-avaliacao-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    color: transparent;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.vaga-avaliacao-card.is-checked,
.vaga-avaliacao-card:has(input:checked) {
    border-color: color-mix(in srgb, currentColor 34%, white);
    box-shadow: 0 12px 28px color-mix(in srgb, currentColor 18%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, currentColor 12%, white) 0%, #ffffff 100%);
    transform: translateY(-2px);
}

.vaga-avaliacao-card.is-checked .vaga-avaliacao-check,
.vaga-avaliacao-card:has(input:checked) .vaga-avaliacao-check {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.14);
}

.vaga-avaliacao-card.is-checked .vaga-avaliacao-icon,
.vaga-avaliacao-card:has(input:checked) .vaga-avaliacao-icon {
    background: color-mix(in srgb, currentColor 18%, white);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, white);
}

.vaga-avaliacao-card.is-checked::after,
.vaga-avaliacao-card:has(input:checked)::after {
    opacity: 1;
    transform: translateY(0);
}

.perfil-ideal-section {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.perfil-ideal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.perfil-ideal-header label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.perfil-ideal-header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 720px;
}

.perfil-ideal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.perfil-ideal-resumo {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #f0f9ff 100%);
    font-size: 12px;
    line-height: 1.55;
    color: #1e3a5f;
}

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

.perfil-ideal-card {
    position: relative;
    display: block;
    min-height: 146px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    overflow: hidden;
}

.perfil-ideal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.perfil-ideal-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #00AEEF 0%, #1a1a5e 100%);
    opacity: 0.28;
    transition: opacity 0.18s ease;
}

.perfil-ideal-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.perfil-ideal-card strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    padding-right: 34px;
}

.perfil-ideal-card small {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
    min-height: 55px;
}

.perfil-ideal-card-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.perfil-ideal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.perfil-ideal-card-tags em {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.perfil-ideal-card::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: all 0.18s ease;
}

.perfil-ideal-card.is-selected,
.perfil-ideal-card:has(input:checked) {
    border-color: #60a5fa;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.14);
    transform: translateY(-2px);
}

.perfil-ideal-card.is-selected::before,
.perfil-ideal-card:has(input:checked)::before {
    opacity: 1;
}

.perfil-ideal-card.is-selected::after,
.perfil-ideal-card:has(input:checked)::after {
    background: #111827;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.12);
}

.perfil-ideal-avancado {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: #fafcff;
}

.perfil-ideal-avancado-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.perfil-ideal-avancado-head strong {
    font-size: 13px;
    color: var(--text);
}

.perfil-ideal-avancado-head span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.perfil-ideal-avancado-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1180px) {
    .vaga-avaliacoes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .perfil-ideal-grid {
        grid-template-columns: 1fr;
    }
}

/* === Compact list === */
.list-compact .list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.list-compact .list-item:last-child { border-bottom: none; }
.list-compact .list-item:hover { opacity: 0.8; }

.list-item .avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.list-item .item-info { flex: 1; }
.list-item .item-info h4 { font-size: 13px; font-weight: 600; }
.list-item .item-info p { font-size: 12px; color: var(--text-muted); }

/* === Chart bars (simple) === */
.chart-bars .bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bar-label {
    width: 90px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 30px;
    transition: width 0.5s ease;
    color: white;
}

/* Compat table */
.compat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.compat-table th, .compat-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.compat-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.req-check { color: var(--success); }
.req-cross { color: var(--danger); }

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; }

/* === DISC Questionnaire === */
.disc-table {
    width: 100%;
    border-collapse: collapse;
}

.disc-table th {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
}

.disc-table td {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.disc-table tr:last-child td {
    border-bottom: none;
}

.disc-table input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.disc-grupo {
    transition: border-color 0.2s;
}

.disc-grupo:hover {
    border-color: var(--primary);
}

/* === Kanban Pipeline === */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-height: 200px;
}

.kanban-column {
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.kanban-column-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
}

.kanban-count {
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
}

.kanban-cards {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.kanban-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.1);
}

.kanban-card[draggable="true"] {
    cursor: grab;
}

.kanban-card[draggable="true"]:active {
    cursor: grabbing;
    opacity: 0.7;
}

.kanban-drag-over {
    background: var(--bg-hover) !important;
    outline: 2px dashed var(--primary);
    outline-offset: -2px;
}

.kanban-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.kanban-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.kanban-card-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-card-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

.kanban-card-meta span {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.kanban-disc-badge {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.kanban-disc-badge.disc-executor { background: #fef2f2; color: #dc2626; }
.kanban-disc-badge.disc-comunicador { background: #fffbeb; color: #d97706; }
.kanban-disc-badge.disc-planejador { background: #ecfdf5; color: #059669; }
.kanban-disc-badge.disc-analista { background: #eff6ff; color: #2563eb; }

/* Legacy contact - kept for backwards compat */
.kanban-card-contact {
    display: none;
}

/* Toolbar unificada */
.kanban-card-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.kanban-card-toolbar .kanban-tool-btn {
    flex: 1;
}

.kanban-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    position: relative;
}

.kanban-tool-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #e8f6fd;
}

/* Tooltip */
.kanban-tool-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1e293b;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    line-height: 1.3;
}

.kanban-tool-btn[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
    pointer-events: none;
    z-index: 10;
}

.kanban-tool-btn.tool-whatsapp {
    color: #25d366;
}

.kanban-tool-btn.tool-whatsapp:hover {
    background: #ecfdf5;
    border-color: #25d366;
    color: #128c7e;
}

.kanban-tool-btn.tool-primary {
    color: var(--primary);
}

.kanban-tool-btn.tool-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.kanban-tool-btn.tool-danger {
    color: var(--danger);
    border-color: #fecaca;
    background: #fef2f2;
}

.kanban-tool-btn.tool-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* DISC action buttons */
.kanban-disc-actions {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.kanban-disc-btn {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    color: var(--text-muted);
}

.kanban-disc-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #e8f6fd;
}

.kanban-disc-btn.disc-whatsapp {
    color: #25d366;
}

.kanban-disc-btn.disc-whatsapp:hover {
    border-color: #25d366;
    background: #ecfdf5;
}

.kanban-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.kanban-card-actions .btn {
    font-size: 10px;
    padding: 4px 8px;
    flex: 1;
    text-align: center;
}

.kanban-empty {
    text-align: center;
    padding: 24px 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* === Comparativo dos Selecionados === */
.compare-panel {
    border: 1px solid rgba(0, 174, 239, 0.14);
    background:
        radial-gradient(circle at top right, rgba(0, 174, 239, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
}

.compare-panel-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.compare-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-hover);
    margin-bottom: 8px;
}

.compare-panel-hero h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 8px;
}

.compare-panel-hero p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 760px;
}

.compare-loading-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    color: var(--primary-hover);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.compare-stage-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compare-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.compare-kpi-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(216, 220, 230, 0.9);
}

.compare-kpi-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.compare-kpi-card strong {
    display: block;
    font-size: 28px;
    color: var(--text);
}

.compare-kpi-card small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.compare-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.compare-candidate-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(216, 220, 230, 0.9);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.compare-candidate-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.compare-candidate-top h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text);
}

.compare-candidate-top p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.compare-score {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.compare-candidate-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.compare-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.compare-facts div,
.compare-notes-block div {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid rgba(216, 220, 230, 0.75);
}

.compare-facts span,
.compare-notes-block span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.compare-facts strong {
    font-size: 13px;
    color: var(--text);
    line-height: 1.45;
}

.compare-notes-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.compare-notes-block p {
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
}

.compare-progress {
    margin-top: 14px;
}

.compare-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.compare-progress-label strong {
    color: var(--text);
    font-size: 12px;
}

.compare-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    overflow: hidden;
}

.compare-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #5cc8f5);
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(216, 220, 230, 0.75);
    background: rgba(255,255,255,0.96);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.compare-table thead th {
    background: #f5f9fd;
    color: var(--text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(216, 220, 230, 0.75);
    vertical-align: top;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
}

.compare-table tbody th {
    width: 180px;
    color: var(--text-muted);
    background: rgba(245, 249, 253, 0.7);
}

.compare-sub {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.compare-empty {
    color: var(--text-muted);
}

/* === Empresa Card === */
.empresa-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.empresa-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.empresa-card .empresa-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* === Filtros Avancados === */
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.filtro-grupo label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.filtros-tag-ativo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    cursor: pointer;
    margin: 2px;
}

.filtros-tag-ativo:hover {
    opacity: 0.8;
}

/* === Responsive === */
@media (max-width: 768px) {
    /* Sidebar/content ficam a cargo do bloco drawer (mais abaixo, ~2637): sidebar off-canvas
       de 250px com labels visiveis. As antigas regras de sidebar 60px foram removidas (D3). */
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .curriculos-grid, .vagas-grid { grid-template-columns: 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .input-search { width: 180px; }
    .compare-panel-hero,
    .compare-candidate-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .compare-stage-summary {
        justify-content: flex-start;
    }
    .compare-facts {
        grid-template-columns: 1fr;
    }
    .compare-table {
        min-width: 680px;
    }
    .report-option-card {
        padding: 14px 16px;
    }
    .vaga-avaliacoes-grid {
        grid-template-columns: 1fr;
    }
    .perfil-ideal-header {
        flex-direction: column;
    }
    .perfil-ideal-actions {
        width: 100%;
    }
    .perfil-ideal-avancado-grid {
        grid-template-columns: 1fr;
    }
}

/* === Botao IA === */
.btn-ia {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ia:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}
.btn-ia:disabled {
    opacity: 0.6;
    cursor: wait;
}
.btn-ia.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* === Login Screen === */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a5e 0%, #2a3f6e 50%, #00AEEF 100%);
}
.login-container {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo img {
    width: 220px;
    margin-bottom: 16px;
}
.login-logo h1 {
    font-size: 22px;
    color: var(--text);
    font-weight: 700;
}
.login-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.login-field {
    margin-bottom: 16px;
}
.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.login-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}
.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.login-btn:hover {
    background: var(--primary-hover);
}
.login-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.login-erro {
    background: #fef2f2;
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid #fecaca;
}

/* === Sidebar Footer === */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.user-nome {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.user-papel {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logout-btn {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.logout-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    cursor: pointer;
    min-width: 280px;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-warning { background: #d97706; }
.toast-info { background: #2563eb; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.4; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* === Loading Spinner === */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.spinner-dark {
    border-color: rgba(0,0,0,0.1);
    border-top-color: var(--primary);
}
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
.skeleton-card { height: 120px; margin-bottom: 12px; }
.skeleton-stat { height: 72px; }
.curriculo-card-processando { border: 1px dashed var(--primary); }

/* === Sino de notificações === */
#notif-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
#notif-sino {
    position: relative;
    font-size: 18px;
    padding: 8px 12px;
}
#notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#notif-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    z-index: 900;
    overflow: hidden;
}
.notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover, #eef1f6); }
.notif-item.nao-lida { background: rgba(0, 174, 239, 0.06); }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 40%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading .spinner { margin-right: 6px; }

/* === Breadcrumbs === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* === Filter Chips === */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.filter-chip-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.filter-chip-remove:hover { opacity: 1; }

/* === Results Counter === */
.results-counter {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

/* === Prev/Next Navigation === */
.detail-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-nav .btn { padding: 6px 14px; font-size: 13px; }

/* === Modal Animations === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0);
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    transition: background 0.25s ease;
}
.modal-overlay.active { background: rgba(0,0,0,0.6); }
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    max-width: 520px;
    width: 100%;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: all 0.25s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
body.modal-open { overflow: hidden; }

/* === Confirm Dialog === */
.confirm-dialog {
    text-align: center;
    padding: 32px;
}
.confirm-dialog h3 { margin-bottom: 12px; font-size: 18px; }
.confirm-dialog p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.confirm-dialog .confirm-actions { display: flex; gap: 12px; justify-content: center; }

.report-options-dialog {
    max-width: 620px;
}

.report-options-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.report-options-dialog h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text);
}

.report-options-dialog > p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.report-option-list {
    display: grid;
    gap: 12px;
}

.report-option-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.report-option-card input {
    display: none;
}

.report-option-card strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 6px;
}

.report-option-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.report-option-card:hover,
.report-option-card.active {
    border-color: var(--primary);
    background: rgba(0, 174, 239, 0.05);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.08);
}

.report-option-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg);
    box-shadow: none;
}

.report-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}

.report-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* === Inline Validation === */
.form-control.invalid, .input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

/* === Export Button === */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-export:hover { background: var(--bg-hover); color: var(--text); }

/* === Hamburger Menu (Mobile) === */
.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

/* === Responsive: Tablet (1024px) === */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .dashboard-grid { grid-template-columns: 1fr !important; }
}

/* === Responsive: Mobile (768px) - Override existing === */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 150;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.open { display: block; }
    .content { margin-left: 0 !important; padding: 60px 16px 16px !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .page-header { flex-wrap: wrap; gap: 12px; }
    .page-header h1 { font-size: 22px; }
    .toast-container { left: 12px; right: 12px; max-width: none; }
    .toast { min-width: auto; }
    .filter-chips { margin-bottom: 8px; }
}

/* === Responsive: Small Mobile (480px) === */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .login-container { padding: 32px 24px; margin: 20px; }
    .login-logo img { width: 160px; }
}

/* === Tabelas de dados (módulos de RH) === */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: var(--bg-hover); }

.table tbody td small { color: var(--text-muted); }

/* Tabela dentro de um card já tem fundo próprio — evitar moldura dupla */
.card .table-container { border: none; border-radius: 0; background: transparent; }

/* Wrapper rolável para tabelas largas (usado em app.js; antes só existia inline no relatório) */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tabela empilhada em telas pequenas: cada linha vira um card com rótulos (data-label).
   Aplicar só em tabelas administrativas (colaboradores, usuários), não em dados densos. */
@media (max-width: 640px) {
    .table-stack thead { display: none; }
    .table-stack,
    .table-stack tbody,
    .table-stack tr,
    .table-stack td { display: block; width: 100%; }
    .table-stack tr {
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 6px 0;
    }
    .table-stack td {
        border: none;
        padding: 6px 14px;
    }
    .table-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
    }
    .table-stack td:empty { display: none; }
}
