.pace {
    display: none !important;
}

/* ===== LAYOUT VERTICAL - PÁGINA DE APURAÇÃO ===== */

/* Status Indicator */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.online {
    background-color: #28a745;
    animation: pulse-green 2s infinite;
}

.status-dot.offline {
    background-color: #dc3545;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Card Updates Animation */
.card-update {
    animation: highlight 0.8s ease-in-out;
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 123, 255, 0.1); }
    100% { background-color: transparent; }
}

/* Panel Improvements */
.panel {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-heading {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.panel-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

/* Lista Vertical de Candidatos */
.registered-users-list {
    padding: 0;
    margin: 0;
    list-style: none;
    background: white;
}

.registered-users-list li {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    display: block; /* Force vertical layout */
    width: 100%;
}

.registered-users-list li:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.registered-users-list li:last-child {
    border-bottom: none;
}

/* Layout do Candidato - Linha Única */
.candidate-item {
    /* Inherited from li */
}

.candidate-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px; /* Espaçamento consistente */
}

.candidate-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    object-fit: cover;
    flex-shrink: 0; /* Não permite redimensionamento */
}

.candidate-info {
    flex: 1;
    min-width: 0; /* Permite truncation */
}

.candidate-position {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.candidate-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-count {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #495057;
    display: inline-block;
}

.vote-stats {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

/* Progress Bar Melhorada */
.vote-progress {
    margin-top: 8px;
}

.vote-progress .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.vote-progress .progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
    transition: width 0.6s ease;
    height: 100%;
}

/* ===== PROGRESS BARS POR STATUS DE ELEIÇÃO ===== */

/* CANDIDATOS ELEITOS - Progress bars vibrantes */
.candidate-item:nth-child(1) .progress-bar {
    background: linear-gradient(45deg, #ff6b35, #e55a2e) !important; /* 1º lugar */
}

.candidate-item:nth-child(2) .progress-bar {
    background: linear-gradient(45deg, #f7931e, #e6841a) !important; /* 2º lugar */
}

.candidate-item:nth-child(3) .progress-bar {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important; /* 3º lugar */
}

/* ESPECÍFICO PARA CONSELHO FISCAL (5 eleitos) */
#ulMembroConselhoFiscal .candidate-item:nth-child(4) .progress-bar {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important; /* 4º lugar */
}

#ulMembroConselhoFiscal .candidate-item:nth-child(5) .progress-bar {
    background: linear-gradient(45deg, #17a2b8, #138496) !important; /* 5º lugar */
}

/* ESPECÍFICO PARA DIACONOS (10 eleitos) - Progressão de cores quentes para frias */
#ulDiaconoDiaconos .candidate-item:nth-child(4) .progress-bar {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important; /* 4º lugar - verde */
}

#ulDiaconoDiaconos .candidate-item:nth-child(5) .progress-bar {
    background: linear-gradient(45deg, #17a2b8, #138496) !important; /* 5º lugar - azul turquesa */
}

#ulDiaconoDiaconos .candidate-item:nth-child(6) .progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3) !important; /* 6º lugar - azul */
}

#ulDiaconoDiaconos .candidate-item:nth-child(7) .progress-bar {
    background: linear-gradient(45deg, #6610f2, #520dc2) !important; /* 7º lugar - roxo */
}

#ulDiaconoDiaconos .candidate-item:nth-child(8) .progress-bar {
    background: linear-gradient(45deg, #e83e8c, #d91a72) !important; /* 8º lugar - rosa */
}

#ulDiaconoDiaconos .candidate-item:nth-child(9) .progress-bar {
    background: linear-gradient(45deg, #fd7e14, #e8650e) !important; /* 9º lugar - laranja escuro */
}

#ulDiaconoDiaconos .candidate-item:nth-child(10) .progress-bar {
    background: linear-gradient(45deg, #20c997, #1aa179) !important; /* 10º lugar - verde água */
}

/* ESPECÍFICO PARA DIACONISAS (7 eleitas) - Progressão de cores quentes para frias */
#ulDiaconisaDiaconos .candidate-item:nth-child(4) .progress-bar {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important; /* 4º lugar - verde */
}

#ulDiaconisaDiaconos .candidate-item:nth-child(5) .progress-bar {
    background: linear-gradient(45deg, #17a2b8, #138496) !important; /* 5º lugar - azul turquesa */
}

#ulDiaconisaDiaconos .candidate-item:nth-child(6) .progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3) !important; /* 6º lugar - azul */
}

