/* Estilos para a página de Liderança */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* Cor de fundo ligeiramente diferente */
    margin: 0;
}
.cargo-section {
    margin-bottom: 1.5rem;
}
.cargo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    padding: 0 1rem;
}
.cargo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40; /* Cor de título mais escura */
}
.cargo-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.cargo-items-row {
    display: flex;
    gap: 1rem; /* Espaçamento entre cards */
    min-height: 200px; /* Altura mínima para acomodar o card */
    align-items: stretch;
}
.lider-item-link {
    display: block;
    text-decoration: none;
    color: #212529;
    border-radius: 0.5rem; /* Bordas mais suaves */
    min-width: 130px; /* Largura mínima do card */
    max-width: 150px; /* Largura máxima */
    width: 35vw; /* Responsividade básica */
    background: #ffffff; /* Fundo branco */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden; /* Garante que conteúdo não vaze */
}
.lider-item-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.lider-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem; /* Espaçamento interno */
    height: 100%; /* Ocupa toda a altura do link */
}
.lider-foto {
    width: 100%;
    aspect-ratio: 1 / 1; /* Foto quadrada */
    max-width: 100px; /* Tamanho máximo da foto */
    object-fit: cover;
    border-radius: 50%; /* Foto redonda */
    background: #e9ecef; /* Fundo para placeholder */
    margin-bottom: 0.7rem;
    border: 2px solid #dee2e6; /* Borda sutil */
}
.lider-info {
    text-align: center;
    flex-grow: 1; /* Ocupa espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
}
.lider-nome {
    font-size: 0.95rem;
    font-weight: 600; /* Nome em negrito */
    color: #343a40;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em; /* Garante espaço para 2 linhas */
}
.lider-cargo {
    font-size: 0.85rem;
    color: #6c757d; /* Cinza para o cargo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.no-results {
    color: #6c757d;
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
}
.search-card {
    background: #e9ecef; /* Fundo suave para busca */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lideranca-main-content {
    padding-top: 80px; /* Add top padding to prevent content from being hidden by the fixed header */
}

/* Estilos do Modal */
/* Estilos do Modal - Versão simplificada */
#lider-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

#lider-modal.visible {
    display: flex;
}

#lider-modal .modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Removido o fundo escuro */
    cursor: pointer;
    z-index: 9999;
}

#lider-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    padding: 25px;
    z-index: 10000; /* Maior que o backdrop */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Foto do modal */
#lider-modal .modal-foto {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: block;
    border: 3px solid #eee;
    background-color: #f8f9fa;
}

/* Botão de fechar */
#lider-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

#lider-modal .modal-close:hover {
    color: #333;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
#lider-modal .modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; font-size: 1.8rem;
    color: #aaa; cursor: pointer; line-height: 1;
    padding: 5px;
}
#lider-modal .modal-close:hover { color: #333; }
#lider-modal .modal-body { width: 100%; text-align: center; }
#lider-modal .modal-loading, #lider-modal .modal-error { padding: 30px; font-size: 1.1rem; color: #555; }
#lider-modal .modal-error { color: #dc3545; }
#lider-modal .modal-foto {
    width: 150px; height: 150px; /* Tamanho maior no modal */
    object-fit: cover; border-radius: 50%;
    margin: 0 auto 15px auto; /* Centraliza e mantém margem inferior */
    display: block; /* Necessário para margin: auto funcionar */
    border: 3px solid #eee;
    background-color: #f8f9fa;
}
#lider-modal .modal-nome {
    font-size: 1.5rem; font-weight: 700; color: #343a40;
    margin-bottom: 5px;
}
#lider-modal .modal-cargo {
    font-size: 1.1rem; color: #6c757d;
    margin-bottom: 15px;
}
#lider-modal .modal-descricao {
    font-size: 1rem; color: #495057;
    text-align: left; /* Descrição alinhada à esquerda */
    line-height: 1.6;
    margin-top: 10px;
    white-space: pre-wrap; /* Preserva quebras de linha e espaços */
    max-height: 40vh; /* Limita altura da descrição */
    overflow-y: auto; /* Scroll para descrição longa */
    padding-right: 10px; /* Espaço para scrollbar */
}
/* Estilo para scrollbar da descrição */
#lider-modal .modal-descricao::-webkit-scrollbar { width: 6px; }
#lider-modal .modal-descricao::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px;}
#lider-modal .modal-descricao::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px;}
#lider-modal .modal-descricao::-webkit-scrollbar-thumb:hover { background: #aaa; }