#ulDiaconisaDiaconos .candidate-item:nth-child(7) .progress-bar {
    background: linear-gradient(45deg, #6610f2, #520dc2) !important; /* 7º lugar - roxo */
}

/* CANDIDATOS NÃO ELEITOS - Progress bars discretas */
/* Vice-Presidente, Secretário, Tesoureiro: 4º lugar em diante */
#ulVicePresidente .candidate-item:nth-child(n+4) .progress-bar,
#ul123Secretario .candidate-item:nth-child(n+4) .progress-bar,
#ul123Tesoureiro .candidate-item:nth-child(n+4) .progress-bar {
    background: linear-gradient(45deg, #ced4da, #adb5bd) !important; /* Cinza suave */
    opacity: 0.6;
}

/* Conselho Fiscal: 6º lugar em diante */
#ulMembroConselhoFiscal .candidate-item:nth-child(n+6) .progress-bar {
    background: linear-gradient(45deg, #ced4da, #adb5bd) !important; /* Cinza suave */
    opacity: 0.6;
}

/* DIACONOS: 11º lugar em diante (suplentes) */
#ulDiaconoDiaconos .candidate-item:nth-child(n+11) .progress-bar {
    background: linear-gradient(45deg, #ced4da, #adb5bd) !important; /* Cinza suave */
    opacity: 0.6;
}

/* DIACONISAS: 8º lugar em diante (suplentes) */
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8) .progress-bar {
    background: linear-gradient(45deg, #ced4da, #adb5bd) !important; /* Cinza suave */
    opacity: 0.6;
}

/* Presidente - progress bars com cores apropriadas */
#ulPresidente .progress-bar.bg-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important; /* Verde positivo para "a favor" */
}

#ulPresidente .progress-bar.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #adb5bd) !important; /* Cinza neutro para "não votaram" */
}

.vote-percentage {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== ESTILOS PARA CANDIDATOS NÃO ELEITOS ===== */

/* Candidatos não eleitos ficam mais discretos */
#ulVicePresidente .candidate-item:nth-child(n+4),
#ul123Secretario .candidate-item:nth-child(n+4),
#ul123Tesoureiro .candidate-item:nth-child(n+4) {
    opacity: 0.75;
    background-color: #f8f9fa;
}

#ulMembroConselhoFiscal .candidate-item:nth-child(n+6) {
    opacity: 0.75;
    background-color: #f8f9fa;
}

/* Candidatos diáconos não eleitos ficam mais discretos */
#ulDiaconoDiaconos .candidate-item:nth-child(n+11) {
    opacity: 0.75;
    background-color: #f8f9fa;
}

/* Candidatas diaconisas não eleitas ficam mais discretas */
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8) {
    opacity: 0.75;
    background-color: #f8f9fa;
}

/* Nomes dos candidatos não eleitos mais discretos */
#ulVicePresidente .candidate-item:nth-child(n+4) .candidate-name,
#ul123Secretario .candidate-item:nth-child(n+4) .candidate-name,
#ul123Tesoureiro .candidate-item:nth-child(n+4) .candidate-name {
    color: #6c757d;
    font-weight: 500;
}

#ulMembroConselhoFiscal .candidate-item:nth-child(n+6) .candidate-name {
    color: #6c757d;
    font-weight: 500;
}

/* Nomes dos diáconos não eleitos mais discretos */
#ulDiaconoDiaconos .candidate-item:nth-child(n+11) .candidate-name {
    color: #6c757d;
    font-weight: 500;
}

/* Nomes das diaconisas não eleitas mais discretos */
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8) .candidate-name {
    color: #6c757d;
    font-weight: 500;
}

/* Vote count discreto para não eleitos */
#ulVicePresidente .candidate-item:nth-child(n+4) .vote-count,
#ul123Secretario .candidate-item:nth-child(n+4) .vote-count,
#ul123Tesoureiro .candidate-item:nth-child(n+4) .vote-count {
    background: #e9ecef;
    color: #6c757d;
    opacity: 0.8;
}

#ulMembroConselhoFiscal .candidate-item:nth-child(n+6) .vote-count {
    background: #e9ecef;
    color: #6c757d;
    opacity: 0.8;
}

/* Vote count discreto para diáconos não eleitos */
#ulDiaconoDiaconos .candidate-item:nth-child(n+11) .vote-count {
    background: #e9ecef;
    color: #6c757d;
    opacity: 0.8;
}

/* Vote count discreto para diaconisas não eleitas */
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8) .vote-count {
    background: #e9ecef;
    color: #6c757d;
    opacity: 0.8;
}

/* Hover mais sutil para não eleitos */
#ulVicePresidente .candidate-item:nth-child(n+4):hover,
#ul123Secretario .candidate-item:nth-child(n+4):hover,
#ul123Tesoureiro .candidate-item:nth-child(n+4):hover,
#ulMembroConselhoFiscal .candidate-item:nth-child(n+6):hover,
#ulDiaconoDiaconos .candidate-item:nth-child(n+11):hover,
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8):hover {
    background-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Card do Presidente - Layout Vertical */
.president-card {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    border-left: 4px solid #ffc107 !important;
}

.president-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.president-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #ffc107;
    object-fit: cover;
    flex-shrink: 0;
}

.president-info h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.badge-president {
    background-color: #ffc107;
    color: #856404;
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 500;
}

.president-metrics {
    margin-top: 20px;
}

.metric-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #007bff;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-item strong {
    color: #495057;
    font-size: 0.95em;
    display: block;
    margin-bottom: 8px;
}

.metric-item .progress {
    height: 10px;
    margin-top: 8px;
    border-radius: 5px;
}

.metric-item .progress-bar.bg-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

.metric-item .progress-bar.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #adb5bd) !important;
}

/* Header Stats */
.panel-heading .d-flex {
    align-items: center;
}

.panel-heading small {
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: normal;
}

/* Status Alert */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px 20px;
}

/* Button Improvements */
#btnRefresh {
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9em;
}

#btnRefresh:hover {
    transform: scale(1.05);
}

#btnRefresh.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CORES POR STATUS DE ELEIÇÃO ===== */

/* CANDIDATOS ELEITOS - Cores vibrantes e destaque */
.candidate-item:nth-child(1) .candidate-position {
    color: #ff6b35; /* 1º lugar - laranja vibrante */
    font-weight: 700;
}

.candidate-item:nth-child(2) .candidate-position {
    color: #f7931e; /* 2º lugar - laranja dourado */
    font-weight: 700;
}

.candidate-item:nth-child(3) .candidate-position {
    color: #ffc107; /* 3º lugar - amarelo dourado */
    font-weight: 700;
}

/* ESPECÍFICO PARA CONSELHO FISCAL (5 eleitos) */
#ulMembroConselhoFiscal .candidate-item:nth-child(4) .candidate-position {
    color: #28a745; /* 4º lugar - verde positivo */
    font-weight: 600;
}

#ulMembroConselhoFiscal .candidate-item:nth-child(5) .candidate-position {
    color: #17a2b8; /* 5º lugar - azul turquesa */
    font-weight: 600;
}

/* ESPECÍFICO PARA DIACONOS (10 eleitos) - Cores das posições */
#ulDiaconoDiaconos .candidate-item:nth-child(4) .candidate-position {
    color: #28a745; /* 4º lugar - verde */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(5) .candidate-position {
    color: #17a2b8; /* 5º lugar - azul turquesa */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(6) .candidate-position {
    color: #007bff; /* 6º lugar - azul */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(7) .candidate-position {
    color: #6610f2; /* 7º lugar - roxo */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(8) .candidate-position {
    color: #e83e8c; /* 8º lugar - rosa */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(9) .candidate-position {
    color: #fd7e14; /* 9º lugar - laranja escuro */
    font-weight: 600;
}

#ulDiaconoDiaconos .candidate-item:nth-child(10) .candidate-position {
    color: #20c997; /* 10º lugar - verde água */
    font-weight: 600;
}

/* ESPECÍFICO PARA DIACONISAS (7 eleitas) - Cores das posições */
#ulDiaconisaDiaconos .candidate-item:nth-child(4) .candidate-position {
    color: #28a745; /* 4º lugar - verde */
    font-weight: 600;
}

#ulDiaconisaDiaconos .candidate-item:nth-child(5) .candidate-position {
    color: #17a2b8; /* 5º lugar - azul turquesa */
    font-weight: 600;
}

#ulDiaconisaDiaconos .candidate-item:nth-child(6) .candidate-position {
    color: #007bff; /* 6º lugar - azul */
    font-weight: 600;
}

#ulDiaconisaDiaconos .candidate-item:nth-child(7) .candidate-position {
    color: #6610f2; /* 7º lugar - roxo */
    font-weight: 600;
}

/* CANDIDATOS NÃO ELEITOS - Cores suaves e discretas */
/* Vice-Presidente, Secretário, Tesoureiro: 4º lugar em diante */
#ulVicePresidente .candidate-item:nth-child(n+4) .candidate-position,
#ul123Secretario .candidate-item:nth-child(n+4) .candidate-position,
#ul123Tesoureiro .candidate-item:nth-child(n+4) .candidate-position {
    color: #6c757d; /* Cinza discreto */
    font-weight: 500;
    opacity: 0.7;
}

/* Conselho Fiscal: 6º lugar em diante */
#ulMembroConselhoFiscal .candidate-item:nth-child(n+6) .candidate-position {
    color: #6c757d; /* Cinza discreto */
    font-weight: 500;
    opacity: 0.7;
}

/* Diáconos: 11º lugar em diante */
#ulDiaconoDiaconos .candidate-item:nth-child(n+11) .candidate-position {
    color: #6c757d; /* Cinza discreto */
    font-weight: 500;
    opacity: 0.7;
}

/* Diaconisas: 8º lugar em diante */
#ulDiaconisaDiaconos .candidate-item:nth-child(n+8) .candidate-position {
    color: #6c757d; /* Cinza discreto */
    font-weight: 500;
    opacity: 0.7;
}

/* Presidente - sempre destacado (candidato único) */
#ulPresidente .candidate-position {
    color: #6f42c1; /* Roxo presidencial - elegante e digno */
    font-weight: 700;
}

/* ========================================
   ESTILOS PARA TABELA COMPARATIVA
   ======================================== */

.tabela-comparativa {
    margin-top: 30px;
}

.tabela-comparativa .panel {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tabela-comparativa .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.tabela-comparativa .panel-heading h4 {
    margin: 0;
    font-weight: 600;
}

.tabela-comparativa .panel-heading small {
    opacity: 0.9;
    font-size: 13px;
}

.tabela-comparativa .table {
    margin-bottom: 0;
    font-size: 14px;
}

.tabela-comparativa .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 15px 10px;
    color: #495057;
}

.tabela-comparativa .table td {
    vertical-align: middle;
    padding: 12px 10px;
    border-color: #e9ecef;
}

.comparativo-cargo {
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.comparativo-lista {
    line-height: 1.6;
}

.comparativo-candidato {
    display: block;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comparativo-atual .comparativo-candidato {
    background-color: #e8f5e8;
    border-left: 3px solid #28a745;
    color: #155724;
}

.comparativo-todos .comparativo-candidato {
    background-color: #e3f2fd;
    border-left: 3px solid #007bff;
    color: #004085;
}

.comparativo-posicao {
    font-weight: bold;
    margin-right: 8px;
    font-size: 11px;
    color: #6c757d;
}

.comparativo-nome {
    font-weight: 500;
}

.comparativo-votos {
    font-size: 11px;
    color: #6c757d;
    margin-left: 5px;
}

/* INDICADORES DE IMPACTO */
.impacto-coluna {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.impacto-neutro {
    color: #28a745;
}

.impacto-medio {
    color: #ffc107;
}

.impacto-alto {
    color: #dc3545;
}

/* CANDIDATOS ELEITOS/NÃO ELEITOS */
.candidato-eleito {
    background-color: #e8f5e8 !important;
    border-left-color: #28a745 !important;
}

.candidato-nao-eleito {
    background-color: #f8f9fa !important;
    border-left-color: #6c757d !important;
    opacity: 0.7;
}

/* HOVER EFFECTS */
.comparativo-candidato:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .tabela-comparativa .table {
        font-size: 12px;
    }
    
    .tabela-comparativa .table th,
    .tabela-comparativa .table td {
        padding: 8px 6px;
    }
    
    .comparativo-candidato {
        font-size: 12px;
        margin-bottom: 4px;
        padding: 3px 6px;
    }
    
    .impacto-coluna {
        font-size: 14px;
    }
}

/* LOADING STATE */
.tabela-comparativa .loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.tabela-comparativa .loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TOOLTIP DE AJUDA */
.comparativo-help {
    cursor: help;
    margin-left: 5px;
    color: #6c757d;
}

.comparativo-help:hover {
    color: #495057;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .panel-title {
        font-size: 0.9em;
    }
    
    .candidate-avatar {
        width: 50px;
        height: 50px;
    }
    
    .president-avatar {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .registered-users-list li {
        padding: 14px 16px;
    }
    
    .candidate-avatar {
        width: 45px;
        height: 45px;
    }
    
    .president-avatar {
        width: 60px;
        height: 60px;
    }
    
    .panel-heading {
        padding: 12px 16px;
    }
    
    .panel-title {
        font-size: 0.85em;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.justify-content-between small {
        margin-top: 5px;
    }
    
    .candidate-header {
        gap: 12px;
    }
    
    .vote-stats {
        min-width: 70px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Ensure consistent spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Empty state */
.registered-users-list:empty::after {
    content: "Nenhum candidato encontrado";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}