/* ===== MEUGR ADMIN CSS - VERSÃO CONSOLIDADA E OTIMIZADA ===== */

/* ===== 1. VARIÁVEIS E RESET ===== */
:root {
    --sidebar-width: 250px;
    --primary-color: #6a1b9a;
    --secondary-color: #9c27b0;
    --light-color: #f3e5f5;
    --dark-color: #4a148c;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* ===== 2. LAYOUT PRINCIPAL ===== */
body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--gray-100);
    padding-top: 70px;
}

/* ===== 3. NAVBAR ===== */
.navbar-custom {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-custom .nav-link:hover {
    color: white;
}

/* ===== 4. SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid var(--gray-300);
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-wrapper {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin-top: 10px;
    padding-bottom: 60px;
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0;
    list-style: none;
    margin: 0;
}

.sidebar-nav .nav-item {
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-nav .nav-link.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

/* Submenu */
.sidebar-submenu {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-300);
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-submenu .nav-item {
    border-bottom: none;
}

.sidebar-submenu .nav-link {
    padding: 8px 20px 8px 50px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar-submenu .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar-submenu .nav-link.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
}

.sidebar-submenu .nav-link i {
    font-size: 14px;
    margin-right: 8px;
}

/* Dropdown indicator */
.dropdown-toggle-sidebar::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    margin-left: auto;
    transition: transform 0.3s;
}

.dropdown-toggle-sidebar[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ===== 5. MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: calc(100vh - 56px);
    transition: margin-left 0.3s;
}

/* ===== 6. CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 1rem;
    text-align: left;
    background: white;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}


.text-center{
    text-align: center;
    font-size: large;
}

.card-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem 1.25rem;
}

/* Card Variations */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: var(--transition);
}

.info-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gray-300);
}

/* ===== 7. STAT CARDS ===== */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, var(--gray-100) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
}

.stat-card-primary::before { background: var(--primary-color); }
.stat-card-success::before { background: var(--success-color); }
.stat-card-info::before { background: var(--info-color); }
.stat-card-warning::before { background: var(--warning-color); }
.stat-card-danger::before { background: var(--danger-color); }

.stat-icon {
    text-align: center;
    margin-bottom: 0.75rem;
}

.stat-icon i {
    font-size: 1.8rem;
    opacity: 0.8;
}

.stat-card-primary .stat-icon i { color: var(--primary-color); }
.stat-card-success .stat-icon i { color: var(--success-color); }
.stat-card-info .stat-icon i { color: var(--info-color); }
.stat-card-warning .stat-icon i { color: var(--warning-color); }
.stat-card-danger .stat-icon i { color: var(--danger-color); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-action {
    text-align: center;
}

.stat-action .btn {
    border-radius: var(--border-radius);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== 8. BUTTONS ===== */

.btn-group>.btn-group:not(:last-child)>.btn, .btn-group>.btn.dropdown-toggle-split:first-child, .btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: 25px;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
}

/* Contact Buttons */
.contact-btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    margin: 0.25rem;
    border: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.email-btn {
    background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
    color: white;
}

.email-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
    color: white;
}

.phone-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
}

.phone-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ===== 9. TABLES ===== */
.table {
    margin-bottom: 0;
}

.table th {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    background: var(--gray-100);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
}

.table td {
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: middle;
    padding: 0.75rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(106, 27, 154, 0.05);
    transform: scale(1.01);
    transition: var(--transition);
}

.table-responsive {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ===== 10. SISTEMA UNIFICADO DE IMAGENS ===== */

/* === RESET GERAL PARA TODAS AS IMAGENS === */
.card-body img:not(.preserve-size),
.table img:not(.preserve-size),
.modal-body img:not(.preserve-size),
.sidebar img:not(.preserve-size),
#organograma-container img:not(.preserve-size),
.organograma-container img:not(.preserve-size) {
    /* max-width: none !important; */
    max-height: none !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.rounded-circle {
    border: 2px !important;
    border-color: #fff !important;
    border-radius: 10% !important;
}

/* === FOTOS DE PERFIL (PESSOAS) - Aplicável a todos os contextos === */

/* Profile Picture - Página de detalhes/perfil */
.profile-picture,
.pastor-foto-profile,
.gestor-foto-profile,
.participante-foto-profile,
.aniversariante-foto-profile,
.lider-foto-profile,
.colider-foto-profile,
.anfitriao-foto-profile {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border: 3px solid var(--gray-300) !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

/* Secondary Pictures - Cards de relacionamento */
.secondary-picture,
.pastor-foto-secondary,
.gestor-foto-secondary,
.participante-foto-secondary,
.lider-foto-secondary,
.colider-foto-secondary,
.anfitriao-foto-secondary {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border: 2px solid var(--gray-300) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: block !important;
}

.aniversariante-card {
    justify-content: center;
    align-items: center;
}

/* Table Pictures - Listas e tabelas */
.table-picture,
.pastor-foto-table,
.gestor-foto-table,
.participante-foto-table,
.lider-foto-table,
.colider-foto-table,
.anfitriao-foto-table,
.table img[src*="participantes"],
.table img[src*="pastores"],
.table img[src*="gestores"],
.table img[src*="lideres"],
.table img[src*="colideres"],
.table img[src*="anfitrioes"],
.team-member .member-avatar img,
.member-avatar img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    display: block !important;
}

#numero-legendario-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

#numero-legendario-container label {
    font-weight: 600;
    color: #FF6B35;
    margin-bottom: 0.25rem;
}

#legendario_id {
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

#legendario_id:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(241, 90, 34, 0.25);
}

#legendario_id.is-valid {
    border-color: #28a745;
    background-color: #d4edda;
}

.legendario-badge {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.participant-icons {
    margin-left: 10px;
}

/* === FOTOS ESPECÍFICAS DO ORGANOGRAMA === */

/* Fotos padrão no organograma */
#organograma-container .pessoa-foto,
.organograma-container .pessoa-foto,
#organograma-container img.pessoa-foto,
.organograma-container img.pessoa-foto {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
}

/* Fotos pequenas do organograma */
#organograma-container .pessoa-foto-small,
.organograma-container .pessoa-foto-small,
#organograma-container img.pessoa-foto-small,
.organograma-container img.pessoa-foto-small {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    margin-right: 8px !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

/* === LOGOS DE IGREJAS === */

/* === LOGO LARGE PARA VIEWS DE DETALHES === */
.igreja-logo-large,
img.igreja-logo-large {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    border-radius: 10% !important;
    padding: 3px;
    border: 3px solid #007bff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.igreja-logo-large-hz,
img.igreja-logo-large-hz {
    width: 200px !important;
    height: 80px !important;
    min-width: 200px !important;
    min-height: 80px !important;
    max-width: 200px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    padding: 5px;
    border-radius: 10px !important;
    border: 1px solid #007bff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.igreja-logo-large-sm,
img.igreja-logo-large-sm {
    width: 80px !important;
    height: 30px !important;
    min-width: 80px !important;
    min-height: 30px !important;
    max-width: 80px !important;
    max-height: 30px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #007bff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Medium Logo */
.igreja-logo-medium,
.igreja-logo-card {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
    border: 2px solid var(--gray-300) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    background: white !important;
    padding: 8px !important;
    display: block !important;
}

/* Small Logo */
.igreja-logo-small,
.igreja-logo-table,
.table img[src*="igrejas"],
.table img[src*="logos"] {
    width: 200px !important;
    height: 80px !important;
    min-width: 150px !important;
    min-height: 60px !important;
    max-width: 200px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    background: white !important;
    padding: 4px !important;
    display: block !important;
}

/* Logo no organograma */
#organograma-container .igreja-logo,
.organograma-container .igreja-logo,
#organograma-container img.igreja-logo,
.organograma-container img.igreja-logo {
    width: 150px !important;
    height: 50px !important;
    min-width: 150px !important;
    min-height: 50px !important;
    max-width: 150px !important;
    max-height: 50px !important;
    border-radius: 5px !important;
    padding: 2px;
    object-fit: cover !important;
    border: 1px solid white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
}

/* === FOTOS DE RESIDÊNCIAS === */

/* Large Residence Photo */
.residencia-foto-large,
.residencia-foto-detail,
.card-body img[src*="residencias"]:not(.residencia-foto-small):not(.residencia-foto-medium),
.card-body img[src*="arquivos/residencias"]:not(.residencia-foto-small):not(.residencia-foto-medium) {
    width: 50% !important;
    height: 400px !important;
    min-width: 100% !important;
    min-height: 250px !important;
    max-width: 100% !important;
    max-height: 400px !important;
    object-fit: contain !important;
    border: 3px solid var(--gray-300) !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Medium Residence Photo */
.residencia-foto-medium,
.residencia-foto-card {
    width: 200px !important;
    height: 150px !important;
    min-width: 200px !important;
    min-height: 150px !important;
    max-width: 200px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border: 2px solid var(--gray-300) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: block !important;
}

/* Small Residence Photo */
.residencia-foto-small,
.residencia-foto-table,
.table img[src*="residencias"] {
    width: 80px !important;
    height: 60px !important;
    min-width: 80px !important;
    min-height: 60px !important;
    max-width: 80px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    display: block !important;
}

.igreja-logo-img {
    width: 200px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.igreja-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
}

/* === PLACEHOLDERS UNIFICADOS === */

/* Profile Placeholders */
.profile-placeholder,
.pastor-placeholder,
.gestor-placeholder,
.participante-placeholder,
.lider-placeholder,
.colider-placeholder,
.anfitriao-placeholder,
#organograma-container .pessoa-foto-placeholder,
.organograma-container .pessoa-foto-placeholder {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 15px !important;
    background: var(--gray-100) !important;
    border: 3px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 3rem !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
}

/* Placeholder específico do organograma - tamanho padrão */
#organograma-container .pessoa-foto-placeholder:not(.pessoa-foto-placeholder-small) {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    margin: 0 auto 12px auto !important;
    font-size: 20px !important;
    color: white !important;
    border: 3px solid #fff !important;
}

/* Placeholder pequeno do organograma */
#organograma-container .pessoa-foto-placeholder-small,
.organograma-container .pessoa-foto-placeholder-small {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    font-size: 14px !important;
    color: white !important;
    border: 2px solid #fff !important;
    vertical-align: middle !important;
}

/* Secondary Placeholders */
.secondary-placeholder {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 12px !important;
    background: var(--gray-100) !important;
    border: 2px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 2rem !important;
    flex-shrink: 0 !important;
}

/* Table Placeholders */
.table-placeholder {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 10px !important;
    background: var(--gray-100) !important;
    border: 1px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
}

/* Igreja Logo Placeholders */
.igreja-logo-placeholder-large,
#organograma-container .igreja-logo-placeholder,
.organograma-container .igreja-logo-placeholder {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    background: var(--primary-color) !important;
    border: 3px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 4rem !important;
    flex-shrink: 0 !important;
}

/* Placeholder específico do organograma - logo */
#organograma-container .igreja-logo-placeholder:not(.igreja-logo-placeholder-large) {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 4px solid white !important;
    margin: 0 auto 20px auto !important;
    font-size: 30px !important;
}

.igreja-logo-placeholder-medium {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    background: var(--primary-color) !important;
    border: 2px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 2.5rem !important;
    flex-shrink: 0 !important;
}

.igreja-logo-placeholder-small {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: var(--primary-color) !important;
    border: 1px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* Residência Placeholders */
.residencia-placeholder-large,
.residencia-placeholder-detail {
    width: 100% !important;
    height: 400px !important;
    min-width: 100% !important;
    min-height: 250px !important;
    max-width: 100% !important;
    max-height: 400px !important;
    border-radius: 15px !important;
    background: var(--gray-100) !important;
    border: 3px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 4rem !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
}

.residencia-placeholder-medium {
    width: 200px !important;
    height: 150px !important;
    min-width: 200px !important;
    min-height: 150px !important;
    max-width: 200px !important;
    max-height: 150px !important;
    border-radius: 12px !important;
    background: var(--gray-100) !important;
    border: 2px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 3rem !important;
    flex-shrink: 0 !important;
}

.residencia-placeholder-small {
    width: 80px !important;
    height: 60px !important;
    min-width: 80px !important;
    min-height: 60px !important;
    max-width: 80px !important;
    max-height: 60px !important;
    border-radius: 8px !important;
    background: var(--gray-100) !important;
    border: 1px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-500) !important;
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* === CORES POR TIPO - ORGANOGRAMA === */
#organograma-container .pastor .pessoa-foto-placeholder,
.organograma-container .pastor .pessoa-foto-placeholder { 
    background: #e74c3c !important; 
}

#organograma-container .gestor .pessoa-foto-placeholder,
.organograma-container .gestor .pessoa-foto-placeholder { 
    background: #3498db !important; 
}

#organograma-container .lider .pessoa-foto-placeholder,
.organograma-container .lider .pessoa-foto-placeholder { 
    background: #9b59b6 !important; 
}

#organograma-container .colider .pessoa-foto-placeholder,
.organograma-container .colider .pessoa-foto-placeholder { 
    background: #1abc9c !important; 
}

#organograma-container .anfitriao .pessoa-foto-placeholder,
.organograma-container .anfitriao .pessoa-foto-placeholder { 
    background: #2ecc71 !important; 
}

#organograma-container .participante .pessoa-foto-placeholder,
.organograma-container .participante .pessoa-foto-placeholder { 
    background: #95a5a6 !important; 
}

/* ===== 11. BADGES ===== */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: 600;
}

.type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow);
    color: #ffffff;
}

.badge-categoria {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.categoria-homens { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.categoria-mulheres { background: linear-gradient(135deg, #e83e8c 0%, #c2185b 100%); }
.categoria-casais { background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%); }
.categoria-jovens { background: linear-gradient(135deg, #20c997 0%, var(--info-color) 100%); }
.categoria-adolescentes { background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%); }
.categoria-kids { background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%); }

/* ===== 12. FORMS ===== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
}

.form-select {
    border-radius: var(--border-radius);
}

.filter-form,
.filters-card {
    background: linear-gradient(135deg, #fff 0%, var(--gray-100) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* ===== 13. ALERTS & NOTIFICATIONS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification-alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    animation: slideInRight 0.3s ease-out;
}

/* ===== 14. PROGRESS & INDICATORS ===== */
.progress {
    height: 20px;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.frequency-progress {
    height: 25px;
    border-radius: var(--border-radius-lg);
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-ativo { background-color: var(--success-color); }
.status-inativo { background-color: var(--gray-500); }
.status-concluido { background-color: var(--success-color); }
.status-em_andamento { background-color: var(--info-color); }
.status-abandonou { background-color: var(--danger-color); }

/* ===== 15. SPECIAL LAYOUTS ===== */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.profile-header .card-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Força máxima para imagens no profile header */
.profile-header .card-body .profile-picture,
.profile-header .card-body img.profile-picture,
.profile-header .card-body .col-md-auto img,
.profile-header .profile-picture,
.profile-header img.profile-picture {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border: 3px solid var(--gray-300) !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

.profile-header .card-body .col-md-auto {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Special Cards */
.vinculo-card,
.conjuge-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
    color: white !important;
}

.vinculo-card *,
.conjuge-card * {
    color: white !important;
}

.conjuge-picture,
.conjuge-foto,
.vinculo-card img,
.conjuge-card img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 auto !important;
}

.residencia-card {
    background: linear-gradient(135deg, var(--info-color) 0%, #20c997 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(23, 162, 184, 0.3);
}

.residencia-card * {
    color: white !important;
}


/* ===== 21. PASTOR SPECIFIC STYLES ===== */

/* Pastor Hero Section */
.pastor-hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.pastor-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(106, 27, 154, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.pastor-hero-content {
    position: relative;
    z-index: 1;
}

/* Pastor Photo Sizes */
.pastor-foto-lg {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 15px !important;
    object-fit: cover !important;
    border: 3px solid var(--gray-300) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.pastor-placeholder {
    background: var(--gray-100) !important;
    border: 3px solid var(--gray-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    color: var(--gray-500) !important;
    border-radius: 15px !important;
    width: 150px !important;
    height: 150px !important;
}


/* Igreja Hero */
.igreja-hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    justify-items: center;
}

/* Team Cards */
.team-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    background: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.team-member {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.team-member:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-200);
}

.member-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.member-contact {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* ===== 16. ORGANOGRAMA ESPECÍFICO ===== */

/* Container do organograma */
#organograma-container,
.organograma-container {
    padding: 30px 20px !important;
    background: #f8f9fa !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Cards hierárquicos */
#organograma-container .pessoa-card,
#organograma-container .card-hierarquico,
.organograma-container .pessoa-card,
.organograma-container .card-hierarquico {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    padding: 20px !important;
    margin: 10px auto !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    position: relative !important;
    min-height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: calc(100% - 20px) !important;
    min-width: 250px !important;
    max-width: 350px !important;
    box-sizing: border-box !important;
}

#organograma-container .pessoa-card:hover,
#organograma-container .card-hierarquico:hover,
.organograma-container .pessoa-card:hover,
.organograma-container .card-hierarquico:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Níveis hierárquicos */
#organograma-container .nivel-hierarquia,
.organograma-container .nivel-hierarquia {
    margin-bottom: 50px !important;
    width: 100% !important;
    position: relative !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Conectores */
#organograma-container .conector-vertical,
.organograma-container .conector-vertical {
    display: flex !important;
    justify-content: center !important;
    margin: 15px 0 !important;
    width: 100% !important;
    position: relative !important;
}

#organograma-container .conector-vertical::before,
.organograma-container .conector-vertical::before {
    content: '' !important;
    width: 2px !important;
    height: 30px !important;
    background: linear-gradient(to bottom, #bdc3c7, #2c3e50) !important;
    border-radius: 2px !important;
    position: relative !important;
}

/* Cards específicos por tipo */
#organograma-container .card-pastor,
.organograma-container .card-pastor {
    border-left: 4px solid #e74c3c !important;
}

#organograma-container .card-gestor,
.organograma-container .card-gestor {
    border-left: 4px solid #3498db !important;
}

#organograma-container .card-grupo,
.organograma-container .card-grupo {
    border-left: 4px solid #2ecc71 !important;
}

#organograma-container .card-igreja,
.organograma-container .card-igreja {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
}

#organograma-container .card-igreja *,
.organograma-container .card-igreja * {
    color: white !important;
}

/* Info pessoa */
#organograma-container .info-pessoa,
.organograma-container .info-pessoa {
    text-align: center !important;
}

#organograma-container .info-pessoa h6,
.organograma-container .info-pessoa h6 {
    margin: 8px 0 4px 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Estatísticas */
#organograma-container .stats-grupo,
.organograma-container .stats-grupo {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

#organograma-container .stat-item,
.organograma-container .stat-item {
    text-align: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

#organograma-container .stat-number,
.organograma-container .stat-number {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

#organograma-container .stat-label,
.organograma-container .stat-label {
    font-size: 0.7rem !important;
    color: #7f8c8d !important;
    text-transform: uppercase !important;
}

/* Badges no organograma */
#organograma-container .badge-funcao,
.organograma-container .badge-funcao {
    font-size: 0.7rem !important;
    margin: 4px 0 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
}

#organograma-container .telefone,
.organograma-container .telefone {
    font-size: 0.75rem !important;
    color: #6c757d !important;
    margin-top: 4px !important;
}

/* ===== 17. UTILITIES ===== */
.page-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-white { color: #fff8e1 !important; }

.text-xs { font-size: 0.7rem; }
.text-gray-300 { color: var(--gray-300) !important; }
.text-gray-800 { color: var(--gray-800) !important; }

.border-left-primary { border-left: 4px solid var(--primary-color) !important; }
.border-left-success { border-left: 4px solid var(--success-color) !important; }
.border-left-info { border-left: 4px solid var(--info-color) !important; }
.border-left-warning { border-left: 4px solid var(--warning-color) !important; }

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 15px;
    color: var(--gray-600);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Force preserve size when needed */
.preserve-size {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Perfect circle guarantee */
.force-circle {
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
}

/* Custom border colors */
.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-success-custom {
    border-color: var(--success-color) !important;
}

.border-warning-custom {
    border-color: var(--warning-color) !important;
}

/* Loading states */
.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Ensure proper spacing */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

/* Info Cards Layout */
.info-card .row.g-0 {
    min-height: 300px;
}

.info-card .col-md-4 {
    background-color: rgba(248, 249, 250, 0.8) !important;
    border-right: 1px solid var(--gray-200) !important;
}

.info-card .col-md-8 {
    background-color: white !important;
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.info-value {
    color: var(--gray-800);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.info-value strong {
    color: var(--primary-color);
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
    color: var(--dark-color);
}

/* WhatsApp Integration */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366;
    transition: var(--transition);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.whatsapp-link:hover {
    color: #128C7E;
    background-color: rgba(37, 211, 102, 0.1);
    text-decoration: none;
    transform: scale(1.05);
}

.whatsapp-icon {
    margin-right: 4px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

.whatsapp-link:hover .whatsapp-icon {
    animation: none;
    transform: scale(1.2);
}

.copy-phone-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: var(--transition);
    font-size: 11px;
}

.copy-phone-btn:hover {
    color: var(--gray-700);
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.phone-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 1px;
}

.tel-link {
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.tel-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Frequency cards */
.frequency-card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.frequency-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.frequency-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.frequency-card .card-header * {
    color: white !important;
}

/* Frequency stats */
.frequency-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.percentage-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.percentage-excellent {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
}

.percentage-good {
    background: linear-gradient(135deg, var(--info-color) 0%, #20c997 100%);
    color: white;
}

.percentage-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
    color: var(--gray-900);
}

.percentage-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e74c3c 100%);
    color: white;
}

/* Health indicators */
.health-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
}

.health-excellent { background: linear-gradient(135deg, var(--success-color), #20c997); }
.health-good { background: linear-gradient(135deg, var(--info-color), #6f42c1); }
.health-regular { background: linear-gradient(135deg, var(--warning-color), #fd7e14); }
.health-critical { background: linear-gradient(135deg, var(--danger-color), #e83e8c); }

/* Trend indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-up { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); }
.trend-down { background-color: rgba(220, 53, 69, 0.1); color: var(--danger-color); }
.trend-stable { background-color: rgba(108, 117, 125, 0.1); color: var(--gray-600); }

/* Metric cards */
.metric-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.metric-card.success { border-left-color: var(--success-color); }
.metric-card.warning { border-left-color: var(--warning-color); }
.metric-card.danger { border-left-color: var(--danger-color); }
.metric-card.info { border-left-color: var(--info-color); }
.metric-card.primary { border-left-color: var(--primary-color); }

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.positive { color: var(--success-color); }
.metric-change.negative { color: var(--danger-color); }
.metric-change.neutral { color: var(--gray-600); }

/* ===== 18. ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-pulse { animation: pulse 1.5s infinite; }
.slide-in { animation: fadeInUp 0.6s ease; }

/* ===== 19. RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    /* Organograma */
    #organograma-container .pessoa-card,
    #organograma-container .card-hierarquico,
    .organograma-container .pessoa-card,
    .organograma-container .card-hierarquico {
        min-width: 280px !important;
        max-width: 320px !important;
        min-height: 140px !important;
        padding: 16px !important;
    }
    
    #organograma-container .col-md-4,
    .organograma-container .col-md-4 { 
        width: 50% !important; 
        min-width: 180px !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        transition: margin-left 0.3s;
    }

    .sidebar.show {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .stat-number {
        font-size: 2rem;
    }

    .notifications-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .profile-header .card-body {
        padding: 1.5rem;
        text-align: center;
    }

    .profile-header .card-body .profile-picture,
    .profile-header .card-body img.profile-picture,
    .profile-header .card-body .col-md-auto img,
    .profile-header .profile-picture,
    .profile-header img.profile-picture {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        border-radius: 12px !important;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .member-avatar {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .member-avatar img,
    .table-picture,
    .participante-foto-table {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        border-radius: 8px !important;
    }

    /* Responsividade para imagens */
    .profile-picture,
    .pastor-foto-profile,
    .gestor-foto-profile,
    .participante-foto-profile,
    .lider-foto-profile,
    .colider-foto-profile,
    .anfitriao-foto-profile {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        border-radius: 12px !important;
    }

    
    .igreja-logo-detail {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
        min-height: 150px !important;
        max-width: 150px !important;
        max-height: 150px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .residencia-foto-large,
    .residencia-foto-detail,
    .card-body img[src*="residencias"],
    .card-body img[src*="arquivos/residencias"] {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        border-radius: 12px !important;
    }

    .info-card .col-md-4,
    .info-card .col-md-8 {
        background-color: white !important;
        border: none !important;
    }

    .info-card .col-md-4 {
        border-bottom: 1px solid var(--gray-200) !important;
    }

    .info-item {
        padding: 0.5rem 0;
    }

    .info-label,
    .info-value {
        min-height: 35px;
        font-size: 0.85rem;
    }

    .whatsapp-link {
        font-size: 0.8rem;
        padding: 1px 4px;
    }

    .frequency-stats {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Organograma responsive */
    #organograma-container,
    .organograma-container {
        padding: 15px 10px !important;
    }

    #organograma-container .col-md-4,
    #organograma-container .col-md-6,
    #organograma-container .col-lg-6,
    .organograma-container .col-md-4,
    .organograma-container .col-md-6,
    .organograma-container .col-lg-6 {
        width: 100% !important;
        min-width: 100% !important;
    }

    #organograma-container .pessoa-card,
    #organograma-container .card-hierarquico,
    .organograma-container .pessoa-card,
    .organograma-container .card-hierarquico {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .team-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .member-avatar {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .member-avatar img,
    .table-picture,
    .participante-foto-table {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border-radius: 6px !important;
    }

    /* Responsividade para imagens pequenas */
    .profile-picture,
    .pastor-foto-profile,
    .gestor-foto-profile,
    .participante-foto-profile,
    .lider-foto-profile,
    .colider-foto-profile,
    .anfitriao-foto-profile {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        border-radius: 10px !important;
    }

    .profile-header .card-body .profile-picture,
    .profile-header .card-body img.profile-picture,
    .profile-header .card-body .col-md-auto img,
    .profile-header .profile-picture,
    .profile-header img.profile-picture {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        border-radius: 10px !important;
    }

    
    .igreja-logo-detail {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    .residencia-foto-large,
    .residencia-foto-detail,
    .card-body img[src*="residencias"],
    .card-body img[src*="arquivos/residencias"] {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        border-radius: 10px !important;
    }
}

/* ===== 20. PRINT STYLES ===== */
@media print {
    .no-print,
    .btn,
    .action-buttons,
    .floating-actions,
    .sidebar,
    .navbar-custom,
    #organograma-container .btn-expandir,
    #organograma-container .pessoa-expandir {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }

    .stat-card {
        border: 1px solid #ddd !important;
        background: white !important;
        color: #333 !important;
        box-shadow: none !important;
    }

    body {
        font-size: 12px;
        line-height: 1.4;
        background: white !important;
        padding-top: 0 !important;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 1rem;
        color: #333 !important;
    }

    .table {
        font-size: 10px;
    }

    /* Print específico para organograma */
    #organograma-container,
    .organograma-container {
        background: white !important;
        padding: 20px !important;
    }

    #organograma-container .pessoa-card,
    #organograma-container .card-hierarquico,
    .organograma-container .pessoa-card,
    .organograma-container .card-hierarquico {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin: 5px !important;
        page-break-inside: avoid !important;
    }

    #organograma-container .pessoa-foto,
    #organograma-container .pessoa-foto-placeholder {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    #organograma-container .igreja-logo,
    #organograma-container .igreja-logo-placeholder {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: cover !important;
    }

    .profile-picture,
    .secondary-picture,
    .table-picture,
    .igreja-logo-medium,
    .igreja-logo-small,
    .residencia-foto-large,
    .residencia-foto-medium,
    .residencia-foto-small {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
    }

    .profile-picture {
        width: 80px !important;
        height: 80px !important;
    }

    .secondary-picture {
        width: 60px !important;
        height: 60px !important;
    }

    .table-picture {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ===== 21. ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .slide-in,
    .stat-card,
    .team-member,
    .info-card,
    .pulse {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states for accessibility */
.stat-card:focus,
.btn:focus,
.team-member:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
}

/* ===== 22. UTILITY CLASSES FINAIS ===== */

/* Hide legacy alerts when notification system is active */
.legacy-alerts {
    display: none;
}

/* Quick fixes for common issues */
.overflow-hidden {
    overflow: hidden !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Bootstrap-like utilities para organograma */
#organograma-container .d-flex,
.organograma-container .d-flex {
    display: flex !important;
}

#organograma-container .align-items-center,
.organograma-container .align-items-center {
    align-items: center !important;
}

#organograma-container .justify-content-center,
.organograma-container .justify-content-center {
    justify-content: center !important;
}

#organograma-container .text-center,
.organograma-container .text-center {
    text-align: center !important;
}

#organograma-container .mb-3,
.organograma-container .mb-3 {
    margin-bottom: 1rem !important;
}

#organograma-container .mb-4,
.organograma-container .mb-4 {
    margin-bottom: 1.5rem !important;
}

#organograma-container .mb-5,
.organograma-container .mb-5 {
    margin-bottom: 3rem !important;
}

#organograma-container .fw-bold,
.organograma-container .fw-bold {
    font-weight: 700 !important;
}

/* Cores Bootstrap para organograma */
#organograma-container .bg-primary,
.organograma-container .bg-primary { 
    background-color: #007bff !important; 
}

#organograma-container .bg-success,
.organograma-container .bg-success { 
    background-color: #28a745 !important; 
}

#organograma-container .bg-info,
.organograma-container .bg-info { 
    background-color: #17a2b8 !important; 
}

#organograma-container .bg-warning,
.organograma-container .bg-warning { 
    background-color: #ffc107 !important; 
}

#organograma-container .bg-secondary,
.organograma-container .bg-secondary { 
    background-color: #6c757d !important; 
}

#organograma-container .bg-danger,
.organograma-container .bg-danger { 
    background-color: #dc3545 !important; 
}

#organograma-container .text-white,
.organograma-container .text-white { 
    color: #fff !important; 
}

/* Layout do organograma - força grid system */
#organograma-container .row,
.organograma-container .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#organograma-container .row > *,
.organograma-container .row > * {
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

#organograma-container .col-md-4,
.organograma-container .col-md-4 { 
    flex: 0 0 auto !important; 
    width: 33.33333333% !important; 
    min-width: 300px !important;
    box-sizing: border-box !important;
}

#organograma-container .col-md-6,
#organograma-container .col-lg-6,
.organograma-container .col-md-6,
.organograma-container .col-lg-6 { 
    flex: 0 0 auto !important; 
    width: 50% !important; 
    min-width: 300px !important;
    box-sizing: border-box !important;
}

/* ===== FIM DO ARQUIVO CONSOLIDADO ===== */

/* ===== AVATARES DASHBOARD - SOBREPOSIÇÃO HORIZONTAL ===== */

/* Container principal dos avatares do dashboard */
.dashboard-avatars-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Reset específico para avatares do dashboard */
.dashboard-avatar-img,
.dashboard-avatar-placeholder,
.dashboard-avatar-counter {
    /* Reset de todas as regras do sistema unificado de imagens */
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    
    /* Força tamanhos específicos */
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    
    /* Posicionamento para sobreposição */
    position: relative !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
    
    /* Bordas e cantos */
    border: 2px solid white !important;
    border-radius: 50% !important;
    
    /* Sombra sutil para separação */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Imagens específicas dos avatares */
.dashboard-avatar-img {
    object-fit: cover !important;
}

/* Placeholders específicos dos avatares */
.dashboard-avatar-placeholder {
    align-items: center !important;
    justify-content: center !important;
    background-color: #6c757d !important;
}

/* Contador de avatares extras */
.dashboard-avatar-counter {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}

/* Força margin negativa para sobreposição */
.dashboard-avatars-container .dashboard-avatar-img:not(:first-child),
.dashboard-avatars-container .dashboard-avatar-placeholder:not(:first-child),
.dashboard-avatars-container .dashboard-avatar-counter {
    margin-left: -10px !important;
}

/* Primeiro avatar sem margin */
.dashboard-avatars-container .dashboard-avatar-img:first-child,
.dashboard-avatars-container .dashboard-avatar-placeholder:first-child {
    margin-left: 0 !important;
}

/* Z-index específico para ordem correta */
.dashboard-avatars-container .dashboard-avatar-img:nth-child(1),
.dashboard-avatars-container .dashboard-avatar-placeholder:nth-child(1) {
    z-index: 10 !important;
}

.dashboard-avatars-container .dashboard-avatar-img:nth-child(2),
.dashboard-avatars-container .dashboard-avatar-placeholder:nth-child(2) {
    z-index: 9 !important;
}

.dashboard-avatars-container .dashboard-avatar-img:nth-child(3),
.dashboard-avatars-container .dashboard-avatar-placeholder:nth-child(3) {
    z-index: 8 !important;
}

/* Hover effects para avatares do dashboard */
.dashboard-avatar-img:hover,
.dashboard-avatar-placeholder:hover {
    transform: scale(1.1) !important;
    z-index: 20 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Responsividade para avatares do dashboard */
@media (max-width: 768px) {
    .dashboard-avatar-img,
    .dashboard-avatar-placeholder,
    .dashboard-avatar-counter {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        font-size: 0.6rem !important;
    }
    
    .dashboard-avatars-container .dashboard-avatar-img:not(:first-child),
    .dashboard-avatars-container .dashboard-avatar-placeholder:not(:first-child),
    .dashboard-avatars-container .dashboard-avatar-counter {
        margin-left: -8px !important;
    }
}

@media (max-width: 576px) {
    .dashboard-avatar-img,
    .dashboard-avatar-placeholder,
    .dashboard-avatar-counter {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        font-size: 0.55rem !important;
    }
    
    .dashboard-avatars-container .dashboard-avatar-img:not(:first-child),
    .dashboard-avatars-container .dashboard-avatar-placeholder:not(:first-child),
    .dashboard-avatars-container .dashboard-avatar-counter {
        margin-left: -6px !important;
    }
}

/* ===== CORREÇÃO VÍNCULO FAMILIAR - ALINHAMENTO À ESQUERDA ===== */

/* Força alinhamento à esquerda para o card de vínculo familiar */
.vinculo-card .card-title,
.conjuge-card .card-title {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Reset do text-align para todos os elementos dentro do card */
.vinculo-card .card-body,
.conjuge-card .card-body {
    text-align: left !important;
}

/* CORREÇÃO ESPECÍFICA: Remove centralização das colunas */
.vinculo-card .col-md-3,
.vinculo-card .col-md-6,
.vinculo-card .col-md-3:last-child,
.conjuge-card .col-md-3,
.conjuge-card .col-md-6,
.conjuge-card .col-md-3:last-child {
    text-align: left !important;
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* CORREÇÃO PRINCIPAL: Limita o tamanho do container da foto */
.vinculo-card .vinculo-foto-container,
.conjuge-card .vinculo-foto-container {
    text-align: left !important;
    display: inline-block !important;
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    height: 100px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* FORÇA O CONTAINER DE INFORMAÇÕES À ESQUERDA */
.vinculo-card .vinculo-info-container,
.conjuge-card .vinculo-info-container {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* FORÇA TODOS OS ELEMENTOS DE TEXTO À ESQUERDA */
.vinculo-card .vinculo-info-container h6,
.vinculo-card .vinculo-info-container p,
.vinculo-card .vinculo-info-container div,
.conjuge-card .vinculo-info-container h6,
.conjuge-card .vinculo-info-container p,
.conjuge-card .vinculo-info-container div {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

/* Imagem do cônjuge com tamanho fixo */
.vinculo-card .conjuge-picture,
.vinculo-card .secondary-placeholder,
.conjuge-card .conjuge-picture,
.conjuge-card .secondary-placeholder {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
    flex-shrink: 0 !important;
}

/* AJUSTA O LAYOUT DA ROW PARA COMPORTAMENTO FLEX CONTROLADO */
.vinculo-card .row,
.conjuge-card .row {
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex-wrap: nowrap !important;
}

/* AJUSTA AS COLUNAS PARA FLEXBOX CONTROLADO */
.vinculo-card .col-md-3:first-child,
.conjuge-card .col-md-3:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100px !important;
    margin-right: 20px !important;
}

.vinculo-card .col-md-6,
.conjuge-card .col-md-6 {
    flex: 1 !important;
    width: auto !important;
    text-align: left !important;
}

.vinculo-card .col-md-3:last-child,
.conjuge-card .col-md-3:last-child {
    flex: 0 0 auto !important;
    width: auto !important;
    text-align: left !important;
}

/* Container de telefone alinhado à esquerda */
.vinculo-card .phone-container,
.vinculo-card .vinculo-phone,
.conjuge-card .phone-container,
.conjuge-card .vinculo-phone {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    margin-left: 0 !important;
    width: 100% !important;
}

/* Links e botões alinhados à esquerda */
.vinculo-card .whatsapp-link,
.vinculo-card .copy-phone-btn,
.conjuge-card .whatsapp-link,
.conjuge-card .copy-phone-btn {
    text-align: left !important;
    align-self: flex-start !important;
}

/* Botão "Ver Perfil" alinhado à esquerda */
.vinculo-card .vinculo-action-container,
.conjuge-card .vinculo-action-container {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: auto !important;
}

.vinculo-card .btn,
.conjuge-card .btn {
    margin: 0 !important;
    align-self: flex-start !important;
}

/* Override específico para text-center do admin.css */
.vinculo-card .text-center,
.conjuge-card .text-center {
    text-align: left !important;
}

/* Container wrapper para garantir alinhamento */
.vinculo-card .text-start,
.conjuge-card .text-start {
    text-align: left !important;
    display: block !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* OVERRIDE FINAL - Remove qualquer centralização residual */
.vinculo-card *,
.conjuge-card * {
    text-align: left !important;
}

/* Exceções para ícones que devem manter centralização própria */
.vinculo-card .fas,
.vinculo-card .fab,
.conjuge-card .fas,
.conjuge-card .fab {
    text-align: center !important;
}

/* Responsividade mantendo alinhamento à esquerda */
@media (max-width: 768px) {
    .vinculo-card .row,
    .conjuge-card .row {
        flex-direction: column !important;
    }
    
    .vinculo-card .col-md-3,
    .vinculo-card .col-md-6,
    .conjuge-card .col-md-3,
    .conjuge-card .col-md-6 {
        text-align: left !important;
        margin-bottom: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .vinculo-card .vinculo-foto-container,
    .conjuge-card .vinculo-foto-container {
        width: 80px !important;
        max-width: 80px !important;
        height: 80px !important;
    }
    
    .vinculo-card .conjuge-picture,
    .vinculo-card .secondary-placeholder,
    .conjuge-card .conjuge-picture,
    .conjuge-card .secondary-placeholder {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }
    
    .vinculo-card .vinculo-info-container,
    .conjuge-card .vinculo-info-container {
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    .vinculo-card .phone-container,
    .conjuge-card .phone-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* ===== ESTATÍSTICAS APRIMORADAS - FREQUÊNCIAS ===== */

/* Stats Card Principal */
.stats-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    background: linear-gradient(135deg, #fff 0%, var(--gray-100) 100%);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stats-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.25rem 1.5rem;
    border: none;
}

.stats-card .card-header * {
    color: white !important;
}

/* Número principal de grupos */
.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Grid de estatísticas secundárias */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
}

/* Item individual de estatística */
.stats-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.stats-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Bordas coloridas específicas */
.stats-item:nth-child(1) {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(40, 167, 69, 0.08) 100%);
}

.stats-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color) 0%, #20c997 100%);
    z-index: 1;
}

.stats-item:nth-child(2) {
    border-color: var(--info-color);
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.02) 0%, rgba(23, 162, 184, 0.08) 100%);
}

.stats-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--info-color) 0%, #6f42c1 100%);
    z-index: 1;
}

/* Números das estatísticas */
.stats-item .h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stats-item .text-success {
    color: var(--success-color) !important;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

.stats-item .text-info {
    color: var(--info-color) !important;
    text-shadow: 0 1px 2px rgba(23, 162, 184, 0.2);
}

/* Labels das estatísticas */
.stats-item small {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    position: relative;
    z-index: 2;
}

/* Ícones opcionais para as estatísticas */
.stats-item .stats-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.3;
    z-index: 1;
}

.stats-item:nth-child(1) .stats-icon {
    color: var(--success-color);
}

.stats-item:nth-child(2) .stats-icon {
    color: var(--info-color);
}

/* Botões de ação */
.stats-card .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card .btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
}

.stats-card .btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, var(--success-color) 100%);
    color: white;
}

.stats-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.stats-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.stats-card .btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: white;
}

.stats-card .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    color: white;
}

/* Espaçamento dos botões */
.stats-card .d-grid {
    gap: 0.75rem !important;
}

/* Animação de entrada */
.stats-item {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.stats-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-item:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .stats-item .h4 {
        font-size: 1.5rem;
    }
    
    .stats-item {
        padding: 1rem;
    }
    
    .stats-card .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-item .h4 {
        font-size: 1.25rem;
    }
    
    .stats-item small {
        font-size: 0.75rem;
    }
}

/* Estado de loading */
.stats-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.stats-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 3;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Versão compacta para telas menores */
@media (max-width: 768px) {
    .stats-card .card-body {
        padding: 1.25rem;
    }
    
    .stats-grid {
        margin: 1rem 0;
    }
}

/* Dark mode support (se necessário no futuro) */
@media (prefers-color-scheme: dark) {
    .stats-item {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .stats-item small {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ===== FREQUÊNCIAS - ESTILOS ESPECÍFICOS E TONS SUAVES ===== */

/* Cores suaves específicas para frequências */
:root {
    --soft-primary: rgba(106, 27, 154, 0.1);
    --soft-success: rgba(40, 167, 69, 0.1);
    --soft-info: rgba(23, 162, 184, 0.1);
    --soft-warning: rgba(255, 193, 7, 0.1);
    --soft-danger: rgba(220, 53, 69, 0.1);
    --soft-secondary: rgba(108, 117, 125, 0.1);
}

/* Cards de frequência com estilo suave */
.frequency-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.frequency-card:hover {
    border-color: rgba(106, 27, 154, 0.1);
}

.frequency-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(156, 39, 176, 0.9) 100%);
}

.frequency-card .card-body {
    padding: 1.75rem 1.5rem;
}

/* Form controls com visual suave */
.form-select:focus, 
.form-control:focus {
    border-color: rgba(106, 27, 154, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.08);
    background: white;
}

/* Badges suaves específicos para frequências */
.badge-soft {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid currentColor;
    background: transparent !important;
}

/* Cores específicas para categorias de grupos */
.badge-homens { 
    color: #007bff; 
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.2);
}

.badge-mulheres { 
    color: #e83e8c; 
    background: rgba(232, 62, 140, 0.1) !important;
    border-color: rgba(232, 62, 140, 0.2);
}

.badge-casais { 
    color: #28a745; 
    background: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.2);
}

.badge-jovens { 
    color: #fd7e14; 
    background: rgba(253, 126, 20, 0.1) !important;
    border-color: rgba(253, 126, 20, 0.2);
}

.badge-adolescentes { 
    color: #6f42c1; 
    background: rgba(111, 66, 193, 0.1) !important;
    border-color: rgba(111, 66, 193, 0.2);
}

.badge-kids { 
    color: #20c997; 
    background: rgba(32, 201, 151, 0.1) !important;
    border-color: rgba(32, 201, 151, 0.2);
}

/* Badge de estatísticas com estilo suave */
.stat-badge-soft {
    background: rgba(248, 249, 250, 0.8) !important;
    color: var(--gray-700) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.35rem 0.7rem;
    border-radius: 15px;
    font-weight: 500;
}

/* Percentuais com cores suaves */
.percentage-excellent {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.1) 100%) !important;
    color: #155724 !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.percentage-good {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(111, 66, 193, 0.1) 100%) !important;
    color: #0c5460 !important;
    border: 1px solid rgba(23, 162, 184, 0.2) !important;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.percentage-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(253, 126, 20, 0.1) 100%) !important;
    color: #856404 !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.percentage-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(232, 62, 140, 0.1) 100%) !important;
    color: #721c24 !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Tabela de frequência - CONSOLIDADO */
.frequency-table .table {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* THEAD padrão */
.frequency-table .table thead th {
    background: var(--light-color);
    border-bottom: 2px solid rgba(106, 27, 154, 0.1);
    color: var(--gray-800) !important;
    font-weight: 700 !important;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* THEAD com estilo primário - VERSÃO DEFINITIVA */
.table thead.primary-header > tr > th {
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #4a148c !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    padding: 1rem 0.75rem !important;
    text-transform: uppercase !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.table thead.primary-header > tr > th:first-child {
    border-top-left-radius: 12px !important;
}

.table thead.primary-header > tr > th:last-child {
    border-top-right-radius: 12px !important;
}

.table thead.primary-header th + th {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table thead.primary-header th:hover {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%) !important;
    transition: all 0.3s ease !important;
}

/* TBODY da tabela */
.frequency-table .table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.frequency-table .table tbody tr:hover {
    background: linear-gradient(135deg, var(--soft-primary) 0%, rgba(106, 27, 154, 0.02) 100%) !important;
    transform: scale(1.005);
}

/* Cards de informação */
.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.5) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert suave */
.alert-soft {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.08) 0%, rgba(111, 66, 193, 0.05) 100%) !important;
    border: 1px solid rgba(23, 162, 184, 0.15) !important;
    color: #0c5460 !important;
}

/* Estilos para datas na tabela */
.frequency-date {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.frequency-day {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}

.frequency-group {
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

/* Stats items com versão suave */
.stats-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.6) 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.stats-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 0.8) 100%) !important;
    border-color: rgba(106, 27, 154, 0.1) !important;
}

/* Animação para página de frequências */
.fade-in {
    animation: fadeInSoft 0.8s ease;
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .page-header {
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding: 1rem;
    }
    
    .frequency-card .card-body {
        padding: 1.25rem 1rem;
    }
    
    .frequency-table .table thead th,
    .table thead.primary-header > tr > th {
        font-size: 0.7rem !important;
        padding: 0.75rem 0.5rem !important;
        font-weight: 600 !important;
    }
    
    .frequency-date {
        font-size: 0.85rem;
    }
    
    .frequency-day {
        font-size: 0.7rem;
    }
    
    .percentage-excellent,
    .percentage-good,
    .percentage-warning,
    .percentage-danger {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    .page-header {
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
        padding: 0.75rem;
    }
    
    .frequency-table .table {
        font-size: 0.8rem;
    }
    
    .table thead.primary-header > tr > th {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.25rem !important;
        letter-spacing: 0.3px !important;
    }
    
    .badge-soft {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .stat-badge-soft {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}


/* ===== SISTEMA UNIFICADO DE FORMULÁRIOS - PADRÃO PROFISSIONAL ===== */

/* Variáveis para formulários */
:root {
    --form-border-color: #e0e6ed;
    --form-border-color-hover: rgba(106, 27, 154, 0.3);
    --form-border-color-focus: rgba(106, 27, 154, 0.5);
    --form-bg-color: #ffffff;
    --form-bg-color-disabled: #f8f9fa;
    --form-text-color: #757a7c;
    --form-placeholder-color: #6c757d;
    --form-shadow-focus: 0 0 0 3px rgba(106, 27, 154, 0.1);
    --form-border-radius: 8px;
    --form-transition: all 0.15s ease-in-out;
}

/* ===== RESET E BASE ===== */
/* Remove estilos inconsistentes */
.form-control,
.form-select,
.form-check-input,
.form-range,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="file"],
textarea,
select {
    /* Reset de estilos conflitantes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Estilo base unificado */
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--form-text-color) !important;
    background-color: var(--form-bg-color) !important;
    background-clip: padding-box;
    border: 1.5px solid var(--form-border-color) !important;
    border-radius: var(--form-border-radius) !important;
    padding: 0.75rem 1rem !important;
    transition: var(--form-transition) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ===== STATES - HOVER, FOCUS, DISABLED ===== */

/* Hover State */
.form-control:hover,
.form-select:hover,
input:hover:not(:disabled),
textarea:hover:not(:disabled),
select:hover:not(:disabled) {
    border-color: var(--form-border-color-hover) !important;
    background-color: var(--form-bg-color) !important;
}

/* Focus State */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--form-border-color-focus) !important;
    background-color: var(--form-bg-color) !important;
    box-shadow: var(--form-shadow-focus) !important;
    outline: none !important;
}

/* Disabled State */
.form-control:disabled,
.form-select:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--form-bg-color-disabled) !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* ===== SELECT ESPECÍFICO ===== */
select.form-select,
select.form-control,
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

/* Options do Select */
select option {
    color: var(--form-text-color) !important;
    background-color: var(--form-bg-color) !important;
    padding: 0.5rem 1rem;
}

select option:checked {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* ===== TEXTAREA ===== */
textarea.form-control,
textarea {
    min-height: 100px !important;
    resize: vertical;
}

/* ===== INPUT FILE ===== */
input[type="file"].form-control,
.form-control[type="file"] {
    padding: 0.5rem 1rem !important;
    background-color: var(--form-bg-color) !important;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: var(--form-bg-color-disabled);
    border: 1px solid var(--form-border-color);
    border-radius: 4px;
    color: var(--form-text-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 1rem;
    padding: 0.375rem 0.75rem;
    transition: var(--form-transition);
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--form-border-color);
    border-color: var(--form-border-color-hover);
}

/* ===== CHECKBOX E RADIO ===== */
.form-check-input {
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin-top: 0.125rem !important;
    border: 1.5px solid var(--form-border-color) !important;
    border-radius: 0.25rem !important;
    background-color: var(--form-bg-color) !important;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input:focus {
    border-color: var(--form-border-color-focus) !important;
    box-shadow: var(--form-shadow-focus) !important;
}

.form-check-input[type="radio"] {
    border-radius: 50% !important;
}

.form-check-label {
    color: var(--form-text-color) !important;
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===== LABELS E TEXTO DE APOIO ===== */
.form-label,
label {
    color: var(--form-text-color) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4;
}

.form-label.required::after,
label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

.form-text,
.text-muted,
small.text-muted {
    color: var(--form-text-color) !important;
    font-size: 0.8rem !important;
    font-weight: 400;
    margin-top: 0.25rem;
    line-height: 1.4;
    margin-left: 10px;
}

/* ===== PLACEHOLDERS ===== */
::placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 0.8 !important;
    font-style: italic;
}

::-webkit-input-placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 0.8 !important;
    font-style: italic;
}

::-moz-placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 0.8 !important;
    font-style: italic;
}

:-ms-input-placeholder {
    color: var(--form-placeholder-color) !important;
    opacity: 0.8 !important;
    font-style: italic;
}

/* ===== INPUT GROUPS ===== */
.input-group {
    box-shadow: none !important;
}

.input-group .form-control,
.input-group .form-select {
    border: 1.5px solid var(--form-border-color) !important;
}

.input-group-text {
    background-color: var(--form-bg-color-disabled) !important;
    border: 1.5px solid var(--form-border-color) !important;
    color: var(--form-text-color) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.input-group:focus-within .input-group-text {
    border-color: var(--form-border-color-focus) !important;
}

/* ===== GRUPOS DE FORMULÁRIO ===== */
.form-group,
.mb-3,
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.row .form-group,
.row .mb-3,
.row .mb-4 {
    margin-bottom: 1.25rem !important;
}

/* ===== VALIDAÇÃO ===== */
.is-valid,
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745 !important;
    background-color: var(--form-bg-color) !important;
}

.is-valid:focus,
.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}

.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545 !important;
    background-color: var(--form-bg-color) !important;
}

.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.valid-feedback {
    color: #28a745 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #dc3545 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===== SWITCH/TOGGLE ===== 
.form-switch .form-check-input {
    width: 2rem !important;
    height: 1.125rem !important;
    border-radius: 2rem !important;
    background-color: var(--form-border-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2840, 45, 52, 0.75%29'/%3e%3c/svg%3e") !important;
    transition: var(--form-transition) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e") !important;
}  */

/* ===== RANGE INPUT ===== */
.form-range {
    height: 1.5rem !important;
    background: transparent !important;
    border: none !important;
}

.form-range::-webkit-slider-track {
    height: 0.5rem;
    background: var(--form-border-color);
    border-radius: 1rem;
}

.form-range::-webkit-slider-thumb {
    height: 1.25rem;
    width: 1.25rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.form-range::-moz-range-track {
    height: 0.5rem;
    background: var(--form-border-color);
    border-radius: 1rem;
    border: none;
}

.form-range::-moz-range-thumb {
    height: 1.25rem;
    width: 1.25rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    input,
    textarea,
    select {
        font-size: 16px !important; /* Evita zoom no iOS */
        padding: 0.875rem 1rem !important;
    }
    
    .form-label,
    label {
        font-size: 0.9rem !important;
    }
    
    .form-group,
    .mb-3,
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .form-control,
    .form-select,
    input,
    textarea,
    select {
        padding: 1rem !important;
    }
    
    .input-group-text {
        padding: 1rem !important;
    }
}

/* ===== CORREÇÕES ESPECÍFICAS PARA CONFLITOS ===== */

/* Remove estilos conflitantes do admin.css anterior */
.form-control:focus,
.form-select:focus {
    border-color: var(--form-border-color-focus) !important;
    box-shadow: var(--form-shadow-focus) !important;
}

/* Força consistência em todos os contextos */
.card .form-control,
.card .form-select,
.modal .form-control,
.modal .form-select,
.dropdown .form-control,
.dropdown .form-select {
    border: 1.5px solid var(--form-border-color) !important;
    background-color: var(--form-bg-color) !important;
    color: var(--form-text-color) !important;
}

/* Override para plugins de terceiros */
.bootstrap-select .dropdown-toggle,
.select2-container .select2-selection {
    border: 1.5px solid var(--form-border-color) !important;
    background-color: var(--form-bg-color) !important;
    color: var(--form-text-color) !important;
    border-radius: var(--form-border-radius) !important;
    padding: 0.75rem 1rem !important;
}

/* ===== CLASSES ADICIONAIS PARA RELATÓRIO DE FREQUÊNCIA ===== */

/* Layout específico do relatório */
.report-container {
    margin: 0 auto;
    max-width: 1400px;
}

/* Cards de calendário */
.calendar-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.calendar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.calendar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.calendar-header .h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calendar-header small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-body {
    padding: 1.25rem;
}

.calendar-progress {
    height: 25px;
    border-radius: var(--border-radius-lg);
    background: var(--gray-100);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-progress .progress-bar {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s ease-in-out;
}

/* Badges de presença */
.attendance-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.attendance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 36px;
}

.attendance-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    color: white;
}

.attendance-badge:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.attendance-badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.attendance-badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e74c3c 100%);
}

/* Header da tabela com estilo primário */
.table-header-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.table-header-primary th {
    background: transparent !important;
    color: white !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    padding: 1rem 0.75rem !important;
    text-transform: uppercase !important;
}

.table-header-primary th:first-child {
    border-top-left-radius: var(--border-radius-lg) !important;
}

.table-header-primary th:last-child {
    border-top-right-radius: var(--border-radius-lg) !important;
}

.table-header-primary th + th {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Linha de participante */
.participant-row {
    transition: var(--transition);
}

.participant-row:hover {
    background-color: rgba(106, 27, 154, 0.03) !important;
    transform: scale(1.005);
}

/* Progress bar para frequência */
.frequency-progress {
    height: 25px;
    border-radius: var(--border-radius-lg);
    background: var(--gray-100);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.frequency-progress .progress-bar {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s ease-in-out;
    border-radius: var(--border-radius-lg);
}

/* Ícone de status no modal */
.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.status-icon.presente {
    background: var(--success-color);
}

.status-icon.ausente {
    background: var(--danger-color);
}

/* Ícones de destaque */
.star-icon {
    animation: pulse 2s infinite;
}

.attention-icon {
    animation: pulse 2s infinite;
}

/* Contador de tabela */
.table-counter {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Responsividade específica */
@media (max-width: 768px) {
    .calendar-header {
        padding: 0.75rem;
    }
    
    .calendar-header .h6 {
        font-size: 0.9rem;
    }
    
    .calendar-header small {
        font-size: 0.7rem;
    }
    
    .calendar-body {
        padding: 1rem;
    }
    
    .attendance-badges {
        gap: 0.25rem;
    }
    
    .attendance-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .frequency-progress,
    .calendar-progress {
        height: 20px;
    }
    
    .frequency-progress .progress-bar,
    .calendar-progress .progress-bar {
        font-size: 1rem;
    }
    
    .table-header-primary th {
        font-size: 0.7rem !important;
        padding: 0.75rem 0.5rem !important;
    }

    .status-icon {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .calendar-header {
        padding: 0.5rem;
    }
    
    .calendar-body {
        padding: 0.75rem;
    }
    
    .attendance-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        min-height: 28px;
    }
    
    .frequency-progress,
    .calendar-progress {
        height: 25px;
    }
    
    .frequency-progress .progress-bar,
    .calendar-progress .progress-bar {
        font-size: 1rem;
    }
    
    .table-header-primary th {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.25rem !important;
        letter-spacing: 0.3px !important;
    }
    
    .status-icon {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
    }
    
    .report-container {
        padding: 0 0.5rem;
    }
}

/* Print styles específicos */
@media print {
    .calendar-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }
    
    .calendar-header {
        background: #6a1b9a !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .attendance-badge {
        background: #6c757d !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .attendance-badge.bg-success {
        background: #28a745 !important;
    }
    
    .attendance-badge.bg-danger {
        background: #dc3545 !important;
    }
    
    .table-header-primary {
        background: #6a1b9a !important;
        -webkit-print-color-adjust: exact;
    }
    
    .table-header-primary th {
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .btn-detalhes {
        display: none !important;
    }
}

/* ===== CORREÇÃO ESPECÍFICA PARA DROPDOWN SOBREPOSIÇÃO ===== */

/* Força z-index alto para todos os dropdowns */
.dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    min-width: 200px !important;
}

/* Força z-index para dropdowns dentro de tabelas */
.table .dropdown-menu,
.table-responsive .dropdown-menu {
    z-index: 9999 !important;
    position: fixed !important; /* Muda para fixed para evitar problemas com overflow */
}

/* Correção específica para btn-group com dropdown */
.btn-group .dropdown-menu,
.action-buttons .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    will-change: transform !important;
}

/* Força z-index para o backdrop do dropdown */
.dropdown-backdrop {
    z-index: 9998 !important;
}

/* Correção para containers que podem interferir */
.table-responsive {
    overflow: visible !important; /* Temporariamente durante dropdown aberto */
}

/* Correção específica para dropdown-toggle */
.dropdown-toggle {
    z-index: 1000 !important;
    position: relative !important;
}

/* Força posicionamento correto para dropdowns em cards */
.card .dropdown-menu {
    z-index: 9999 !important;
}

/* Correção para modals que podem estar interferindo */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Força dropdown acima de outros elementos */
.dropdown.show .dropdown-menu {
    z-index: 9999 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Correção para sidebar que pode estar interferindo */
.sidebar {
    z-index: 1000 !important;
}

/* Correção para navbar */
.navbar-custom {
    z-index: 1030 !important;
}

/* ===== CORREÇÃO JAVASCRIPT ADICIONAL ===== */

/* ===== CORREÇÃO DEFINITIVA PARA POSICIONAMENTO DE DROPDOWN ===== */

/* Reset completo para dropdowns em tabelas */
.table .dropdown-menu,
.table-responsive .dropdown-menu {
    position: absolute !important;
    z-index: 999999 !important;
    
    /* Remove todas as transformações do Popper.js */
    transform: none !important;
    inset: unset !important;
    
    /* Remove posicionamento automático */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    
    /* Estilos visuais */
    background: white !important;
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
}

/* Remove interferências do data-popper-placement */
.table .dropdown-menu[data-popper-placement],
.table-responsive .dropdown-menu[data-popper-placement] {
    transform: none !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Força posicionamento manual para action-buttons */
.action-buttons {
    position: relative !important;
}

.action-buttons .dropdown {
    position: static !important;
}

/* Posicionamento específico para dropdowns de ação */
.action-buttons .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 2px !important;
    z-index: 999999 !important;
}

/* Quando dropdown está aberto */
.action-buttons .dropdown.show .dropdown-menu {
    display: block !important;
}

/* Correção para btn-group */
.btn-group .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 2px !important;
    z-index: 999999 !important;
}

/* Remove limitações de containers pai */
.table-responsive {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

.card {
    overflow: visible !important;
}

/* Força para elementos que podem ter overflow hidden */
.table-responsive.dropdown-open {
    overflow: visible !important;
    z-index: 1000 !important;
}




/* ===== ESTILOS SUAVES E PROFISSIONAIS ESPECÍFICOS ===== */

/* Page Header com gradiente suave */
.page-header {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(156, 39, 176, 0.05) 100%);
    border: 1px solid rgba(106, 27, 154, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(106, 27, 154, 0.08);
}

/* Export buttons com estilo suave */
.export-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.export-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards com visual suave e profissional */
.frequency-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.frequency-card:hover {
    border-color: rgba(106, 27, 154, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.frequency-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(156, 39, 176, 0.95) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.2);
}

.frequency-card .card-header .card-title {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stats Card especial com gradiente suave */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(106, 27, 154, 0.1);
    box-shadow: 0 4px 25px rgba(106, 27, 154, 0.1);
    backdrop-filter: blur(10px);
}

.stats-card .card-header {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.95) 0%, rgba(156, 39, 176, 0.9) 100%);
    color: white;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.25);
}

.stats-card .card-header .card-title {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Filter form com estilo suave */
.filter-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
}

.filter-form .card-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tabela com header primário melhorado */
.frequency-table .table thead.primary-header > tr > th {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.95) 0%, rgba(156, 39, 176, 0.9) 100%) !important;
    color: #ffffff !important;
    border-bottom: 3px solid rgba(74, 20, 140, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    padding: 1.25rem 1rem !important;
    text-transform: uppercase !important;
    position: relative !important;
}

.frequency-table .table thead.primary-header > tr > th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.frequency-table .table thead.primary-header > tr > th:first-child {
    border-top-left-radius: 12px !important;
}

.frequency-table .table thead.primary-header > tr > th:last-child {
    border-top-right-radius: 12px !important;
}

/* Hover effect melhorado para linhas da tabela */
.frequency-table .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.05) 0%, rgba(106, 27, 154, 0.02) 100%) !important;
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Indicadores de saúde com gradientes suaves */
.health-indicator.health-excellent {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.health-indicator.health-good {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.health-indicator.health-regular {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.health-indicator.health-critical {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Charts container com padding melhorado */
.chart-container {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.chart-container.mini-chart {
    padding: 0.75rem;
    max-height: 300px;
}

/* Badges suaves específicos para categorias */
.badge-soft.badge-homens {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0.08) 100%) !important;
    color: #0066cc !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
}

.badge-soft.badge-mulheres {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.15) 0%, rgba(232, 62, 140, 0.08) 100%) !important;
    color: #c2185b !important;
    border: 1px solid rgba(232, 62, 140, 0.2) !important;
}

.badge-soft.badge-casais {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.08) 100%) !important;
    color: #1e7e34 !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
}

.badge-soft.badge-jovens {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.15) 0%, rgba(253, 126, 20, 0.08) 100%) !important;
    color: #e55a00 !important;
    border: 1px solid rgba(253, 126, 20, 0.2) !important;
}

.badge-soft.badge-adolescentes {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15) 0%, rgba(111, 66, 193, 0.08) 100%) !important;
    color: #5a32a3 !important;
    border: 1px solid rgba(111, 66, 193, 0.2) !important;
}

.badge-soft.badge-kids {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(32, 201, 151, 0.08) 100%) !important;
    color: #17a2b8 !important;
    border: 1px solid rgba(32, 201, 151, 0.2) !important;
}

/* Percentuais de frequência com gradientes suaves */
.percentage-excellent {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.15) 100%) !important;
    color: #155724 !important;
    border: 1.5px solid rgba(40, 167, 69, 0.3) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

.percentage-good {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(111, 66, 193, 0.15) 100%) !important;
    color: #0c5460 !important;
    border: 1.5px solid rgba(23, 162, 184, 0.3) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(23, 162, 184, 0.2);
}

.percentage-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(253, 126, 20, 0.15) 100%) !important;
    color: #856404 !important;
    border: 1.5px solid rgba(255, 193, 7, 0.3) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.2);
}

.percentage-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(232, 62, 140, 0.15) 100%) !important;
    color: #721c24 !important;
    border: 1.5px solid rgba(220, 53, 69, 0.3) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

/* Trends indicators melhorados */
.trend-indicator {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.trend-indicator.trend-up {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.trend-indicator.trend-down {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(232, 62, 140, 0.1) 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.trend-indicator.trend-stable {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(108, 117, 125, 0.1) 100%);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Empty state melhorado */
.empty-state {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    border: 2px dashed rgba(108, 117, 125, 0.3);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* Notificações com estilo suave */
.notifications-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification-alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    margin-bottom: 10px;
    animation: slideInRight 0.4s ease-out;
}

.notification-alert.alert-info {
    border-left: 4px solid #17a2b8 !important;
}

.notification-alert.alert-success {
    border-left: 4px solid #28a745 !important;
}

.notification-alert.alert-warning {
    border-left: 4px solid #ffc107 !important;
}

.notification-alert.alert-danger {
    border-left: 4px solid #dc3545 !important;
}

/* Animações suaves */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInSoft 0.6s ease-out;
}

.slide-in {
    animation: fadeInSoft 0.6s ease-out;
    animation-fill-mode: both;
}

/* Loading states suaves */
.loading-pulse {
    animation: pulse 1.5s infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

/* Search results counter */
.search-results-counter {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(111, 66, 193, 0.05) 100%) !important;
    border: 1px solid rgba(23, 162, 184, 0.2) !important;
    color: #0c5460 !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-weight: 500;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .export-buttons {
        justify-content: center;
    }
    
    .export-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .frequency-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .chart-container {
        padding: 0.5rem;
    }
    
    .health-indicator {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.7rem !important;
    }
    
    .metric-value {
        font-size: 1.25rem !important;
    }
    
    .trend-indicator {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .percentage-excellent,
    .percentage-good,
    .percentage-warning,
    .percentage-danger {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    .notifications-container {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 80px;
    }
    
    .frequency-table .table {
        font-size: 0.8rem;
    }
    
    .frequency-table .table thead.primary-header > tr > th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .health-indicator {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.65rem !important;
    }
}

/* Print styles */
@media print {
    .page-header,
    .export-buttons,
    .filter-form,
    .btn,
    .notifications-container {
        display: none !important;
    }
    
    .frequency-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .frequency-card .card-header {
        background: #6a1b9a !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .chart-container {
        height: 200px !important;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ORGANOGRAMA HIERÁRQUICO ===== */
/* Adicionar ao final do arquivo admin.css */

/* ===== CONTAINER PRINCIPAL DO ORGANOGRAMA ===== */
.organograma-container {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
    position: relative !important;
    background: transparent !important;
}

/* Aplicar tamanhos baseado na classe específica */
.organograma-container img.organograma-pessoa-foto,
#organograma-container img.organograma-pessoa-foto {
    width: 70px !important;
    height: 70px !important;
}

/* FOTO PEQUENA - Líderes, Colíderes, Anfitriões, Participantes */
.organograma-container .organograma-pessoa-foto-small,
#organograma-container .organograma-pessoa-foto-small,
.organograma-container img.organograma-pessoa-foto-small,
#organograma-container img.organograma-pessoa-foto-small {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid white !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ===== CARDS HIERÁRQUICOS ===== */
.organograma-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: visible !important;
}

.organograma-card-hierarquico {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    margin: 15px auto !important;
    position: relative !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    min-height: 180px !important;
    max-width: 350px !important;
    transform: translateZ(0) !important; /* Força aceleração por hardware */
}

.organograma-card-hierarquico:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

.organograma-card-hierarquico.organograma-card-expandido {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.2) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%) !important;
}

/* Cores específicas por tipo de card */
.card-pastor.organograma-card-hierarquico {
    border-left: 5px solid #e74c3c !important;
}

.card-pastor.organograma-card-hierarquico.organograma-card-expandido {
    border-color: #e74c3c !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2) !important;
}

.card-gestor.organograma-card-hierarquico {
    border-left: 5px solid var(--success-color) !important;
}

.card-gestor.organograma-card-hierarquico.organograma-card-expandido {
    border-color: var(--success-color) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2) !important;
}

.card-grupo.organograma-card-hierarquico {
    border-left: 5px solid var(--info-color) !important;
}

.card-grupo.organograma-card-hierarquico.organograma-card-expandido {
    border-color: var(--info-color) !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
}

/* ===== BOTÃO EXPANDIR ===== */
.organograma-btn-expandir {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    z-index: 15 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
}

.organograma-btn-expandir:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.card-pastor .organograma-btn-expandir {
    background: #e74c3c !important;
}

.card-pastor .organograma-btn-expandir:hover {
    background: #c0392b !important;
}

.card-gestor .organograma-btn-expandir {
    background: var(--success-color) !important;
}

.card-gestor .organograma-btn-expandir:hover {
    background: #218838 !important;
}

.card-grupo .organograma-btn-expandir {
    background: var(--info-color) !important;
}

.card-grupo .organograma-btn-expandir:hover {
    background: #138496 !important;
}

/* ===== FOTOS E PLACEHOLDERS ESPECÍFICOS DO ORGANOGRAMA ===== */
.organograma-pessoa-foto {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid white !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.organograma-pessoa-foto:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25) !important;
}

.organograma-pessoa-foto-placeholder {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px auto !important;
    color: white !important;
    font-size: 24px !important;
    border: 3px solid white !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

.organograma-pessoa-foto-placeholder:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25) !important;
}

.organograma-pessoa-foto-small {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid white !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.organograma-pessoa-foto-placeholder-small {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    color: white !important;
    font-size: 16px !important;
    border: 2px solid white !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

/* ===== CONECTORES ===== */
.organograma-conector-vertical {
    display: flex !important;
    justify-content: center !important;
    margin: 25px 0 !important;
    position: relative !important;
}

.organograma-conector-vertical::before {
    content: '' !important;
    width: 4px !important;
    height: 35px !important;
    background: linear-gradient(to bottom, var(--gray-300), var(--primary-color)) !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ===== SUBNÍVEIS COM ANIMAÇÃO ===== */
.organograma-subnivel {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

.organograma-subnivel.organograma-expandido {
    max-height: 8000px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, transform 0.4s ease !important;
}

/* ===== NÍVEIS HIERÁRQUICOS ===== */
.organograma-nivel-hierarquia {
    margin-bottom: 40px !important;
    position: relative !important;
}

/* ===== INFO PESSOA ===== */
.organograma-info-pessoa {
    text-align: center !important;
    padding: 20px 15px 15px 15px !important;
}

.organograma-info-pessoa h6 {
    font-weight: 600 !important;
    color: var(--gray-800) !important;
    margin: 8px 0 6px 0 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
}

.organograma-telefone {
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
    margin-top: 6px !important;
    font-weight: 500 !important;
}

/* ===== BADGES ESPECÍFICOS DO ORGANOGRAMA ===== */
.organograma-badge-funcao {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    margin: 6px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ===== CARDS DE LIDERANÇA ===== */
.organograma-card-lideranca {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.organograma-card-lideranca:hover {
    background: white !important;
    border-color: var(--gray-300) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.organograma-card-participante {
    background: rgba(248, 249, 250, 0.8) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}

.organograma-card-participante:hover {
    background: white !important;
    border-color: var(--gray-300) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

/* ===== ESTATÍSTICAS DO GRUPO ===== */
.organograma-stats-grupo {
    background: linear-gradient(135deg, var(--gray-100) 0%, rgba(248, 249, 250, 0.8) 100%) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    border: 1px solid var(--gray-200) !important;
}

.organograma-stat-item {
    text-align: center !important;
    padding: 10px !important;
}

.organograma-stat-number {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

.organograma-stat-label {
    font-size: 0.75rem !important;
    color: var(--gray-600) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

/* ===== CARD IGREJA ESPECÍFICO ===== */
.card-igreja.organograma-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(106, 27, 154, 0.3) !important;
    transform: scale(1.05) !important;
}

.card-igreja.organograma-card * {
    color: white !important;
}

.card-igreja.organograma-card:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 15px 50px rgba(106, 27, 154, 0.4) !important;
}

/* ===== ANIMAÇÕES ESPECÍFICAS ===== */
@keyframes organogramaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes organogramaSlideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
    }
}

.organograma-card-hierarquico {
    animation: organogramaFadeIn 0.6s ease-out !important;
    animation-fill-mode: both !important;
}

/* Delay escalonado para animações */
.organograma-nivel-hierarquia .col-md-4:nth-child(1) .organograma-card-hierarquico {
    animation-delay: 0.1s !important;
}

.organograma-nivel-hierarquia .col-md-4:nth-child(2) .organograma-card-hierarquico {
    animation-delay: 0.2s !important;
}

.organograma-nivel-hierarquia .col-md-4:nth-child(3) .organograma-card-hierarquico {
    animation-delay: 0.3s !important;
}

.organograma-nivel-hierarquia .col-lg-4:nth-child(1) .organograma-card-hierarquico {
    animation-delay: 0.1s !important;
}

.organograma-nivel-hierarquia .col-lg-4:nth-child(2) .organograma-card-hierarquico {
    animation-delay: 0.2s !important;
}

.organograma-nivel-hierarquia .col-lg-4:nth-child(3) .organograma-card-hierarquico {
    animation-delay: 0.3s !important;
}

/* ===== RESPONSIVIDADE ESPECÍFICA DO ORGANOGRAMA ===== */
@media (max-width: 768px) {
    .organograma-container {
        padding: 20px 15px !important;
    }

    .organograma-card-hierarquico {
        min-height: 160px !important;
        max-width: 100% !important;
        margin: 12px auto !important;
    }

    .organograma-pessoa-foto {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    .organograma-pessoa-foto-placeholder {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        font-size: 20px !important;
    }

    .organograma-pessoa-foto-small {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }

    .organograma-pessoa-foto-placeholder-small {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
        font-size: 14px !important;
    }

    .organograma-btn-expandir {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        top: -10px !important;
        right: -10px !important;
    }

    .organograma-info-pessoa {
        padding: 15px 10px 12px 10px !important;
    }

    .organograma-info-pessoa h6 {
        font-size: 0.9rem !important;
    }

    .organograma-telefone {
        font-size: 0.8rem !important;
    }

    .organograma-badge-funcao {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.6rem !important;
    }
}

@media (max-width: 576px) {
    .organograma-container {
        padding: 15px 10px !important;
    }

    .organograma-card-hierarquico {
        min-height: 140px !important;
    }

    .organograma-pessoa-foto {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .organograma-pessoa-foto-placeholder {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        font-size: 18px !important;
    }

    .organograma-pessoa-foto-small {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .organograma-pessoa-foto-placeholder-small {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
    }

    .organograma-info-pessoa h6 {
        font-size: 0.85rem !important;
    }

    .organograma-telefone {
        font-size: 0.75rem !important;
    }

    .organograma-badge-funcao {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    .organograma-stat-number {
        font-size: 1.2rem !important;
    }

    .organograma-stat-label {
        font-size: 0.7rem !important;
    }
}

/* ===== PRINT STYLES ESPECÍFICOS ===== */
@media print {
    .organograma-btn-expandir {
        display: none !important;
    }

    .organograma-subnivel {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .organograma-card-hierarquico {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        animation: none !important;
    }

    .organograma-card-hierarquico:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .organograma-conector-vertical::before {
        background: #333 !important;
    }

    .organograma-pessoa-foto,
    .organograma-pessoa-foto-small {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .organograma-pessoa-foto-placeholder,
    .organograma-pessoa-foto-placeholder-small {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* ===== ESTADOS DE LOADING ===== */
.organograma-loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.organograma-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 24px !important;
    height: 24px !important;
    border: 3px solid var(--gray-200) !important;
    border-top: 3px solid var(--primary-color) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 20 !important;
}

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
.organograma-card-hierarquico:focus {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

.organograma-btn-expandir:focus {
    outline: 2px solid white !important;
    outline-offset: 2px !important;
}

/* ===== ANIMAÇÃO DE SPIN PARA LOADING ===== */
@keyframes spin {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) !important; 
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) !important; 
    }
}

/* ===== CORREÇÕES ESPECÍFICAS PARA COMPATIBILIDADE ===== */
.organograma-container .row {
    margin: 0 -15px !important;
}

.organograma-container .row > * {
    padding: 0 15px !important;
}

/* ===== ESTADOS HOVER APRIMORADOS ===== */
.organograma-card-lideranca:hover .organograma-pessoa-foto-small,
.organograma-card-participante:hover .organograma-pessoa-foto-small {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}

.organograma-card-lideranca:hover .organograma-pessoa-foto-placeholder-small,
.organograma-card-participante:hover .organograma-pessoa-foto-placeholder-small {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}

/* ===== FINALIZAÇÕES E OTIMIZAÇÕES ===== */
.organograma-container * {
    box-sizing: border-box !important;
}

/* Força que todos os elementos do organograma tenham transições suaves */
.organograma-container [class*="organograma-"] {
    transition: all 0.3s ease !important;
}

/* Garante que imagens não vazem dos containers */
.organograma-container img {
    max-width: 100% !important;
    height: auto !important;
}

/* Remove margin bottom do último elemento para evitar espaços extras */
.organograma-container .organograma-nivel-hierarquia:last-child {
    margin-bottom: 0 !important;
}

/* ===== FIM DOS ESTILOS ESPECÍFICOS DO ORGANOGRAMA ===== */



    /* Hero Section */
.pf-hero-section {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1) 0%, rgba(156, 39, 176, 0.08) 50%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid rgba(106, 27, 154, 0.15);
    border-radius: 12px;
    color: #495057;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.pf-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(106,27,154,0.08)"/><circle cx="80" cy="80" r="3" fill="rgba(156,39,176,0.06)"/><circle cx="40" cy="70" r="1" fill="rgba(106,27,154,0.1)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

/* Profile Image */
.pf-profile-image-container {
    position: relative;
    display: inline-block;
}

.pf-profile-image {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(106, 27, 154, 0.2);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.pf-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(106, 27, 154, 0.25);
}

.pf-status-badge {
    /*position: absolute;*/
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    /*border: 3px solid white;
    border-radius: 50%;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background-color: #28a745;
    color: white;
}

/* Progress Ring */
.pf-progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.pf-progress-ring svg {
    transform: rotate(-90deg);
}

.pf-progress-ring circle {
    fill: none;
    stroke-width: 8;
    r: 40;
    cx: 50;
    cy: 50;
}

.pf-progress-ring .pf-background {
    stroke: rgba(106, 27, 154, 0.1);
}

.pf-progress-ring .pf-progress {
    stroke: #28a745;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    transition: stroke-dashoffset 1.5s ease;
}

.pf-progress-ring .pf-progress-text {
    color: #495057;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Achievement Badges */
.pf-achievement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    margin: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pf-achievement-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Stat Cards */
.pf-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(106, 27, 154, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.pf-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(106, 27, 154, 0.6), rgba(156, 39, 176, 0.6));
}

.pf-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.15);
    border-color: rgba(106, 27, 154, 0.2);
}

.pf-stat-icon {
    margin-bottom: 1rem;
}

.pf-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pf-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.pf-stat-sublabel {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Cards Customizados */
.pf-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(106, 27, 154, 0.08);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-card:hover {
    border-color: rgba(106, 27, 154, 0.12);
    box-shadow: 0 8px 30px rgba(106, 27, 154, 0.1);
    transform: translateY(-2px);
}

.pf-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(106, 27, 154, 0.1);
    border-radius: 12px 12px 0 0;
}

.pf-card-header.pf-primary {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9) 0%, rgba(156, 39, 176, 0.85) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.15);
}

.pf-card-header.pf-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(40, 167, 69, 0.85) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.15);
}

.pf-card-header.pf-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 193, 7, 0.85) 100%);
    color: #495057;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
}

.pf-card-header.pf-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(23, 162, 184, 0.85) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.15);
}

.pf-card-header.pf-dark {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.9) 0%, rgba(52, 58, 64, 0.85) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 58, 64, 0.15);
}

.pf-card-title {
    font-weight: 600;
    margin-bottom: 0;
}

.pf-card-title.pf-white {
    color: white !important;
}

.pf-card-body {
    padding: 1.25rem 1.5rem;
}

/* Journey Timeline */
.pf-journey-timeline {
    position: relative;
    padding-left: 30px;
}

.pf-journey-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6a1b9a, #17a2b8);
}

.pf-journey-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-journey-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.15);
}

.pf-journey-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6a1b9a;
    border: 3px solid #f8f9fa;
}

.pf-ministry-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.04) 100%);
    border-left: 4px solid #28a745;
}

.pf-course-card {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.08) 0%, rgba(23, 162, 184, 0.04) 100%);
    border-left: 4px solid #17a2b8;
}

.pf-event-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.04) 100%);
    border-left: 4px solid #ffc107;
}

/* Info Items */
.pf-info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(106, 27, 154, 0.05);
    display: flex;
    align-items: center;
}

.pf-info-item:last-child {
    border-bottom: none;
}

.pf-info-label {
    font-weight: 600;
    color: #6a1b9a;
    margin-right: 1rem;
    min-width: 120px;
}

.pf-info-value {
    color: #495057;
    flex: 1;
}

/* Avisos Carousel */
.pf-avisos-carousel {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.04) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
}

.pf-aviso-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}

.pf-aviso-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.pf-aviso-item:last-child {
    margin-bottom: 0;
}

/* Calendar Widget */
.pf-calendario-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.08);
    border: 1px solid rgba(106, 27, 154, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.pf-calendario-header {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9), rgba(156, 39, 176, 0.85));
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.2);
}

.pf-evento-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(106, 27, 154, 0.05);
    transition: all 0.3s ease;
}

.pf-evento-item:hover {
    background: rgba(106, 27, 154, 0.05);
}

.pf-evento-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Aniversariantes */
.pf-aniversariante-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(106, 27, 154, 0.05);
    transition: all 0.3s ease;
}

.pf-aniversariante-item:hover {
    background: rgba(106, 27, 154, 0.05);
}

.pf-aniversariante-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid #6a1b9a;
    object-fit: cover;
}

/* Quick Action Buttons */
.pf-quick-action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: #495057;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-decoration: none;
}

.pf-quick-action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.15);
    border-color: rgba(106, 27, 154, 0.2);
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.12) 0%, rgba(156, 39, 176, 0.08) 100%);
    color: #495057;
    text-decoration: none;
}

.pf-quick-action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pf-quick-action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pf-quick-action-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Botões Suaves */
.pf-btn-soft-primary {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1) 0%, rgba(156, 39, 176, 0.08) 100%);
    border: 1px solid rgba(106, 27, 154, 0.2);
    color: #6a1b9a;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.pf-btn-soft-primary:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.15) 0%, rgba(156, 39, 176, 0.12) 100%);
    border-color: rgba(106, 27, 154, 0.3);
    color: #6a1b9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
    text-decoration: none;
}

.pf-btn-soft-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.08) 100%);
    border: 1px solid rgba(108, 117, 125, 0.2);
    color: #6c757d;
    font-weight: 500;
    text-decoration: none;
}

.pf-btn-soft-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.08) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.pf-btn-soft-danger:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.12) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    text-decoration: none;
}

/* Progress Bars */
.pf-progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(106, 27, 154, 0.1);
    overflow: hidden;
}

.pf-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease;
}

.pf-progress-bar.pf-success {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.pf-progress-bar.pf-info {
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

/* Badges */
.pf-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    margin: 0.2rem;
}

.pf-badge.pf-primary {
    background: rgba(106, 27, 154, 0.1);
    color: #6a1b9a;
}

.pf-badge.pf-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.pf-badge.pf-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.pf-badge.pf-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.pf-badge.pf-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Utility Classes */
.pf-text-primary {
    color: #6a1b9a !important;
}

.pf-text-muted {
    color: #6c757d !important;
}

.pf-mb-1 { margin-bottom: 0.25rem !important; }
.pf-mb-2 { margin-bottom: 0.5rem !important; }
.pf-mb-3 { margin-bottom: 1rem !important; }
.pf-mb-4 { margin-bottom: 1.5rem !important; }

.pf-me-1 { margin-right: 0.25rem !important; }
.pf-me-2 { margin-right: 0.5rem !important; }

.pf-fw-bold { font-weight: 700 !important; }
.pf-fw-semibold { font-weight: 600 !important; }

/* Animações */
@keyframes pf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-animate-fade-in {
    animation: pf-fadeInUp 0.6s ease forwards;
}

.pf-animate-delay-1 { animation-delay: 0.1s; }
.pf-animate-delay-2 { animation-delay: 0.2s; }
.pf-animate-delay-3 { animation-delay: 0.3s; }
.pf-animate-delay-4 { animation-delay: 0.4s; }

@keyframes pf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pf-gentlePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 4px 15px rgba(106, 27, 154, 0.15);
    }
}

/* Navbar suave para participantes */
@if(Auth::user()->isParticipante())
.pf-navbar-custom {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.95) 0%, rgba(156, 39, 176, 0.9) 100%) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.15);
}
@endif

/* Responsividade */
@media (max-width: 768px) {
    .pf-hero-section {
        text-align: center;
        padding: 1.5rem;
    }
    
    .pf-profile-image {
        width: 100px;
        height: 100px;
    }
    
    .pf-progress-ring {
        width: 80px;
        height: 80px;
    }
    
    .pf-stat-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .pf-quick-action-btn {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .pf-achievement-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pf-card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .pf-hero-section .row {
        text-align: center;
    }
    
    .pf-hero-section .col-md-3,
    .pf-hero-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .pf-journey-timeline {
        padding-left: 20px;
    }
    
    .pf-journey-timeline::before {
        left: 10px;
    }
    
    .pf-journey-item::before {
        left: -17px;
    }
    
    .pf-stat-card {
        padding: 1rem;
    }
    
    .pf-stat-number {
        font-size: 1.5rem;
    }
    
    .pf-aniversariante-item {
        padding: 0.5rem;
    }
    
    .pf-aniversariante-avatar {
        width: 35px;
        height: 35px;
    }
}

/* Acessibilidade */
.pf-btn:focus,
.pf-quick-action-btn:focus {
    outline: 2px solid rgba(106, 27, 154, 0.5);
    outline-offset: 2px;
}

/* Loading Shimmer */
.pf-loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    background-size: 200% 100%;
    animation: pf-shimmer 1.5s infinite;
}

@keyframes pf-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(106,27,154,0.08)"/><circle cx="80" cy="80" r="3" fill="rgba(156,39,176,0.06)"/><circle cx="40" cy="70" r="1" fill="rgba(106,27,154,0.1)"/></svg>');
    opacity: 0.4;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(106, 27, 154, 0.2);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.15);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(106, 27, 154, 0.25);
}

.status-badge {
    /*position: relative;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    /*border: 3px solid white;
    border-radius: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    r: 40;
    cx: 50;
    cy: 50;
}

.progress-ring .background {
    stroke: rgba(106, 27, 154, 0.1);
}

.progress-ring .progress {
    stroke: #28a745;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    transition: stroke-dashoffset 1.5s ease;
}

.progress-ring .position-absolute {
    color: var(--gray-800);
}

.journey-timeline {
    position: relative;
    padding-left: 30px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--info-color));
}

.journey-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.journey-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow-lg);
}

.journey-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--gray-100);
}

.ministry-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 4px solid var(--success-color);
}

.course-card {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-left: 4px solid var(--info-color);
}

.event-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 4px solid var(--warning-color);
}

.birthday-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-left: 4px solid var(--danger-color);
}

.quick-action-btn {
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: var(--gray-700);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.15);
    border-color: rgba(106, 27, 154, 0.2);
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.12) 0%, rgba(156, 39, 176, 0.08) 100%);
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    margin: 0.25rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.achievement-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(106, 27, 154, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(106, 27, 154, 0.6), rgba(156, 39, 176, 0.6));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.15);
    border-color: rgba(106, 27, 154, 0.2);
}

.avisos-carousel {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.04) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
}

.calendario-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.08);
    border: 1px solid rgba(106, 27, 154, 0.1);
    backdrop-filter: blur(10px);
}

.calendario-header {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9), rgba(156, 39, 176, 0.85));
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.2);
}

.aniversariante-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.aniversariante-item:hover {
    background: var(--gray-100);
}

.aniversariante-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
}


/* Estilos base mantidos do padrão original */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.whatsapp-link:hover {
    color: #128C7E;
    background-color: rgba(37, 211, 102, 0.1);
    text-decoration: none;
    transform: scale(1.05);
}

.whatsapp-icon {
    margin-right: 5px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-link:hover .whatsapp-icon {
    animation: none;
    transform: scale(1.2);
}

.phone-number {
    color: #6c757d;
    font-size: 0.875rem;
}

.copy-phone-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.copy-phone-btn:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para cards de visitantes mobile */
.visitante-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.visitante-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.visitante-status-mobile {
    min-width: 70px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Estilos para os botões de ação */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    margin: 0 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-action-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-action-view:hover {
    background-color: #1976d2;
    color: white;
}

.btn-action-whats {
    background-color: #e8f5e8;
    color: #25d366;
}

.btn-action-whats:hover {
    background-color: #25d366;
    color: white;
}

.btn-action-edit {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-action-edit:hover {
    background-color: #f57c00;
    color: white;
}

.btn-action-convert {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.btn-action-convert:hover {
    background-color: #2e7d32;
    color: white;
}

.btn-action-delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.btn-action-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Responsividade para visitantes */
@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .visitante-card h6 {
        font-size: 0.95rem !important;
    }
    
    .visitante-card .small {
        font-size: 0.8rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .visitante-status-mobile {
        min-width: 60px;
        padding: 6px;
    }
}

/* Badges de categoria específicos para visitantes */
.categoria-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Melhorias na tabela desktop para visitantes */
@media (min-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}

.tooltip-inner {
    font-size: 12px;
}

/* Cards de estatísticas */
.stat-card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Forçar estilos específicos para visitantes */
.visitante-card-mobile .card-body .row {
    align-items: flex-start !important;
}

/* Estilos para o QR Code mantidos do código original */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: inline-block;
    margin-bottom: 20px;
    min-width: 300px;
    min-height: 300px;
}

.qr-code-container canvas {
    display: block !important;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: white;
    visibility: visible !important;
    opacity: 1 !important;
}

.qr-code-container:empty::before {
    content: "QR Code container vazio!";
    color: red;
    font-weight: bold;
}

@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
    }
    .qr-code-container {
        padding: 15px;
        min-width: 250px;
        min-height: 250px;
    }
}

.toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos específicos para o estado hover dos cards de visitantes */
.visitor-card {
    transition: all 0.2s ease;
}

.visitor-card:hover {
    background-color: rgba(0, 123, 255, 0.03);
}

/* Badges de status dos visitantes */
.type-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.visit-count-badge {
    font-size: 0.875rem;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}

/* Estilos base para cursos mobile */
.curso-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.curso-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Cards de estatísticas */
.stat-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color), var(--stat-color-light));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card-primary {
    --stat-color: #007bff;
    --stat-color-light: #4dabf7;
}

.stat-card-success {
    --stat-color: #28a745;
    --stat-color-light: #51cf66;
}

.stat-card-info {
    --stat-color: #17a2b8;
    --stat-color-light: #22b8ce;
}

.stat-card-warning {
    --stat-color: #ffc107;
    --stat-color-light: #ffd93d;
}

.stat-card-danger {
    --stat-color: #dc3545;
    --stat-color-light: #dc1234;
}

.stat-card-secondary {
    --stat-color: #9c27b0;
    --stat-color-light: #4a148c;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--stat-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Logos das igrejas */
.igreja-logo-small {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.igreja-logo-placeholder-small {
    width: 30px;
    height: 30px;
    background: #6c757d;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

/* Progresso temporal */
.progress {
    height: 20px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Status especiais para cursos */
.curso-agendado {
    border-left: 4px solid #17a2b8 !important;
    background: linear-gradient(135deg, #e1f5fe 0%, #ffffff 100%);
}

.curso-em-andamento {
    border-left: 4px solid #28a745 !important;
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
}

.curso-finalizado {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.curso-destaque {
    border: 2px solid #007bff !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    position: relative;
}

.curso-destaque::before {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    z-index: 1;
}

/* Badges de tipo de curso */
.badge.tipo-escola-principios {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.badge.tipo-escola-servos {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

.badge.tipo-escola-lideres {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
    color: #000 !important;
}

.badge.tipo-escola-mestres {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}

.badge.tipo-ctm {
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

.badge.tipo-intercessao {
    background: linear-gradient(45deg, #6c757d, #545b62) !important;
}

.badge.tipo-teologia {
    background: linear-gradient(45deg, #343a40, #1d2124) !important;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .curso-card h6 {
        font-size: 0.95rem !important;
    }
    
    .curso-card .small {
        font-size: 0.8rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Melhorias na tabela desktop */
@media (min-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}

/* Estilos para os botões de ação */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    margin: 0 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-action-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-action-view:hover {
    background-color: #1976d2;
    color: white;
}

.btn-action-edit {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-action-edit:hover {
    background-color: #f57c00;
    color: white;
}

.btn-action-delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.btn-action-delete:hover {
    background-color: #d32f2f;
    color: white;
}

.tooltip-inner {
    font-size: 12px;
}

/* Participantes info */
.participantes-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    overflow: visible; /* Permitir que o conteúdo seja visível */
    min-height: auto; /* Altura automática baseada no conteúdo */
}

/* Container dos mini-cards - centralizado com gap */
.participantes-status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    overflow: visible; /* Sem scroll */
    min-height: auto; /* Altura automática */
    width: 100%; /* Largura completa disponível */
}

/* Mini-cards individuais */
.status-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s ease;
    min-width: 80px;
    min-height: 80px;
    flex: 0 0 auto;
    text-align: center;
}

.status-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Conteúdo interno do card */
.status-mini-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.status-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

.status-mini-icon i {
    font-size: 1.2rem;
}

.status-mini-count {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    text-align: center;
}

.status-mini-label {
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    opacity: 0.8;
}

/* Cores específicas para cada tipo */
.status-mini-card.bg-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.status-mini-card.bg-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
}

.status-mini-card.bg-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.3);
}

.status-mini-card.bg-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

/* Responsividade */
@media (max-width: 576px) {
    .participantes-status-container {
        gap: 0.75rem;
    }
    
    .status-mini-card {
        min-width: 70px;
        min-height: 70px;
        padding: 0.6rem;
    }
    
    .status-mini-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.4rem;
    }
    
    .status-mini-icon i {
        font-size: 1rem;
    }
    
    .status-mini-count {
        font-size: 1.2rem;
    }
    
    .status-mini-label {
        font-size: 0.65rem;
    }
}

/* Para quando há muitos cards, quebrar em linhas */
@media (max-width: 400px) {
    .participantes-status-container {
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .status-mini-card {
        min-width: 65px;
        min-height: 65px;
    }
}

/* Manter estilos antigos para compatibilidade */
.participantes-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-mini-info {
    flex: 1;
    min-width: 0;
}

.participantes-status {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.status-item {
    text-align: center;
    flex: 1;
}

.status-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.status-count {
    font-weight: 600;
    font-size: 0.9rem;
}

.status-label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Animações */
/* @keyframes pulse-curso {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.02); 
        opacity: 0.95; 
    }
}

.curso-destaque {
    animation: pulse-curso 3s ease-in-out infinite;
} */

/* Progress bar colorida */
.progress-bar.bg-info {
    background: linear-gradient(90deg, #17a2b8, #20c997) !important;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14) !important;
}

.progress-bar.bg-primary {
    background: linear-gradient(90deg, #007bff, #6610f2) !important;
}

/* Botões suaves personalizados */
.btn-soft-primary {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1) 0%, rgba(156, 39, 176, 0.08) 100%);
    border: 1px solid rgba(106, 27, 154, 0.2);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-soft-primary:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.15) 0%, rgba(156, 39, 176, 0.12) 100%);
    border-color: rgba(106, 27, 154, 0.3);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
}

.btn-soft-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.08) 100%);
    border: 1px solid rgba(108, 117, 125, 0.2);
    color: var(--gray-600);
    font-weight: 500;
}

.btn-soft-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.08) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-soft-danger:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.12) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--danger-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Cards com tons suaves */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(106, 27, 154, 0.08);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.06);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(106, 27, 154, 0.12);
    box-shadow: 0 8px 30px rgba(106, 27, 154, 0.1);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9) 0%, rgba(156, 39, 176, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(106, 27, 154, 0.2);
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.15);
}

.card-header.bg-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(40, 167, 69, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.15);
}

.card-header.bg-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 193, 7, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
    color: var(--gray-800) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(23, 162, 184, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.15);
}

.card-header.bg-dark {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.9) 0%, rgba(52, 58, 64, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(52, 58, 64, 0.2);
    box-shadow: 0 2px 10px rgba(52, 58, 64, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos base para eventos mobile */
.evento-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
    border-radius: 8px;
}

.evento-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Indicadores de status */
.status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.status-programado {
    background: linear-gradient(180deg, #ffc107, #e0a800);
}

.status-andamento {
    background: linear-gradient(180deg, #28a745, #20c997);
}

.status-finalizado {
    background: linear-gradient(180deg, #6c757d, #5a6268);
}

/* Badges especiais */
.badge.pulse {
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    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);
    }
}

/* Status badges */
.status-andamento-badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
    }
}

/* Card de evento mobile */
.evento-card-content {
    padding: 1rem;
    border-left: 4px solid #e9ecef;
}

.evento-card-content.programado {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.evento-card-content.andamento {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.evento-card-content.finalizado {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Header do evento */
.evento-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.evento-status-icon {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.evento-info {
    flex: 1;
    min-width: 0;
}

.evento-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* CORREÇÕES ESPECÍFICAS PARA BADGES MOBILE */

/* Badges do evento mobile - layout melhorado */
.evento-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    margin-bottom: 0.75rem !important;
    align-items: center !important;
}

.evento-badges .badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Garantir que os badges não quebrem o layout */
.evento-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Header do evento mobile - melhor distribuição */
.evento-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

/* Ícone de status */
.evento-status-icon {
    flex-shrink: 0 !important;
    width: 50px !important;
    text-align: center !important;
}

/* Menu de ações */
.evento-header .dropdown {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* Título do evento */
.evento-titulo {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Descrição do evento */
.evento-descricao {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

/* Detalhes do evento */
.evento-detalhes {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}

.evento-detalhe-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
}

.evento-detalhe-icon {
    width: 14px !important;
    text-align: center !important;
    color: #6c757d !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.evento-detalhe-content {
    flex: 1 !important;
    color: #495057 !important;
    line-height: 1.3 !important;
}

/* Responsividade extra para telas muito pequenas */
@media (max-width: 360px) {
    .evento-header {
        gap: 0.5rem !important;
    }
    
    .evento-status-icon {
        width: 40px !important;
    }
    
    .evento-titulo {
        font-size: 0.9rem !important;
    }
    
    .evento-badges .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

.status-buttons .btn-group label.btn {
    font-size: 0.875rem !important;         /* Tamanho de fonte mais proporcional (14px) */
    text-transform: capitalize !important;  /* Apenas a primeira letra em maiúsculo */
    padding: 6px 16px !important;           /* Reduz o padding para diminuir altura */
    border-radius: 20px !important;         /* Bordas mais arredondadas e suaves */
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.status-buttons .btn-group input[type="radio"]:checked + label {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.activity-item.selected .status-buttons {
    display: block !important;
}

/* Estilo especial para o ícone legendário */
.legendario-icon {
    color: #F15A22 !important;
}

/* Estado ativo/selecionado (input:checked + label) */
.btn-check:checked + .btn-outline-warning {
    background-color: #f0ad4e !important;
    color: #fff !important;
    border-color: #f0ad4e !important;
}

.btn-check:checked + .btn-outline-success {
    background-color: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-btn-active-bg) !important;
    color: #fff !important;
    border-color: var(--bs-btn-active-bg) !important;
}

/* Adicional (visual mais suave no hover e foco) */
.btn-outline-warning:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    opacity: 0.9;
}



/* Melhorias na busca mobile */
#buscaEventosMobile {
    border-radius: 6px 0 0 6px !important;
}

#limparBuscaMobile {
    border-radius: 0 6px 6px 0 !important;
}

/* Loading state para eventos mobile */
.evento-card-mobile.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover effect melhorado para mobile */
@media (hover: hover) {
    .evento-card:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1) !important;
    }
}

/* Focus states para acessibilidade */
.evento-header .dropdown button:focus {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25) !important;
}

#buscaEventosMobile:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Animação suave para filtros */
.evento-card-mobile {
    transition: all 0.2s ease-in-out !important;
}

.evento-card-mobile[style*="none"] {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

.evento-descricao {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Detalhes do evento */
.evento-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evento-detalhe-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.evento-detalhe-icon {
    width: 16px;
    text-align: center;
    color: #6c757d;
    margin-top: 2px;
    flex-shrink: 0;
}

.evento-detalhe-content {
    flex: 1;
    color: #495057;
}

/* Ações do evento */
.evento-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .evento-titulo {
        font-size: 1rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .evento-header {
        gap: 0.75rem;
    }
    
    .evento-status-icon {
        width: 40px;
    }
}

/* Melhorias na tabela desktop */
@media (min-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}

/* Estilos para os botões de ação */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    margin: 0 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-action-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-action-view:hover {
    background-color: #1976d2;
    color: white;
}

.btn-action-edit {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-action-edit:hover {
    background-color: #f57c00;
    color: white;
}

.btn-action-delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.btn-action-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Cards de estatísticas */
.stat-card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Filtros ativos */
.filtros-ativos {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
}

.filtro-ativo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.125rem;
    font-size: 0.8rem;
}

/* Container principal do card mobile */
.evento-card-content-mobile {
    position: relative !important;
    overflow: hidden !important;
}

/* Classes de status com bordas laterais coloridas */
.evento-card-content-mobile.programado {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%) !important;
}

.evento-card-content-mobile.andamento {
    border-left: 4px solid #28a745 !important;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%) !important;
}

.evento-card-content-mobile.finalizado {
    border-left: 4px solid #6c757d !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* Badge de status mobile - maior e mais vistoso */
.evento-status-badge-mobile {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Animação para evento em andamento */
.pulse-badge {
    animation: pulse-glow-mobile 2s ease-in-out infinite !important;
}

@keyframes pulse-glow-mobile {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5) !important;
        transform: scale(1) !important;
    }
    50% { 
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8) !important;
        transform: scale(1.05) !important;
    }
}

/* Título do evento mobile */
.evento-titulo-mobile {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
    word-break: break-word !important;
}

/* Badges informativos mobile */
.evento-card-content-mobile .badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

/* Descrição do evento mobile */
.evento-descricao-mobile {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #6c757d !important;
    text-align: center !important;
}

/* Detalhes do evento mobile */
.evento-detalhes-mobile {
    margin: 1rem 0 !important;
}

.evento-detalhes-mobile .d-flex {
    margin-bottom: 0.5rem !important;
}

.evento-detalhes-mobile small {
    font-size: 0.8rem !important;
    color: #6c757d !important;
}

.evento-detalhes-mobile i {
    width: 16px !important;
    text-align: center !important;
    color: #6c757d !important;
}

/* Botões de ação mobile */
.evento-card-content-mobile .btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.evento-card-content-mobile .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.evento-card-content-mobile .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

/* Hover effect no card inteiro */
.evento-card {
    transition: all 0.2s ease !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
}

.evento-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-color: #0d6efd !important;
}

/* Responsividade para telas muito pequenas */
@media (max-width: 360px) {
    .evento-titulo-mobile {
        font-size: 1rem !important;
    }
    
    .evento-status-badge-mobile {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .evento-card-content-mobile .badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .evento-card-content-mobile .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* Melhorias na busca mobile */
#buscaEventosMobile {
    border-radius: 8px 0 0 8px !important;
    border: 1px solid #ced4da !important;
}

#buscaEventosMobile:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

#limparBuscaMobile {
    border-radius: 0 8px 8px 0 !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
}

/* Loading state */
.evento-card-mobile.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Animação suave para filtros */
.evento-card-mobile {
    transition: all 0.3s ease-in-out !important;
}

.evento-card-mobile[style*="none"] {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

/* Estado vazio melhorado */
#nenhumEventoEncontrado {
    padding: 2rem !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 12px !important;
    border: 2px dashed #dee2e6 !important;
}

#nenhumEventoEncontrado i {
    color: #6c757d !important;
    margin-bottom: 1rem !important;
}

/* Fix para dropdowns mobile */
.evento-card-content-mobile .dropdown-menu {
    border-radius: 8px !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e9ecef !important;
}

.evento-card-content-mobile .dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
}

.evento-card-content-mobile .dropdown-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(5px) !important;
}

/* Bordas e sombras melhoradas */
.evento-card {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.justify-content-start {
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Classes auxiliares */
.text-gray-700 {
    color: var(--gray-700) !important;
}

/* Estilos para o Mini Organograma */
/* Estilos para o Mini Organograma */
.organograma-mini-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* RESET ESPECÍFICO PARA IMAGENS DA HIERARQUIA - MÁXIMA ESPECIFICIDADE */
.organograma-mini-container .hierarchy-photo img,
.organograma-mini-container .hierarchy-avatar-img,
.info-card .organograma-mini-container img,
.card-body .organograma-mini-container img {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* CLASSES ESPECÍFICAS PARA CADA TIPO DE AVATAR */
.organograma-mini-container .hierarchy-avatar-img,
.organograma-mini-container .hierarchy-pastor-img,
.organograma-mini-container .hierarchy-gestor-img,
.organograma-mini-container .hierarchy-lider-img,
.organograma-mini-container .hierarchy-colider-img,
.organograma-mini-container .hierarchy-anfitriao-img,
.organograma-mini-container .hierarchy-participante-img,
.info-card .hierarchy-avatar-img,
.card-body .hierarchy-avatar-img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
}

.hierarchy-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #6a8caf, #89a5c4);
    margin: 0 auto;
}

.hierarchy-level {
    position: relative;
    margin-bottom: 20px;
}

.hierarchy-title {
    background: white;
    padding: 5px 15px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hierarchy-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Layout para 2 itens usando data-count */
.hierarchy-row[data-count="2"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

/* Quando há 2 itens, forçar layout 2x1 (fallback com :has) */
.hierarchy-row:has(.hierarchy-card:nth-child(2):last-child) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 420px;
    margin: 0 auto;
}

/* Fallback para navegadores que não suportam :has() */
.hierarchy-row-two-items {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

.hierarchy-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.hierarchy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hierarchy-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hierarchy-avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
}

/* PLACEHOLDERS COM ESPECIFICIDADE AUMENTADA */
.organograma-mini-container .hierarchy-placeholder,
.info-card .hierarchy-placeholder,
.card-body .hierarchy-placeholder {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    position: relative !important;
    z-index: 1 !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
}

.hierarchy-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.2;
}

.hierarchy-badge {
    text-align: center;
    margin-bottom: 8px;
}

.hierarchy-badge .badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    font-weight: 600;
}

.hierarchy-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
}

.whatsapp-link-mini {
    color: #25d366 !important;
    text-decoration: none !important;
    font-size: 16px;
    transition: all 0.2s ease;
}

.whatsapp-link-mini:hover {
    color: #128c7e !important;
    transform: scale(1.2);
}

.phone-text {
    color: #6c757d;
    font-weight: 500;
}

.hierarchy-connector-down {
    width: 2px;
    height: 25px;
    background: linear-gradient(to bottom, #dee2e6, transparent);
    margin: 15px auto 0;
}

/* Cores específicas dos cards */
.pastor-card {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
}

.gestor-card {
    border-color: #007bff !important;
    background: rgba(0, 123, 255, 0.05) !important;
}

.lider-card {
    border-color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.05) !important;
}

.colider-card {
    border-color: #17a2b8 !important;
    background: rgba(23, 162, 184, 0.05) !important;
}

.anfitriao-card {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.05) !important;
}

.participante-card {
    border-color: #6c757d !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .hierarchy-card {
        width: 160px;
        padding: 12px;
    }
    
    /* Layout responsivo para 2 itens */
    .hierarchy-row {
        gap: 10px;
    }
    
    .hierarchy-row[data-count="2"] {
        grid-template-columns: 1fr 1fr !important;
        max-width: 340px !important;
        gap: 10px !important;
    }
    
    .hierarchy-row:has(.hierarchy-card:nth-child(2):last-child),
    .hierarchy-row-two-items {
        grid-template-columns: 1fr 1fr !important;
        max-width: 340px !important;
        gap: 10px !important;
    }
    
    .organograma-mini-container .hierarchy-avatar-img,
    .organograma-mini-container .hierarchy-pastor-img,
    .organograma-mini-container .hierarchy-gestor-img,
    .organograma-mini-container .hierarchy-lider-img,
    .organograma-mini-container .hierarchy-colider-img,
    .organograma-mini-container .hierarchy-anfitriao-img,
    .organograma-mini-container .hierarchy-participante-img,
    .info-card .hierarchy-avatar-img {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        border: 2px solid white !important;
    }
    
    .organograma-mini-container .hierarchy-placeholder,
    .info-card .hierarchy-placeholder {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        font-size: 16px !important;
        border: 2px solid white !important;
    }
    
    .hierarchy-name {
        font-size: 0.8rem;
    }
    
    .grupo-header .row .col-4 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hierarchy-card {
        width: 140px;
        padding: 10px;
    }
    
    /* Em telas muito pequenas, manter 2x1 mas com cards menores */
    .hierarchy-row[data-count="2"] {
        grid-template-columns: 1fr 1fr !important;
        max-width: 300px !important;
        gap: 8px !important;
    }
    
    .hierarchy-row:has(.hierarchy-card:nth-child(2):last-child),
    .hierarchy-row-two-items {
        grid-template-columns: 1fr 1fr !important;
        max-width: 300px !important;
        gap: 8px !important;
    }
    
    /* Para 1 item apenas, centralizar */
    .hierarchy-row[data-count="1"],
    .hierarchy-row:has(.hierarchy-card:only-child) {
        display: flex !important;
        justify-content: center !important;
    }
    
    .grupo-header .row {
        text-align: center;
    }
    
    .grupo-header .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Estilos base mantidos */
.colider-card-name {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100%;
}

.table td {
    text-align: left !important;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.whatsapp-link:hover {
    color: #128C7E;
    background-color: rgba(37, 211, 102, 0.1);
    text-decoration: none;
    transform: scale(1.05);
}

.whatsapp-icon {
    margin-right: 5px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-link:hover .whatsapp-icon {
    animation: none;
    transform: scale(1.2);
}

.phone-number {
    color: #6c757d;
    font-size: 0.875rem;
}

.copy-phone-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.copy-phone-btn:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Novos estilos para mobile */
.colider-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.colider-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.colider-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.colider-avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .colider-card h6 {
        font-size: 0.95rem !important;
    }
    
    .colider-card .small {
        font-size: 0.8rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .colider-avatar, .colider-avatar-placeholder {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    
    .colider-card .row {
        align-items: flex-start !important;
    }
}

/* Força a aplicação dos estilos da imagem sobre qualquer CSS externo */
.d-lg-none .colider-card .colider-avatar {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Força especificamente para telas muito pequenas */
@media (max-width: 576px) {
    .d-lg-none .colider-card .colider-avatar {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
}

/* Seletor ainda mais específico caso necessário */
.card.colider-card .card-body .row .col-auto .colider-avatar {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Melhorias na tabela desktop */
@media (min-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}


/* Novos estilos para mobile */
.anfitriao-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.anfitriao-card:hover {
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.anfitriao-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.anfitriao-avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .anfitriao-card h6 {
        font-size: 0.95rem !important;
    }
    
    .anfitriao-card .small {
        font-size: 0.8rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .anfitriao-avatar, .anfitriao-avatar-placeholder {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .anfitriao-card .row {
        align-items: flex-start !important;
    }
}

/* Melhorias na tabela desktop */
@media (min-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}

/* Força a aplicação dos estilos da imagem sobre qualquer CSS externo */
.d-lg-none .anfitriao-card .anfitriao-avatar {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Força especificamente para telas muito pequenas */
@media (max-width: 576px) {
    .d-lg-none .anfitriao-card .anfitriao-avatar {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
}

/* Seletor ainda mais específico caso necessário */
.card.anfitriao-card .card-body .row .col-auto .anfitriao-avatar {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Estilos mobile para participantes */
.participante-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.participante-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.participante-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.participante-avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

/* Força a aplicação dos estilos sobre qualquer CSS externo */
.d-lg-none .participante-card .participante-avatar {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Responsividade para telas pequenas */
@media (max-width: 576px) {
    .participante-avatar, .participante-avatar-placeholder {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .d-lg-none .participante-card .participante-avatar {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .participante-card h6 {
        font-size: 0.95rem !important;
    }
    
    .participante-card .small {
        font-size: 0.8rem !important;
    }
}

/* Badges e elementos especiais */
.funcao-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
}

.badge-especial {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
}

/* Styling para casais */
.casal-mobile {
    border-left: 3px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.casal-mobile .participante-avatar {
    border-color: #dc3545 !important;
}


/* Estilos mobile para frequências */
.frequencia-card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.frequencia-card:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Cards de estatísticas responsivos */
@media (max-width: 576px) {
    .stats-card .card-body {
        padding: 1rem 0.75rem !important;
    }
    
    .stats-number {
        font-size: 1.5rem !important;
    }
    
    .stats-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .progress-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .progress-circle::before {
        width: 45px !important;
        height: 45px !important;
    }
    
    .percentage-text {
        font-size: 0.875rem !important;
    }
}

/* Badges de status */
.status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}


/* Indicadores visuais mobile */
.frequencia-status-excelente {
    border-left: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.frequencia-status-bom {
    border-left: 4px solid #20c997;
    background-color: rgba(32, 201, 151, 0.05);
}

.frequencia-status-regular {
    border-left: 4px solid #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.frequencia-status-baixo {
    border-left: 4px solid #fd7e14;
    background-color: rgba(253, 126, 20, 0.05);
}

.frequencia-status-critico {
    border-left: 4px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Melhorias na tabela desktop */
@media (min-width: 768px) {
    .frequency-table .table-responsive {
        border: none;
    }
    
    .frequency-table .table th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.9rem;
        color: #495057;
    }
    
    .frequency-table .table td {
        vertical-align: middle;
        border-color: #e9ecef;
    }
    
    .frequency-table .table tbody tr:hover {
        background-color: #f8f9fa;
    }
}

.tooltip-inner {
    font-size: 12px;
}

/* Badges de categoria */
.categoria-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Cards de estatísticas */
.stat-card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Definições específicas dos ícones problemáticos */
.fa-check-circle::before {
    content: "\f058" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-star::before {
    content: "\f005" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-user-check::before {
    content: "\f4fc" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-redo::before {
    content: "\f01e" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-user-plus::before {
    content: "\f234" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-history::before {
    content: "\f1da" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-whatsapp::before {
    content: "\f232" !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.fa-copy::before {
    content: "\f0c5" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-eye::before {
    content: "\f06e" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-edit::before {
    content: "\f044" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-trash::before {
    content: "\f2ed" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Estilização dos status badges */
.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Cards de visitantes */
.visitor-card {
    transition: all 0.2s ease;
}

.visitor-card:hover {
    background-color: rgba(106, 27, 154, 0.02);
    transform: translateY(-1px);
}

/* WhatsApp styling */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.whatsapp-link:hover {
    color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-icon {
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.copy-phone-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.copy-phone-btn:hover {
    background-color: rgba(108, 117, 125, 0.1);
    color: #495057;
    transform: scale(1.1);
}

/* Visit count badge */
.visit-count-badge {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Action buttons */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visitor-card td {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Fallback para ícones que não carregam */
.icon-fallback {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #6c757d;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
}


.photo-preview-container {
    display: inline-block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.photo-preview-container:hover .photo-overlay {
    opacity: 1;
}

.preview-foto {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--gray-300);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-preview-container:hover .preview-foto {
    transform: scale(1.05);
}

.foto-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    border: 3px solid var(--gray-300);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.photo-preview-container:hover .foto-placeholder {
    background: var(--gray-200);
    transform: scale(1.05);
}

.custom-file-input {
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-input:hover {
    background-color: var(--gray-50);
}

.custom-file-input:hover .btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsivo */
@media (max-width: 768px) {
    .preview-foto, .foto-placeholder {
        width: 120px !important;
        height: 120px !important;
    }
}

.participante-nome {
    color: #000000;
}

/* === MODAL DE PARTICIPANTES - LAYOUT HORIZONTAL === */

/* Container principal da lista horizontal */
.participant-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Card horizontal de participante */
.participant-horizontal-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    opacity: 0;
    transform: translateX(-20px);
}

.participant-horizontal-card:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Variações por status */
.participant-horizontal-card.presentes {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f8ea 100%);
}

.participant-horizontal-card.presentes:hover {
    border-color: #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.participant-horizontal-card.ausentes {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #fde8e8 100%);
}

.participant-horizontal-card.ausentes:hover {
    border-color: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Foto do participante horizontal */
.participant-photo-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.participant-photo-placeholder-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Informações do participante */
.participant-info-horizontal {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.participant-name-horizontal {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.participant-details-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Badge de tipo horizontal */
.participant-type-badge-horizontal {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Telefone horizontal */
.participant-phone-horizontal {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.participant-phone-horizontal span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.participant-phone-horizontal span:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Ícone de status horizontal */
.status-icon-horizontal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.status-icon-horizontal.presentes {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.status-icon-horizontal.ausentes {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

/* Badges especiais horizontais */
.special-badges-horizontal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.special-badge-horizontal {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.special-badge-horizontal.legendario {
    background: #FF6B35;
    color: white;
}

.special-badge-horizontal.batizado {
    background: #17a2b8;
    color: white;
}

/* Campo de busca do modal */
.search-container-horizontal {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

/* Contador de participantes */
.participant-counter {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Scrollbar personalizada para a lista */
.participant-horizontal-list::-webkit-scrollbar {
    width: 6px;
}

.participant-horizontal-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.participant-horizontal-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.participant-horizontal-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* SOBRESCREVER ESTILOS ANTIGOS */
/* Remover grid layout antigo e forçar layout horizontal */
#listaParticipantes.participant-horizontal-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

#listaParticipantes.participant-horizontal-list .row {
    display: none !important;
}

#listaParticipantes.participant-horizontal-list .col-md-6,
#listaParticipantes.participant-horizontal-list .col-lg-4,
#listaParticipantes.participant-horizontal-list .col-xl-3 {
    display: none !important;
}

/* Garantir que cards antigos não apareçam */
.participant-modal-card {
    display: none !important;
}

/* Mostrar apenas cards horizontais */
.participant-horizontal-card {
    display: flex !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .participant-horizontal-card {
        padding: 0.75rem;
        gap: 0.75rem;
        flex-direction: row;
        min-height: 70px;
    }
    
    .participant-photo-horizontal,
    .participant-photo-placeholder-horizontal {
        width: 40px;
        height: 40px;
    }
    
    .participant-name-horizontal {
        font-size: 0.9rem;
    }
    
    .participant-details-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-icon-horizontal {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .participant-horizontal-list {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .participant-horizontal-card {
        padding: 0.5rem;
        gap: 0.5rem;
        min-height: 60px;
    }
    
    .participant-details-horizontal {
        gap: 0.25rem;
    }
    
    .participant-type-badge-horizontal {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .participant-phone-horizontal {
        font-size: 0.8rem;
    }
    
    .status-icon-horizontal {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .participant-horizontal-list {
        max-height: 250px;
        gap: 0.5rem;
    }
}

/* Animações */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.participant-horizontal-card.show {
    animation: slideInLeft 0.4s ease forwards;
}

/* Loading estado */
.participant-horizontal-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.participant-horizontal-card.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state melhorado */
#emptyState {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

#emptyState i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* === CORREÇÕES PARA VISIBILIDADE DO HEADER === */

/* Melhorias no modal header para melhor contraste */
#modalDetalhes .modal-header {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
    color: white;
    border-radius: 0.375rem 0.375rem 0 0;
}

#modalDetalhes .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: white !important; /* Força cor branca */
}

#modalDetalhes .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#modalDetalhes .btn-close:hover {
    opacity: 1;
}

/* Info items do header do modal - CORREÇÃO DE VISIBILIDADE */
.info-item {
    margin-bottom: 0.75rem;
}

.info-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #495057 !important; /* Cor escura para contraste */
}

.info-label i {
    color: #6a1b9a !important; /* Ícones em roxo */
}

.info-label strong {
    color: #495057 !important; /* Texto forte em cinza escuro */
}

.info-value {
    font-size: 1rem;
    color: #2c3e50 !important; /* Cor escura para boa visibilidade */
    font-weight: 600;
}

.info-value span {
    color: #2c3e50 !important; /* Força cor escura nos spans */
}

/* Melhorar contraste do body do modal */
#modalDetalhes .modal-body {
    background: #ffffff;
    color: #2c3e50;
}

/* Contador de participantes - melhor visibilidade */
.participant-counter {
    font-size: 0.9rem;
    color: #495057 !important; /* Cor mais escura */
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #e3f2fd !important; /* Fundo azul claro */
    border-radius: 8px;
    border-left: 4px solid #2196f3 !important; /* Borda azul */
    font-weight: 500;
}

.participant-counter i {
    color: #2196f3 !important; /* Ícone azul */
}

/* Melhorar contraste dos campos de busca */
.search-container-horizontal .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.search-container-horizontal .form-control {
    border-color: #dee2e6;
    color: #495057;
}

.search-container-horizontal .form-control:focus {
    border-color: #6a1b9a;
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
}

/* Melhorias no footer do modal */
.modal-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== CENTRALIZAÇÃO DE BADGES EM TABELAS ===== */

/* Centralizar badges em células da tabela */
.table td .status-badge,
.table td .type-badge,
.table td .percentage-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 60px !important;
    margin: 0 auto !important;
}

/* Centralizar o conteúdo das células que contêm badges */
.table td:has(.status-badge),
.table td:has(.type-badge), 
.table td:has(.percentage-badge) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Alternativa para navegadores que não suportam :has() */
.table .text-center {
    text-align: center !important;
    vertical-align: middle !important;
}

.table .text-center .status-badge,
.table .text-center .type-badge,
.table .text-center .percentage-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Específico para badges de status */
.status-badge {
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    min-width: 50px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Específico para badges de percentual */
.percentage-badge {
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    min-width: 55px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Específico para badges de tipo */
.type-badge {
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Forçar centralização em células específicas */
.table tbody td:nth-child(3), /* Matriculados */
.table tbody td:nth-child(4), /* Em Andamento */
.table tbody td:nth-child(5), /* Concluídos */
.table tbody td:nth-child(6), /* Desistentes */
.table tbody td:nth-child(7)  /* % Conclusão */ {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Classe utilitária para aplicar diretamente nas TDs */
.td-center {
    text-align: center !important;
    vertical-align: middle !important;
}

.td-center .status-badge,
.td-center .type-badge,
.td-center .percentage-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Progress bar centralizada */
.table .d-flex.align-items-center {
    justify-content: center !important;
}

.table .d-flex.align-items-center .percentage-badge {
    margin: 0 !important;
}

/* Hover effects para badges */
.status-badge:hover,
.type-badge:hover,
.percentage-badge:hover {
    transform: scale(1.05) !important;
    transition: transform 0.2s ease !important;
}

/* Cores específicas para badges de status */
.status-badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
}

.status-badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
}

.status-badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    color: white !important;
}

.status-badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .status-badge,
    .type-badge,
    .percentage-badge {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        min-width: 45px !important;
    }
    
    .table td {
        padding: 0.5rem 0.25rem !important;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA RELATÓRIO DE MINISTÉRIOS ===== */

/* Tabela com header primário aprimorado */
.table thead.primary-header > tr > th {
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%) !important;
    color: #ffffff !important;
    border-bottom: 3px solid #4a148c !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    padding: 1.25rem 1rem !important;
    text-transform: uppercase !important;
    position: relative !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.table thead.primary-header > tr > th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.table thead.primary-header > tr > th:first-child {
    border-top-left-radius: 12px !important;
}

.table thead.primary-header > tr > th:last-child {
    border-top-right-radius: 12px !important;
}

.table thead.primary-header th + th {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table thead.primary-header th:hover {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%) !important;
    transition: all 0.3s ease !important;
}

/* Hover effect aprimorado para linhas da tabela */
.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.05) 0%, rgba(106, 27, 154, 0.02) 100%) !important;
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Cards de estatísticas com bordas coloridas */
.card.border-left-primary {
    border-left: 4px solid #007bff !important;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card.border-left-success {
    border-left: 4px solid #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card.border-left-info {
    border-left: 4px solid #17a2b8 !important;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card.border-left-warning {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* Badges aprimorados */
.badge.rounded-pill {
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border: 2px solid transparent !important;
}

.badge.bg-info.rounded-pill {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
    border-color: rgba(23, 162, 184, 0.2) !important;
}

.badge.bg-success.rounded-pill {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: rgba(40, 167, 69, 0.2) !important;
}

.badge.bg-primary.rounded-pill {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%) !important;
    border-color: rgba(0, 123, 255, 0.2) !important;
}

.badge.bg-warning.rounded-pill {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
    color: #212529 !important;
}

.badge.bg-danger.rounded-pill {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

/* Container de gráficos */
.chart-container {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.5) 100%);
    border-radius: 12px;
    margin: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Botões de exportação */
.export-buttons .btn {
    margin-left: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.export-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Indicadores de cor dos ministérios */
.ministerio-cor-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-right: 0.5rem;
}

/* Cards de destaque */
.card-destaque {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-destaque:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Progresso customizado */
.progress-custom {
    height: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress-custom .progress-bar {
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* Alert aprimorado */
.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    border-radius: 8px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%) !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
    border-radius: 8px;
}

/* Estado vazio melhorado */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.empty-state i {
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .export-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .export-buttons .btn {
        margin: 0;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .table thead.primary-header > tr > th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .badge.rounded-pill {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 0.5rem;
    }
    
    .card-destaque {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .export-buttons,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .table thead.primary-header > tr > th {
        background: #6a1b9a !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .table {
        font-size: 11px;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    .badge {
        border: 1px solid #000 !important;
    }
}

/* Adicionar no layout principal (layouts/admin.blade.php) na seção <head> */

/* Alert warning personalizado para modais escuros */
.modal .alert.alert-warning,
.modal-dark .alert-warning,
.modal-confirmacao .alert-warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%) !important;
    border: 1px solid #ed8936 !important;
    color: #1a202c !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2) !important;
}

.modal .alert.alert-warning strong,
.modal-dark .alert-warning strong,
.modal-confirmacao .alert-warning strong {
    color: #1a202c !important;
    font-weight: 700 !important;
}

.modal .alert.alert-warning .fas,
.modal-dark .alert-warning .fas,
.modal-confirmacao .alert-warning .fas {
    color: #1a202c !important;
}

.modal .alert.alert-warning ul li,
.modal-dark .alert-warning ul li,
.modal-confirmacao .alert-warning ul li {
    color: #1a202c !important;
}

/* Alert danger personalizado para modais */
.modal .alert.alert-danger,
.modal-dark .alert-danger,
.modal-confirmacao .alert-danger {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%) !important;
    border: 1px solid #e53e3e !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2) !important;
}

.modal .alert.alert-danger strong,
.modal-dark .alert-danger strong,
.modal-confirmacao .alert-danger strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.modal .alert.alert-danger .fas,
.modal-dark .alert-danger .fas,
.modal-confirmacao .alert-danger .fas {
    color: #ffffff !important;
}

/* Alert info personalizado para modais */
.modal .alert.alert-info,
.modal-dark .alert-info,
.modal-confirmacao .alert-info {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%) !important;
    border: 1px solid #3182ce !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2) !important;
}

.modal .alert.alert-info strong,
.modal-dark .alert-info strong,
.modal-confirmacao .alert-info strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.modal .alert.alert-info .fas,
.modal-dark .alert-info .fas,
.modal-confirmacao .alert-info .fas {
    color: #ffffff !important;
}

.modal .alert.alert-info ul li,
.modal-dark .alert-info ul li,
.modal-confirmacao .alert-info ul li {
    color: #ffffff !important;
}

/* Modais com fundo escuro */
.modal-dark .modal-content {
    background-color: #2d3748 !important;
    color: #ffffff !important;
    border: 1px solid #4a5568 !important;
}

.modal-dark .modal-header {
    background-color: #1a202c !important;
    color: #ffffff !important;
    border-bottom: 1px solid #4a5568 !important;
}

.modal-dark .modal-body {
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

.modal-dark .modal-footer {
    background-color: #1a202c !important;
    border-top: 1px solid #4a5568 !important;
}

.modal-dark .modal-title {
    color: #ffffff !important;
}

.modal-dark .btn-close {
    filter: invert(1) !important;
}

/* Especificidade extra para garantir sobreposição */
.modal .alert-warning.alert-warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%) !important;
    color: #1a202c !important;
}

.modal .alert-danger.alert-danger {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%) !important;
    color: #ffffff !important;
}

.modal .alert-info.alert-info {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%) !important;
    color: #ffffff !important;
}

/* Força máxima para sobreposição - última tentativa */
div.modal div.alert.alert-warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%) !important;
    border-color: #ed8936 !important;
    color: #1a202c !important;
}

div.modal div.alert.alert-warning * {
    color: #1a202c !important;
}

div.modal div.alert.alert-danger {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%) !important;
    border-color: #e53e3e !important;
    color: #ffffff !important;
}

div.modal div.alert.alert-danger * {
    color: #ffffff !important;
}

div.modal div.alert.alert-info {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%) !important;
    border-color: #3182ce !important;
    color: #ffffff !important;
}

div.modal div.alert.alert-info * {
    color: #ffffff !important;
}


/* =====================================================
   BOTÕES DE AÇÃO - PARTICIPANTES INDEX
   ===================================================== */

/* Container dos botões de ação */
.action-buttons {
    display: flex;
    gap: 0.15rem;
    justify-content: center;
    align-items: center;
}

/* Estilo base para todos os botões de ação */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid;
    border-radius: 0.375rem;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Botão Visualizar - Azul */
.btn-action-view {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-action-view:hover {
    color: #ffffff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-action-view:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.btn-action-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

/* Botão Editar - Amarelo/Laranja */
.btn-action-edit {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-action-edit:hover {
    color: #ffffff;
    background-color: #fd7e14;
    border-color: #fd7e14;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
}

.btn-action-edit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.25);
}

.btn-action-edit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

/* Botão Excluir - Vermelho */
.btn-action-delete {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-action-delete:hover {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-action-delete:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.btn-action-delete:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Botão WhatsApp - Verde */
.btn-action-whats {
    color: #25D366;
    border-color: #25D366;
}

.btn-action-whats:hover {
    color: #ffffff;
    background-color: #25D366;
    border-color: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-action-whats:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
}

.btn-action-whats:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

/* Estados disabled para WhatsApp */
.btn-action-whats:disabled,
.btn-action-whats[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-action-whats:disabled:hover,
.btn-action-whats[disabled]:hover {
    background-color: transparent !important;
    color: #25D366 !important;
    transform: none !important;
    box-shadow: none !important;
}


/* Botão Converter - Roxo */
.btn-action-convert {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-action-convert:hover {
    color: #ffffff;
    background-color: #6f42c1;
    border-color: #6f42c1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

.btn-action-convert:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
}

.btn-action-convert:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

/* Estados disabled para Converter */
.btn-action-convert:disabled,
.btn-action-convert[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-action-convert:disabled:hover,
.btn-action-convert[disabled]:hover {
    background-color: transparent !important;
    color: #6f42c1 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Estados disabled */
.btn-action:disabled,
.btn-action[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-action:disabled:hover,
.btn-action[disabled]:hover {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ícones dentro dos botões */
.btn-action i {
    font-size: 14px;
    line-height: 1;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .btn-action i {
        font-size: 12px;
    }
    
    .action-buttons {
        gap: 0.125rem;
    }
}

/* Variação com tooltips personalizados (opcional) */
.btn-action[data-tooltip] {
    position: relative;
}

.btn-action[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.25rem;
}

.btn-action[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Animação de loading para botões (opcional) */
.btn-action.loading {
    pointer-events: none;
}

.btn-action.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Agrupamento de botões lado a lado */
.btn-group-action {
    display: inline-flex;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-group-action .btn-action {
    border-radius: 0;
    margin: 0;
    border-right-width: 1px;
}

.btn-group-action .btn-action:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group-action .btn-action:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-right-width: 2px;
}

.btn-group-action .btn-action:not(:last-child) {
    border-right-width: 1px;
}

/* Estados especiais para contextos específicos */
.table-actions {
    text-align: center;
    vertical-align: middle;
}

.table-actions .action-buttons {
    justify-content: center;
}

/* Estilo alternativo mais compacto */
.btn-action-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.btn-action-sm i {
    font-size: 11px;
}

/* Estilo alternativo maior */
.btn-action-lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.btn-action-lg i {
    font-size: 16px;
}



/* Info do ministrante no cabeçalho */
.ministrante-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ministrante-info .fw-bold {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Ministrante no calendário */
.ministrante-dia {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.ministrante-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
}

.ministrante-badge i {
    color: #667eea;
    font-size: 0.75rem;
}

.ministrante-badge strong {
    color: #4a5568;
    font-size: 0.75rem;
    line-height: 1.2;
}

.ministrante-badge .text-muted {
    font-size: 0.65rem;
    color: #6c757d !important;
}

/* Modal - Seção do ministrante */
#modalMinistrante {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Responsividade para ministrante */
@media (max-width: 768px) {
    .ministrante-info {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .ministrante-info .fw-bold {
        font-size: 0.8rem;
    }
    
    .ministrante-badge {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .ministrante-badge strong {
        font-size: 0.7rem;
    }
    
    .ministrante-badge .text-muted {
        font-size: 0.6rem;
    }
}

/* Animação para o badge do ministrante */
.ministrante-dia {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.ministrante-dia:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Badge especial para ministrante no cabeçalho */
.info-value .ministrante-info {
    display: inline-block;
    margin: 0;
}

/* Indicador visual quando há ministrante */
.calendar-card:has(.ministrante-dia) {
    border-left: 3px solid #667eea;
}

.calendar-card:has(.ministrante-dia) .calendar-header {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

/* === ANIMATION KEYFRAMES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar legibilidade do texto no modal */
.modal-body .info-item {
    margin-bottom: 0.75rem;
}

.modal-body .info-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.modal-body .info-value {
    font-size: 0.95rem;
}

/* Highlight especial quando ministrante está presente */
.has-ministrante {
    position: relative;
}

.has-ministrante::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

/* Tooltip customizado para ministrante */
.ministrante-tooltip {
    position: relative;
    cursor: help;
}

.ministrante-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.ministrante-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Estilo especial para cards de calendário com ministrante */
.calendar-card .ministrante-dia + .attendance-badges {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 0.75rem;
}

/* Ajustes para impressão */
@media print {
    .ministrante-info,
    .ministrante-dia {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        color: #333 !important;
    }
    
    .ministrante-badge i {
        color: #333 !important;
    }
    
    #modalMinistrante {
        background: transparent !important;
        color: #333 !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Estados de loading para ministrante */
.ministrante-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 1rem;
    width: 60%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Badges de tipo de ministrante */
.ministrante-type-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ministrante-type-pastor {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.ministrante-type-gestor {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.ministrante-type-lider {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

.ministrante-type-colider {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

/* Container especial para informações do ministrante no cabeçalho */
.ministrante-header-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.ministrante-header-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ministrantes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ministrante-item {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ministrante-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.ministrante-item strong {
    color: #4a5568;
}

.ministrante-item small {
    color: #667eea;
    font-weight: 500;
}


/* 
 * Arquivo: public/css/mobile-tables.css
 * Sistema Mobile-Friendly para Tabelas
 * Autor: Sistema GR
 * Versão: 1.0
 */

/* =================================================================
   DETECÇÃO AUTOMÁTICA DE MOBILE E APLICAÇÃO DE ESTILOS
   ================================================================= */

/* Esconder tabela desktop em mobile e mostrar cards */
@media (max-width: 991.98px) {
    .desktop-table-container,
    .d-none.d-lg-block {
        display: none !important;
    }
    
    .mobile-cards-container,
    .d-lg-none {
        display: block !important;
    }
}

/* Garantir que desktop não mostre cards mobile */
@media (min-width: 768px) {
    .mobile-cards-container,
    .d-lg-none {
        display: none !important;
    }
    
    .desktop-table-container,
    .d-none.d-lg-block {
        display: block !important;
    }
}

/* =================================================================
   ESTILOS BASE PARA CARDS MOBILE
   ================================================================= */

.mobile-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: auto;
}

.mobile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.mobile-card-body {
    padding: 1rem;
}

/* =================================================================
   COMPONENTES DE AVATAR/FOTO
   ================================================================= */

.mobile-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #e9ecef !important;
    flex-shrink: 0 !important;
}

.mobile-avatar-placeholder {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e9ecef !important;
    background-color: #6c757d;
    color: white;
    flex-shrink: 0 !important;
}

/* Tamanhos alternativos de avatar */
.mobile-avatar-sm {
    width: 35px !important;
    height: 35px !important;
}

.mobile-avatar-lg {
    width: 60px !important;
    height: 60px !important;
}

/* =================================================================
   SISTEMA DE BUSCA MOBILE
   ================================================================= */

.mobile-search-container {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.mobile-search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.mobile-search-clear-btn {
    border: none;
    background: none;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-search-clear-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* =================================================================
   CONTADORES E FEEDBACK
   ================================================================= */

.mobile-counter {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}

.mobile-counter i {
    margin-right: 0.3rem;
}

/* =================================================================
   BADGES E LABELS RESPONSIVOS
   ================================================================= */

.mobile-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: 500;
}

.mobile-type-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================================================
   INFORMAÇÕES EM LINHA
   ================================================================= */

.mobile-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.mobile-info-icon {
    width: 25px;
    margin-right: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.mobile-info-content {
    flex: 1;
    color: #495057;
}

.mobile-info-label {
    font-weight: 600;
    color: #343a40;
}

.mobile-info-value {
    color: #6c757d;
    margin-top: 0.2rem;
}

/* =================================================================
   BOTÕES DE AÇÃO MOBILE
   ================================================================= */

.mobile-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.mobile-action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* Variações dos botões */
.mobile-action-primary {
    background-color: #0d6efd;
    color: white;
}

.mobile-action-primary:hover {
    background-color: #0b5ed7;
    color: white;
}

.mobile-action-secondary {
    background-color: #6c757d;
    color: white;
}

.mobile-action-success {
    background-color: #198754;
    color: white;
}

.mobile-action-danger {
    background-color: #dc3545;
    color: white;
}

.mobile-action-warning {
    background-color: #ffc107;
    color: #000;
}

.mobile-action-outline {
    background-color: transparent;
    border-color: currentColor;
}

/* =================================================================
   DROPDOWN ACTIONS MOBILE
   ================================================================= */

.mobile-dropdown-toggle {
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
}

.mobile-dropdown-toggle:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.mobile-dropdown-menu {
    font-size: 0.85rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-menu .dropdown-item {
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.mobile-dropdown-menu .dropdown-divider {
    margin: 0.25rem 0;
}

/* =================================================================
   LINKS WHATSAPP MOBILE
   ================================================================= */

.mobile-whatsapp-link {
    display: inline-flex;
    align-items: center;
    color: #25D366;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.mobile-whatsapp-link:hover {
    color: #128C7E;
    background-color: rgba(37, 211, 102, 0.1);
    text-decoration: none;
    transform: scale(1.02);
}

.mobile-whatsapp-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.mobile-whatsapp-link:hover .mobile-whatsapp-icon {
    animation: none;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =================================================================
   BOTÃO COPIAR TELEFONE
   ================================================================= */

.mobile-copy-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    margin-left: 0.4rem;
}

.mobile-copy-btn:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.mobile-copy-feedback {
    color: #198754;
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =================================================================
   ESTADO VAZIO MOBILE
   ================================================================= */

.mobile-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.mobile-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #adb5bd;
}

.mobile-empty-state h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.mobile-empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* =================================================================
   ANIMAÇÕES
   ================================================================= */

.mobile-card-animate {
    animation: mobileSlideIn 0.3s ease-out;
}

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =================================================================
   FILTROS ATIVOS MOBILE
   ================================================================= */

.mobile-active-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.mobile-filter-badge {
    font-size: 0.7rem;
    margin: 0.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-clear-filters-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    margin-left: 0.5rem;
}

/* =================================================================
   RESPONSIVIDADE EXTRA
   ================================================================= */

@media (max-width: 576px) {
    .mobile-card-body {
        padding: 0.75rem !important;
    }
    
    .mobile-avatar,
    .mobile-avatar-placeholder {
        width: 40px !important;
        height: 40px !important;
    }
    
    .mobile-info-row {
        font-size: 1rem;
    }
    
    .mobile-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .mobile-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-search-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* =================================================================
   TOAST/FEEDBACK COMPONENTS
   ================================================================= */

.mobile-toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

.mobile-toast {
    background: #198754;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =================================================================
   UTILITÁRIOS MOBILE
   ================================================================= */

.mobile-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-text-small {
    font-size: 0.8rem;
}

.mobile-text-tiny {
    font-size: 0.7rem;
}

.mobile-mt-auto {
    margin-top: auto;
}

.mobile-sticky-top {
    position: sticky;
    top: 1rem;
    z-index: 10;
}

/* =================================================================
   LOADING STATES
   ================================================================= */

.mobile-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.mobile-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e9ecef;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === BREADCRUMB ELEGANTE === */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 10px;
}

/* === CARDS DE ESTATÍSTICAS MELHORADOS === */
.card.bg-success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card.bg-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.4);
}

.card.bg-danger {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(225, 112, 85, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card.bg-danger:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 112, 85, 0.4);
}

.card.bg-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(116, 185, 255, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card.bg-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(116, 185, 255, 0.4);
}

.card.bg-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card.bg-warning:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(253, 203, 110, 0.4);
}

/* === CARDS DOS PARTICIPANTES === */
.participant-card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.participant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.participant-card .card-body {
    padding: 20px;
    position: relative;
}

/* Foto do participante melhorada */
.participant-card img,
.participant-card .bg-secondary {
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.participant-card:hover img,
.participant-card:hover .bg-secondary {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Badges melhorados */
.participant-card .badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.bg-success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%) !important;
}

/* Ícones especiais */
.fas.fa-flag {
    filter: drop-shadow(0 2px 4px rgba(241, 90, 34, 0.3));
    animation: pulse 2s infinite;
}

.fas.fa-cross {
    filter: drop-shadow(0 2px 4px rgba(23, 162, 184, 0.3));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Status icon melhorado */
.participant-card .fa-check-circle,
.participant-card .fa-times-circle {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.participant-card:hover .fa-check-circle,
.participant-card:hover .fa-times-circle {
    transform: scale(1.1);
}

/* Link de telefone */
.participant-card a[href^="tel:"] {
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 6px;
}

.participant-card a[href^="tel:"]:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a6fd8;
    transform: translateX(3px);
}

/* === NAVEGAÇÃO ENTRE TIPOS === */
.btn-group .btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-group .btn:first-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.btn-group .btn:last-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    border-color: #00b894;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.btn-outline-success {
    color: #00b894 !important;
    border-color: #00b894 !important;
    background: transparent !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
    border-color: #00b894 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border-color: #e17055;
    box-shadow: 0 5px 15px rgba(225, 112, 85, 0.3);
}

.btn-outline-danger {
    color: #e17055 !important;
    border-color: #e17055 !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%) !important;
    border-color: #e17055 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.3) !important;
}

/* === BOTÕES DE AÇÃO === */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger {
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;    /* Alinha verticalmente */
    justify-content: center; /* Alinha horizontalmente */    
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
    vertical-align: middle;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    color: #ffffff  !important;
}


.ministerio-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ministerio-card:hover {
  border-color: var(--primary-color); /* laranja da identidade */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: var(--gray-100);
}


.cursos-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cursos-card:hover {
  border-color: var(--primary-color); /* laranja da identidade */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: var(--gray-100);
}

.eventos-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.eventos-card:hover {
  border-color: var(--primary-color); /* laranja da identidade */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: var(--gray-100);
}



/* === ESTADO VAZIO === */
.text-center.py-5 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    margin: 20px 0;
}

.text-center.py-5 .fa-user-check,
.text-center.py-5 .fa-user-times {
    color: rgba(102, 126, 234, 0.6);
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.1));
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 15px;
        border-radius: 12px;
    }
    
    .breadcrumb-item a {
        padding: 3px 6px;
        font-size: 0.9rem;
    }
    
    .participant-card .card-body {
        padding: 5px;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
        border-radius: 15px !important;
        margin: 2px;
    }
}

/* === ANIMAÇÕES SUAVES === */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animação aos cards */
.participant-card:nth-child(1) { animation-delay: 0.1s; }
.participant-card:nth-child(2) { animation-delay: 0.2s; }
.participant-card:nth-child(3) { animation-delay: 0.3s; }
.participant-card:nth-child(4) { animation-delay: 0.4s; }
.participant-card:nth-child(5) { animation-delay: 0.5s; }
.participant-card:nth-child(6) { animation-delay: 0.6s; }

.participant-card {
    animation: fadeIn 0.6s ease-out both;
}

/* === CORREÇÃO DEFINITIVA PARA BADGES CORTADOS NA IMPRESSÃO === */
@media print {
    /* Reset completo para garantir funcionamento */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box !important;
    }
    
    body {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: #fff !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    /* === CORREÇÃO ESPECÍFICA PARA BADGES === */
    
    /* Badge base - configuração robusta */
    .badge {
        /* Tamanho fixo e legível */
        font-size: 10px !important;
        font-weight: 700 !important;
        
        /* Padding adequado para não cortar */
        padding: 4px 8px !important;
        
        /* Altura mínima garantida */
        min-height: 18px !important;
        line-height: 1.2 !important;
        
        /* Layout inline-block para controle total */
        display: inline-block !important;
        vertical-align: middle !important;
        
        /* Texto sempre visível */
        white-space: nowrap !important;
        text-overflow: visible !important;
        overflow: visible !important;
        
        /* Bordas e cores para impressão */
        border: 1px solid #333 !important;
        border-radius: 4px !important;
        background: #f5f5f5 !important;
        color: #000 !important;
        
        /* Garantir que não seja cortado */
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        
        /* Espaçamento para não colar em outros elementos */
        margin: 1px 2px !important;
        
        /* Largura mínima para textos curtos */
        min-width: 40px !important;
        text-align: center !important;
    }
    
    /* Badge no cabeçalho do card - maior */
    .card-header .badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
        min-height: 22px !important;
        min-width: 50px !important;
    }
    
    /* Badges dentro dos cards de participantes - tamanho otimizado */
    .participant-card .badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
        min-height: 16px !important;
        min-width: 35px !important;
        
        /* Forçar largura automática baseada no conteúdo */
        width: auto !important;
        max-width: none !important;
        
        /* Garantir que o texto apareça completo */
        text-overflow: clip !important;
        overflow: visible !important;
    }
    
    /* Container dos badges - layout flexível que não corta */
    .participant-card .d-flex.flex-wrap,
    .d-flex.flex-wrap.gap-1 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        align-items: center !important;
        margin-bottom: 4px !important;
        
        /* Permitir expansão se necessário */
        overflow: visible !important;
        min-height: 20px !important;
    }
    
    /* === CORES ESPECÍFICAS PARA IMPRESSÃO === */
    
    /* Líder - Verde forte */
    .badge.bg-primary,
    .badge.bg-success {
        background: #e8f5e8 !important;
        border-color: #28a745 !important;
        color: #000 !important;
    }
    
    /* Colíder - Azul claro */
    .badge.bg-info {
        background: #e3f2fd !important;
        border-color: #2196f3 !important;
        color: #000 !important;
    }
    
    /* Anfitrião - Amarelo suave */
    .badge.bg-warning {
        background: #fff8e1 !important;
        border-color: #ffc107 !important;
        color: #000 !important;
    }
    
    /* Participante - Cinza claro */
    .badge.bg-secondary {
        background: #f1f3f4 !important;
        border-color: #6c757d !important;
        color: #000 !important;
    }
    
    /* Urgente/Perigo - Rosa claro */
    .badge.bg-danger {
        background: #fdeaea !important;
        border-color: #dc3545 !important;
        color: #000 !important;
    }
    
    /* === LAYOUT DOS CARDS === */
    
    .participant-card {
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        margin-bottom: 10px !important;
        background: #fff !important;
        
        /* Evitar quebra no meio do card */
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        
        /* Altura mínima para badges não serem cortados */
        min-height: 70px !important;
    }
    
    .participant-card .card-body {
        padding: 10px !important;
        display: flex !important;
        align-items: flex-start !important; /* Mudança: flex-start em vez de center */
        text-align: left !important;
        
        /* Altura mínima para acomodar badges */
        min-height: 50px !important;
    }
    
    /* Área da foto - fixa */
    .participant-card img,
    .participant-card .bg-secondary {
        width: 35px !important;
        height: 35px !important;
        border: 1px solid #ddd !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }
    
    /* Área de informações - flexível */
    .participant-card .flex-grow-1 {
        flex-grow: 1 !important;
        min-width: 0 !important;
        
        /* Dar espaço suficiente para badges */
        padding-right: 5px !important;
    }
    
    /* Nome do participante */
    .participant-card .card-title {
        font-size: 12px !important;
        font-weight: bold !important;
        margin-bottom: 4px !important;
        color: #000 !important;
        line-height: 1.3 !important;
        
        /* Permitir quebra se o nome for muito longo */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Telefone */
    .participant-card small {
        font-size: 9px !important;
        color: #666 !important;
        line-height: 1.2 !important;
    }
    
    .participant-card small a {
        color: #666 !important;
        text-decoration: none !important;
    }
    
    /* Ícone de status (presente/ausente) */
    .participant-card .fa-check-circle,
    .participant-card .fa-times-circle {
        font-size: 16px !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* === LAYOUT GERAL === */
    
    /* Colunas de participantes */
    .col-md-6.col-lg-4 {
        width: 50% !important;
        float: left !important;
        padding: 0 5px !important;
        margin-bottom: 5px !important;
    }
    
    /* Clearfix para o layout de colunas */
    .row::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* === OCULTAR ELEMENTOS DESNECESSÁRIOS === */
    .btn,
    .breadcrumb,
    .btn-group,
    nav[aria-label="breadcrumb"],
    .text-end,
    button,
    .pagination,
    .d-flex.justify-content-between {
        display: none !important;
    }
    
    /* === CABEÇALHOS E TÍTULOS === */
    .page-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        color: #000 !important;
        border-bottom: 2px solid #333;
        padding-bottom: 5px;
    }
    
    .card-header {
        background: #f8f9fa !important;
        border-bottom: 1px solid #ddd !important;
        padding: 10px 12px !important;
        border-radius: 6px 6px 0 0 !important;
    }
    
    .card-title {
        font-size: 14px !important;
        margin: 0 !important;
        color: #000 !important;
        font-weight: bold !important;
    }
    
    /* === CONFIGURAÇÕES DE PÁGINA === */
    @page {
        margin: 1.5cm;
        size: A4;
    }
    
    /* === ÍCONES ESPECIAIS === */
    .fas.fa-flag,
    .fas.fa-cross {
        font-size: 9px !important;
        margin-left: 3px !important;
        color: #000 !important;
    }

    /* Container principal das estatísticas - FORÇAR FLEXBOX */
    .row.mb-4:first-child,
    div.row.mb-4:first-of-type {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        height: 50px !important;
        max-height: 50px !important;
        width: 100% !important;
    }
    
    .row.mb-4:first-child .col-md-3,
    div.row.mb-4:first-of-type .col-md-3 {
        width: 23% !important;
        max-width: 23% !important;
        flex: 0 0 23% !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 50px !important;
    }
    
    .card.bg-success,
    .card.bg-danger,
    .card.bg-info,
    .card.bg-warning {
        height: 50px !important;
        max-height: 50px !important;
        width: 100% !important;
        margin: 0 !important;
        border: 1px solid #333 !important;
        border-radius: 3px !important;
        overflow: hidden !important;
    }
    
    .card.bg-success .card-body,
    .card.bg-danger .card-body,
    .card.bg-info .card-body,
    .card.bg-warning .card-body {
        padding: 8px 6px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        text-align: center !important;
    }

    .card.bg-success .card-body i,
    .card.bg-danger .card-body i,
    .card.bg-info .card-body i,
    .card.bg-warning .card-body i {
        font-size: 16px !important;
        margin: 0 6px 0 0 !important;
        color: #fff !important;
    }

    .card.bg-success .card-body h3,
    .card.bg-danger .card-body h3,
    .card.bg-info .card-body h3,
    .card.bg-warning .card-body h3 {
        font-size: 20px !important;
        margin: 0 !important;
        font-weight: bold !important;
        color: #fff !important;
        line-height: 1 !important;
    }

    .card.bg-success .card-body small,
    .card.bg-danger .card-body small,
    .card.bg-info .card-body small,
    .card.bg-warning .card-body small {
        font-size: 9px !important;
        color: #fff !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin: 2px 0 0 0 !important;
    }


    /* === GARANTIAS FINAIS === */
    
    /* Forçar visibilidade de todos os badges */
    .badge,
    .participant-card .badge,
    .card-header .badge {
        visibility: visible !important;
        opacity: 1 !important;
        display: inline-block !important;
        
        /* Anti-corte absoluto */
        clip: none !important;
        clip-path: none !important;
        mask: none !important;
        
        /* Garantir que nada seja cortado */
        max-width: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Garantir que containers não cortem badges */
    .participant-card,
    .card-body,
    .flex-grow-1,
    .d-flex {
        overflow: visible !important;
        clip: none !important;
        clip-path: none !important;
    }
    
    /* Remove qualquer transformação que possa afetar */
    * {
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* === MELHORIAS PARA TELA (não afeta impressão) === */
@media screen {
    .participant-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    .badge:hover {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }
}

.contact-info-mobile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.contact-item-mobile {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-item-mobile:last-child {
    margin-bottom: 0;
}

/* WhatsApp Link Mobile */
.whatsapp-link-mobile {
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
}

.whatsapp-link-mobile:hover {
    color: #1da851;
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

.whatsapp-icon-mobile {
    font-size: 1.1rem;
    color: #25d366;
}

.phone-number-mobile {
    font-weight: 500;
}

/* Copy Button Mobile */
.copy-phone-btn-mobile {
    background: rgba(108, 117, 125, 0.1);
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.copy-phone-btn-mobile:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: scale(1.05);
}

.copy-phone-btn-mobile:active {
    transform: scale(0.95);
}

/* Email Link Mobile */
.email-link-mobile {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
}

.email-link-mobile:hover {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

/* Melhorias específicas para cards de pastores */
.pastor-card-mobile {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pastor-card-mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Animações específicas */
.pastor-card-mobile .whatsapp-link-mobile:hover .whatsapp-icon-mobile {
    animation: pulse-whatsapp 0.8s ease infinite;
}

.pastor-card-mobile .copy-phone-btn-mobile:hover {
    animation: bounce-copy 0.3s ease;
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce-copy {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
}

/* Responsividade específica */
@media (max-width: 576px) {
    .contact-info-mobile {
        padding: 10px;
    }
    
    .contact-item-mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .whatsapp-link-mobile,
    .email-link-mobile {
        justify-content: center;
        padding: 8px 12px;
    }
    
    .copy-phone-btn-mobile {
        align-self: center;
        width: auto;
        padding: 6px 16px;
    }
}

/* Estados de focus para acessibilidade */
.whatsapp-link-mobile:focus,
.email-link-mobile:focus,
.copy-phone-btn-mobile:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Efeitos quando o card pai está em hover */
.pastor-card-mobile:hover .contact-info-mobile {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.pastor-card-mobile:hover .whatsapp-link-mobile {
    background: rgba(37, 211, 102, 0.05);
}

.pastor-card-mobile:hover .copy-phone-btn-mobile {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Melhorar contraste em dark mode (se aplicável) */
@media (prefers-color-scheme: dark) {
    .contact-info-mobile {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #4a5568;
    }
    
    .whatsapp-link-mobile,
    .email-link-mobile {
        color: #68d391;
    }
    
    .copy-phone-btn-mobile {
        background: rgba(255, 255, 255, 0.1);
        color: #a0aec0;
    }
}

/* Transições suaves para todos os elementos */
.contact-info-mobile,
.contact-item-mobile,
.whatsapp-link-mobile,
.email-link-mobile,
.copy-phone-btn-mobile {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-mobile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.contact-item-mobile {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-item-mobile:last-child {
    margin-bottom: 0;
}

/* WhatsApp Link Mobile */
.whatsapp-link-mobile {
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
}

.whatsapp-link-mobile:hover {
    color: #1da851;
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

.whatsapp-icon-mobile {
    font-size: 1.1rem;
    color: #25d366;
}

.phone-number-mobile {
    font-weight: 500;
}

/* Copy Button Mobile */
.copy-phone-btn-mobile {
    background: rgba(108, 117, 125, 0.1);
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.copy-phone-btn-mobile:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: scale(1.05);
}

.copy-phone-btn-mobile:active {
    transform: scale(0.95);
}

/* Email Link Mobile */
.email-link-mobile {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
}

.email-link-mobile:hover {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

/* Animações específicas */
.whatsapp-link-mobile:hover .whatsapp-icon-mobile {
    animation: pulse-whatsapp 0.8s ease infinite;
}

.copy-phone-btn-mobile:hover {
    animation: bounce-copy 0.3s ease;
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce-copy {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
}

/* Responsividade específica */
@media (max-width: 576px) {
    .contact-info-mobile {
        padding: 10px;
    }
    
    .contact-item-mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .whatsapp-link-mobile,
    .email-link-mobile {
        justify-content: center;
        padding: 8px 12px;
    }
    
    .copy-phone-btn-mobile {
        align-self: center;
        width: auto;
        padding: 6px 16px;
    }
}

/* Estados de focus para acessibilidade */
.whatsapp-link-mobile:focus,
.email-link-mobile:focus,
.copy-phone-btn-mobile:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== HERO SECTION ===== */
.pastor-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.pastor-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pastor-hero-content {
    position: relative;
    z-index: 2;
}

.pastor-info-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pastor-avatar {
    flex-shrink: 0;
}

.pastor-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium);
}

.pastor-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.pastor-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pastor-role {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.subordinate-info {
    opacity: 0.8;
    font-style: italic;
}

/* ===== BADGES ===== */
.pastor-badges {
    text-align: center;
}

.badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pastor-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.pastor-badge.ministry {
    background: rgba(23, 162, 184, 0.9);
    color: white;
}

.pastor-badge.principal {
    background: rgba(255, 193, 7, 0.9);
    color: var(--dark-color);
}

.ministry-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: white;
}

/* ===== SEÇÃO PARCEIRO ===== */
.partner-section {
    transition: var(--transition);
}

.partner-section.removing {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    pointer-events: none;
}

.partner-card {
    border-width: 2px !important;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.partner-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.partner-role {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== ESTATÍSTICAS ===== */
.statistics-section {
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-card.primary {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left: 4px solid var(--success-color);
}

.stat-card.info {
    border-left: 4px solid var(--info-color);
}

.stat-card.warning {
    border-left: 4px solid var(--warning-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #5a67d8);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, var(--info-color), #007bff);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-label small {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* ===== CARDS GERAIS ===== */
.info-card .card,
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.info-card .card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    background: var(--light-color);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== INFORMAÇÕES PESSOAIS ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.info-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.info-item:hover {
    background: #fafbfc;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.info-value {
    font-size: 0.95rem;
    color: var(--dark-color);
    word-break: break-word;
}

.info-value strong {
    font-weight: 600;
}

/* ===== CONTATOS ===== */
.pastor-contacts,
.partner-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.whatsapp-link {
    color: var(--whatsapp-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #1da851;
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.email-link:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.copy-btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.3);
    color: #495057;
    transform: scale(1.05);
}

.copy-btn.success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: var(--success-color) !important;
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-desvincular {
    position: relative;
    overflow: hidden;
}

.btn-desvincular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-desvincular:hover::before {
    left: 100%;
}

.btn-desvincular:hover {
    border-color: var(--danger-color) !important;
    color: var(--danger-color) !important;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    color: white;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* ===== LOADING STATES ===== */
.loading-desvincular {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.loading-desvincular::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: loading-shimmer 1.5s infinite;
    border-radius: inherit;
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== IGREJA INFO ===== */
.igreja-hero {
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: var(--dark-color);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.igreja-logo-mmc {
    max-height: 80px;
    width: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.igreja-logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== TEAM MEMBERS ===== */
.team-member {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafbfc;
}

.team-member:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.team-member:last-child {
    margin-bottom: 0;
}

.member-avatar {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.table-picture {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.table-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
}

.member-info {
    flex-grow: 1;
    min-width: 0;
}

.member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.member-contact {
    font-size: 0.85rem;
    color: #6c757d;
}

.member-actions {
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* ===== TIMELINE ===== */
.timeline-section {
    position: relative;
    padding-left: 2rem;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* ===== BADGES CATEGORIAS ===== */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.badge-categoria {
    font-weight: 500;
    padding: 0.4rem 0.6rem;
}

.categoria-homens { background-color: #007bff; color: white; }
.categoria-mulheres { background-color: #e83e8c; color: white; }
.categoria-casais { background-color: var(--success-color); color: white; }
.categoria-jovens { background-color: var(--warning-color); color: black; }
.categoria-adolescentes { background-color: var(--info-color); color: white; }
.categoria-kids { background-color: #fd7e14; color: white; }

.bg-info {
    background: linear-gradient(135deg, #ffffff, #bed2e8) !important;
    color: white !important;
}

/* ===== LINKS ===== */
.church-link,
.pastor-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.church-link:hover,
.pastor-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991px) {
    .pastor-info-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .pastor-badges {
        margin-top: 1rem;
    }
    
    .info-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .pastor-hero {
        padding: 1.5rem;
    }
    
    .pastor-photo,
    .pastor-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .pastor-name {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .partner-info {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-photo,
    .partner-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .member-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .member-actions {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .whatsapp-link,
    .email-link {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
    
    .copy-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
    }
    
    .pastor-contacts,
    .partner-contacts {
        align-items: flex-start;
    }
}


/* ===== GESTOR SHOW - ESTILOS PRINCIPAIS ===== */

/* ===== BADGE DO CÔNJUGE ===== */
.gestor-conjuge-badge {
    background: #e91e63;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== TELEFONE E AÇÕES DO CÔNJUGE ===== */
.gestor-conjuge-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gestor-conjuge-whatsapp-link {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--gestor-transition);
}

.gestor-conjuge-whatsapp-link:hover {
    color: #25d366;
    transform: scale(1.05);
}

.gestor-conjuge-copy-btn {
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #e91e63;
    cursor: pointer;
    transition: var(--gestor-transition);
    font-size: 0.8rem;
}

.gestor-conjuge-copy-btn:hover {
    background: rgba(233, 30, 99, 0.2);
    transform: scale(1.1);
}

.gestor-conjuge-email-link {
    color: #e91e63;
    text-decoration: none;
}

.gestor-conjuge-email-link:hover {
    color: #ad1457;
    text-decoration: underline;
}

/* ===== ESTATÍSTICAS DO CÔNJUGE ===== */
.gestor-conjuge-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(233, 30, 99, 0.2);
}

.gestor-conjuge-stat-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--gestor-transition);
}

.gestor-conjuge-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== AÇÕES DO CÔNJUGE ===== */
.gestor-conjuge-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== ALERT DO CÔNJUGE ===== */
.gestor-conjuge-alert {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(233, 30, 99, 0.3);
    color: #e91e63;
    border-radius: 10px;
    padding: 1rem;
    margin: 0;
}

/* ===== CARDS DE GRUPOS E EQUIPES ===== */
.gestor-team-card {
    background: white;
    border-radius: var(--gestor-border-radius);
    box-shadow: var(--gestor-shadow);
    border: 1px solid #e9ecef;
    transition: var(--gestor-transition);
    overflow: hidden;
}

.gestor-team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gestor-shadow-hover);
}

.gestor-team-card .card-header {
    background: linear-gradient(135deg, var(--gestor-light) 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.gestor-team-card .card-body {
    padding: 1.25rem;
}

/* ===== BADGES DE CATEGORIA ===== */
.gestor-categoria-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categoria-casais {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
}

.categoria-jovens {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.categoria-homens {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.categoria-mulheres {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
    color: white;
}

.categoria-criancas {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.categoria-adolescentes {
    background: linear-gradient(135deg, #6f42c1, #5a359a);
    color: white;
}

.categoria-geral {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

/* ===== INFORMAÇÕES DE LIDERANÇA ===== */
.gestor-leadership-info {
    background: rgba(111, 66, 193, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

/* ===== MEMBROS DA EQUIPE ===== */
.gestor-team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--gestor-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    transition: var(--gestor-transition);
}

.gestor-team-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: var(--gestor-primary);
}

.gestor-member-picture {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: var(--gestor-transition);
}

.gestor-member-picture:hover {
    transform: scale(1.05);
    border-color: var(--gestor-primary);
}

.gestor-member-placeholder {
    width: 60px;
    height: 60px;
    background: var(--gestor-warning);
    border-radius: 10px;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--gestor-transition);
}

.gestor-member-placeholder:hover {
    transform: scale(1.05);
    background: #e0a800;
}

.member-name {
    font-weight: 600;
    color: var(--gestor-dark);
    margin-bottom: 0.25rem;
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ===== ESTADO VAZIO ===== */
.gestor-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gestor-secondary);
}

.gestor-empty-state i {
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.gestor-empty-state h5 {
    color: var(--gestor-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.gestor-empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== TIMELINE ===== */
.gestor-timeline-section {
    position: relative;
}

.gestor-timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.gestor-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--gestor-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gestor-timeline-item:last-child {
    border-left: none;
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f1f3f4;
    transition: var(--gestor-transition);
}

.timeline-content:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--gestor-primary);
}

/* ===== ESTATÍSTICAS RESUMIDAS ===== */
.gestor-summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--gestor-light) 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: var(--gestor-transition);
}

.stat-row:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gestor-secondary);
    font-weight: 500;
    flex: 1;
}

.stat-value {
    font-weight: 700;
    color: var(--gestor-primary);
    font-size: 1rem;
}

/* ===== BOTÕES FLUTUANTES ===== */
.gestor-floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.gestor-floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--gestor-transition);
    border: none;
}

.gestor-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.edit-btn {
    background: var(--gestor-warning);
    color: white;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(111, 66, 193, 0);
    }
}

.slide-in {
    animation: slideInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.pulse-glow {
    animation: pulseGlow 1s ease-in-out;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .gestor-stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ===== GESTORES - CSS ADAPTADO DOS PASTORES ===== */

/* 1. RESET E ESTRUTURA BASE */
.desktop-table-container {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.table-responsive {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    max-width: none !important;
}

/* 2. CONFIGURAÇÃO DA TABELA */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed; /* ESSENCIAL para alinhamento */
    background: white;
    padding: 8px;
}

/* 3. DEFINIÇÃO PRECISA DAS LARGURAS DAS COLUNAS PARA GESTORES */
.table colgroup col:nth-child(1) { width: 180px !important; }   /* Foto */
.table colgroup col:nth-child(2) { width: 300px !important; }   /* Gestor/Casal */
.table colgroup col:nth-child(3) { width: 140px !important; }   /* Tipo */
.table colgroup col:nth-child(4) { width: 200px !important; }   /* Igreja */
.table colgroup col:nth-child(5) { width: 250px !important; }   /* Pastor(es) */
.table colgroup col:nth-child(6) { width: 100px !important; }   /* Grupos */
.table colgroup col:nth-child(7) { width: 100px !important; }   /* Líderes */
.table colgroup col:nth-child(8) { width: 180px !important; }   /* Ações */

.table th:nth-child(1),
.table td:nth-child(1) {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.table th:nth-child(7),
.table td:nth-child(7) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.table th:nth-child(8),
.table td:nth-child(8) {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

/* 4. CONFIGURAÇÃO DO HEADER */
.table thead th {
    background: linear-gradient(135deg, #6f42c1, #8e58e0);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: none;
    border-bottom: 2px solid #5a3a9a;
    padding: 15px 8px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 5. CONFIGURAÇÃO DAS CÉLULAS DO CORPO */
.table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    word-wrap: break-word;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* 6. AJUSTES ESPECÍFICOS POR COLUNA */

/* COLUNA 1: FOTO */
.table th:nth-child(1),
.table td:nth-child(1) {
    text-align: center;
    padding: 8px 4px;
}

.foto-column {
    align-items: center;
    justify-content: center;
}

/* COLUNA 2: GESTOR/CASAL */
.table th:nth-child(2),
.table td:nth-child(2) {
    text-align: left;
    padding: 12px 8px;
}

/* COLUNA 3: TIPO */
.table th:nth-child(3),
.table td:nth-child(3) {
    text-align: center;
    padding: 8px 4px;
}

/* COLUNA 4: IGREJA */
.table th:nth-child(4),
.table td:nth-child(4) {
    text-align: left;
    padding: 12px 8px;
}

/* COLUNA 5: PASTOR(ES) */
.table th:nth-child(5),
.table td:nth-child(5) {
    text-align: left;
    padding: 12px 8px;
}

/* COLUNA 6: GRUPOS */
.table th:nth-child(6),
.table td:nth-child(6) {
    text-align: center;
    padding: 8px 4px;
}

/* COLUNA 7: LÍDERES */
.table th:nth-child(7),
.table td:nth-child(7) {
    text-align: center;
    padding: 8px 4px;
}

/* COLUNA 8: AÇÕES */
.table th:nth-child(8),
.table td:nth-child(8) {
    text-align: center;
    padding: 8px 4px;
}

/* 7. AJUSTES PARA DUPLA DE CASAIS GESTORES */
.dupla-casais-row {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 4px solid #dc3545;
}

.dupla-casais-row td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

/* 8. LAYOUT DAS FOTOS DA DUPLA DE CASAIS */
.dupla-fotos-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.casal-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    width: 100%;
    max-width: 150px;
}

.foto-pair {
    display: flex;
    align-items: center;
    gap: 1px;
    justify-content: center;
    position: relative;
}

.foto-mini {
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.foto-principal {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.foto-conjuge {
    width: 16px;
    height: 16px;
}

.foto-placeholder-mini {
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #6f42c1, #8e58e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.4rem;
}

.foto-placeholder-mini.foto-principal {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
}

.foto-placeholder-mini.foto-conjuge {
    width: 16px;
    height: 16px;
    font-size: 0.4rem;
}

.heart-mini {
    position: absolute;
    color: #dc3545;
}

.heart-mini i {
    font-size: 0.6rem;
    color: #dc3545;
}

.separador-dupla {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    border: 2px solid #0d6efd;
    font-size: 0.8rem;
    margin: 4px 0;
    color: #0d6efd;
}

.separador-dupla i {
    font-size: 0.8rem;
    color: #0d6efd;
}

/* 9. INFORMAÇÕES DA DUPLA DE CASAIS */
.dupla-info-clean {
    width: 100%;
    max-width: 290px;
    overflow: hidden;
}

.dupla-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.dupla-header strong {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casais-list-clean {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.casal-line {
    background: rgba(248, 249, 250, 0.6);
    border-radius: 3px;
    padding: 2px 4px;
    border-left: 2px solid #dc3545;
    transition: all 0.2s ease;
}

.casal-nomes {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telefones-linha {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-left: 8px;
}

.tel-link {
    color: #25d366;
    text-decoration: none;
    font-size: 0.65rem;
    padding: 1px 2px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tel-link i {
    font-size: 0.5rem;
}

.tel-link:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #1da851;
    text-decoration: none;
}

.divisor-casais {
    text-align: center;
    padding: 1px 0;
    color: #0d6efd;
    font-size: 0.6rem;
}

/* 10. BADGES E INDICADORES */
.dupla-badge-final {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

/* 11. BADGES NORMAIS */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0) !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* 12. FOTOS NORMAIS DOS GESTORES */
.table-picture {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.table-picture:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.table-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.table-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
}

.relationship-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    font-size: 1rem;
}

/* 13. TELEFONES E WHATSAPP */
.whatsapp-icon {
    font-size: 1rem !important;
    color: #25d366 !important;
    margin-right: 2px !important;
}

.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.whatsapp-link:hover {
    color: #1da851;
    text-decoration: none;
}

.phone-number {
    font-size: 0.9rem;
}

.phones-container {
    margin-top: 4px;
}

.phone-item {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.phone-item:last-child {
    margin-bottom: 0;
}

/* 14. INFORMAÇÕES DOS PASTORES */
.pastor-mini-foto {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.pastor-casal-info,
.pastor-dupla-info,
.pastor-individual-info {
    font-size: 0.85rem;
    line-height: 1.3;
}

.pastor-nomes {
    margin-bottom: 2px;
}

.pastor-nomes strong {
    font-weight: 600;
}

.pastor-ministerio {
    margin-top: 2px;
}

.pastor-ministerio small {
    font-size: 0.75rem;
    color: #6c757d;
}

/* 15. MÉTRICAS */
.metric-card {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 8px;
    min-height: 60px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.metric-value.text-success {
    color: #28a745 !important;
}

.metric-value.text-primary {
    color: #007bff !important;
}

.metric-card small {
    font-size: 0.75rem;
    line-height: 1;
    color: #6c757d;
}

/* 16. AÇÕES */
.acoes-dupla-final {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 170px;
    margin: 0 auto;
}

.acoes-dupla-final .btn {
    font-size: 0.65rem;
    padding: 2px 4px;
    white-space: nowrap;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ações normais */
.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.btn-action-view {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.btn-action-view:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.btn-action-edit {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    color: #f57c00;
}

.btn-action-edit:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 124, 0, 0.3);
}

.btn-action-delete {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #d32f2f;
}

.btn-action-delete:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

/* 17. AÇÕES PARA CASAIS COMPACTAS */
.d-flex.flex-column.gap-1 {
    gap: 3px !important;
}

.d-flex.flex-column.gap-1 .d-flex.gap-1 {
    gap: 2px !important;
    align-items: center;
}

.d-flex.flex-column.gap-1 small {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
    margin-right: 3px;
}

.d-flex.flex-column.gap-1 .btn-sm {
    padding: 2px 4px;
    font-size: 0.65rem;
    border-radius: 3px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Seção de ações conjuntas para casais */
.border-top.pt-1.mt-1 {
    border-top: 1px solid #dee2e6 !important;
    padding-top: 4px !important;
    margin-top: 4px !important;
}

.border-top.pt-1.mt-1 .btn-sm {
    padding: 3px 5px;
    font-size: 0.65rem;
    flex: 1;
}

/* 18. HOVER EFFECTS */
.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dupla-casais-row:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.04) 0%, rgba(255, 255, 255, 1) 100%) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

/* 19. SCROLL PERSONALIZADO */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #6f42c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #8e58e0;
}

/* 20. RESPONSIVIDADE */
@media (min-width: 576px) {
    .table {
        min-width: auto;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .table th:nth-child(5),
    .table td:nth-child(5) {
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .dupla-header strong {
        font-size: 0.9rem;
    }
    
    .casal-nomes {
        font-size: 0.8rem;
    }
    
    .tel-link {
        font-size: 0.7rem;
    }
}

/* 21. FINAL OVERRIDE PARA GARANTIR ALINHAMENTO */
.desktop-table-container .table-responsive .table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

.desktop-table-container .table-responsive .table th,
.desktop-table-container .table-responsive .table td {
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
}

/* 22. MOBILE RESPONSIVO - OCULTAR TABELA DESKTOP */
@media (max-width: 991px) {
    .desktop-table-container {
        display: none !important;
    }
}

/* 23. FORÇA RECÁLCULO DE LAYOUT */
.table {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== CARDS DE ESTATÍSTICAS DO GESTOR ===== */

.gestor-stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gestor-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.gestor-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.gestor-stat-card:hover::before {
    transform: scaleX(1);
}

/* ===== VARIAÇÕES DE CORES ===== */

.gestor-stat-card.stat-primary {
    border-left: 4px solid #007bff;
}

.gestor-stat-card.stat-primary::before {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.gestor-stat-card.stat-primary:hover {
    border-left-color: #007bff;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.2);
}

.gestor-stat-card.stat-success {
    border-left: 4px solid #28a745;
}

.gestor-stat-card.stat-success::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.gestor-stat-card.stat-success:hover {
    border-left-color: #28a745;
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.2);
}

.gestor-stat-card.stat-info {
    border-left: 4px solid #17a2b8;
}

.gestor-stat-card.stat-info::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.gestor-stat-card.stat-info:hover {
    border-left-color: #17a2b8;
    box-shadow: 0 12px 35px rgba(23, 162, 184, 0.2);
}

.gestor-stat-card.stat-warning {
    border-left: 4px solid #ffc107;
}

.gestor-stat-card.stat-warning::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.gestor-stat-card.stat-warning:hover {
    border-left-color: #ffc107;
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.2);
}

/* ===== ÍCONE DO CARD ===== */

.gestor-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.gestor-stat-card .stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.gestor-stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.gestor-stat-card:hover .stat-icon::before {
    transform: scale(1);
}

/* Cores específicas dos ícones */
.stat-primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* ===== NÚMERO DA ESTATÍSTICA ===== */

.gestor-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gestor-stat-card:hover .stat-number {
    transform: scale(1.05);
}

/* Animação de contagem */
.stat-number[data-animate-counter] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LABEL DA ESTATÍSTICA ===== */

.gestor-stat-card .stat-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gestor-stat-card:hover .stat-label {
    color: #495057;
}

/* ===== AÇÃO DO CARD ===== */

.gestor-stat-card .stat-action {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gestor-stat-card:hover .stat-action {
    opacity: 1;
    transform: translateY(0);
}

.gestor-stat-card .stat-action .btn {
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gestor-stat-card .stat-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cores específicas dos botões */
.stat-primary .stat-action .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-success .stat-action .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stat-info .stat-action .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-warning .stat-action .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */

.gestor-stat-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gestor-stat-card:nth-child(1) { animation-delay: 0.1s; }
.gestor-stat-card:nth-child(2) { animation-delay: 0.2s; }
.gestor-stat-card:nth-child(3) { animation-delay: 0.3s; }
.gestor-stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EFEITOS ESPECIAIS ===== */

.gestor-stat-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.gestor-stat-card:hover::after {
    width: 200px;
    height: 200px;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .gestor-stat-card {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .gestor-stat-card .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .gestor-stat-card .stat-number {
        font-size: 2rem;
    }
    
    .gestor-stat-card .stat-label {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .gestor-stat-card .stat-action .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .gestor-stat-card {
        padding: 15px 10px;
        min-height: 140px;
    }
    
    .gestor-stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .gestor-stat-card .stat-number {
        font-size: 1.8rem;
    }
    
    .gestor-stat-card .stat-label {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* ===== ESTADOS DE LOADING ===== */

.gestor-stat-card.loading {
    pointer-events: none;
}

.gestor-stat-card.loading .stat-number {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ===== MODO ESCURO ===== */

@media (prefers-color-scheme: dark) {
    .gestor-stat-card {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .gestor-stat-card .stat-number {
        color: #ecf0f1;
    }
    
    .gestor-stat-card .stat-label {
        color: #bdc3c7;
    }
    
    .gestor-stat-card:hover .stat-label {
        color: #ecf0f1;
    }
}

/* ===== MELHORIAS DE PERFORMANCE ===== */

.gestor-stat-card {
    will-change: transform, box-shadow;
}

.gestor-stat-card:hover {
    will-change: auto;
}

/* ===== DUPLA DE CASAIS PASTORES ===== */
.dupla-pastores-info {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    padding: 6px;
    max-width: 240px;
}

.dupla-pastores-header {
    text-align: center;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.dupla-pastores-casais {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pastor-casal-line {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px;
    border-radius: 4px;
}

.pastor-fotos-mini {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.pastor-foto-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
}

.pastor-foto-placeholder-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f42c1, #8e58e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.5rem;
    border: 1px solid #fff;
}

.pastor-heart-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    z-index: 10;
}

.pastor-nomes-mini {
    flex-grow: 1;
    line-height: 1.1;
}

.dupla-pastores-separador {
    text-align: center;
    padding: 2px 0;
}

.dupla-pastores-ministerios {
    margin-top: 3px;
    text-align: center;
}


/* ===== IGREJAS - MOBILE STYLES CORRIGIDOS ===== */

.mobile-igreja-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.mobile-igreja-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.mobile-card-body {
    padding: 20px;
}

/* 1. LOGO DA IGREJA */
.igreja-logo-container {
    position: relative;
}

.igreja-logo-mobile {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.igreja-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6f42c1, #8e58e0);
    border-radius: 12px;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 2. NOME DA IGREJA */
.igreja-nome-mobile {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 8px;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

/* 3. LOCALIZAÇÃO (CIDADE/UF) */
.igreja-localizacao {
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
}

.cidade-text {
    color: #495057;
    font-weight: 600;
}

.uf-text {
    color: #6c757d;
    font-weight: 400;
}

/* 4. BAIRRO */
.igreja-bairro {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 5. STATUS */
.igreja-status {
    display: flex;
    justify-content: center;
}

.badge-ativa {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-inativa {
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
    color: white !important;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* 6. TELEFONE */
.igreja-telefone {
    margin-bottom: 16px;
    width: 100%;
}

.telefone-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.telefone-link:hover {
    color: #1e7e34;
    background: rgba(40, 167, 69, 0.15);
    transform: scale(1.05);
}

/* 6.1. EMAIL */
.igreja-email {
    margin-bottom: 16px;
    width: 100%;
}

.email-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.email-link:hover {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.15);
    transform: scale(1.05);
}

/* ESTRUTURA ORGANIZACIONAL */
.estrutura-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.estrutura-title {
    margin-bottom: 8px;
    text-align: center;
}

.estrutura-metric {
    background: white;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.estrutura-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.estrutura-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.estrutura-number {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: #2c3e50;
}

.estrutura-label {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1;
    text-align: center;
    margin-top: 2px;
}

/* AÇÕES */
.actions-mobile {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 12px;
}

.actions-mobile .btn-group {
    gap: 1px;
}

.actions-mobile .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
}

/* CORES ESPECÍFICAS DOS ÍCONES */
.estrutura-icon.text-primary {
    background: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.estrutura-icon.text-success {
    background: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.estrutura-icon.text-info {
    background: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

/* RESPONSIVIDADE */
@media (max-width: 576px) {
    .mobile-card-body {
        padding: 16px;
    }
    
    .igreja-logo-mobile,
    .igreja-logo-placeholder {
        width: 200px;
        height: 70px;
        font-size: 1.8rem;
        border-width: 2px;
    }
    
    .igreja-nome-mobile {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .igreja-localizacao {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .igreja-bairro {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .telefone-link,
    .email-link {
        font-size: 0.9rem;
        padding: 6px 12px;
        max-width: 200px;
    }
    
    .estrutura-info {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .estrutura-metric {
        padding: 6px;
    }
    
    .estrutura-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .estrutura-number {
        font-size: 1.1rem;
    }
    
    .estrutura-label {
        font-size: 0.65rem;
    }
    
    .actions-mobile .btn {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    .mobile-card-body {
        padding: 12px;
    }
    
    .igreja-logo-mobile,
    .igreja-logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .igreja-nome-mobile {
        font-size: 1rem;
    }
    
    .telefone-link,
    .email-link {
        font-size: 0.8rem;
        max-width: 180px;
    }
    
    .estrutura-metric {
        padding: 4px;
    }
    
    .estrutura-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .estrutura-number {
        font-size: 1rem;
    }
    
    .estrutura-label {
        font-size: 0.6rem;
    }
}

/* ANIMAÇÕES */
.mobile-igreja-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.mobile-igreja-card:nth-child(1) { animation-delay: 0.1s; }
.mobile-igreja-card:nth-child(2) { animation-delay: 0.2s; }
.mobile-igreja-card:nth-child(3) { animation-delay: 0.3s; }
.mobile-igreja-card:nth-child(4) { animation-delay: 0.4s; }
.mobile-igreja-card:nth-child(5) { animation-delay: 0.5s; }
.mobile-igreja-card:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HOVER EFFECTS ESPECÍFICOS */
.igreja-telefone:hover .telefone-link,
.igreja-email:hover .email-link {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-ativa,
.badge-inativa {
    transition: all 0.3s ease;
}

.igreja-status:hover .badge-ativa {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    transform: scale(1.05);
}

.igreja-status:hover .badge-inativa {
    background: linear-gradient(135deg, #adb5bd, #6c757d) !important;
    transform: scale(1.05);
}

/* AJUSTES PARA ACESSIBILIDADE */
.mobile-igreja-card:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.telefone-link:focus,
.email-link:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* FORÇA QUEBRA DE LINHA PARA TEXTOS LONGOS */
.igreja-nome-mobile,
.cidade-text,
.uf-text {
    word-break: break-word;
    hyphens: auto;
}

/* MELHORIAS VISUAIS EXTRAS */
.mobile-igreja-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6f42c1, #8e58e0, #a370ed);
    border-radius: 12px 12px 0 0;
}

.estrutura-info {
    position: relative;
    overflow: hidden;
}

.estrutura-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #198754, #0dcaf0);
}

/* ESTADO VAZIO E LOADING */
.mobile-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    display: none !important;
}

.mobile-empty-state.show {
    display: block !important;
}

@media (min-width: 992px) {
    .mobile-empty-state {
        display: none !important;
    }
}

.mobile-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mobile-empty-state h5 {
    margin-bottom: 10px;
}

.mobile-empty-state p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== INFORMAÇÕES DE CONTATO SIMPLIFICADAS - GESTORES ===== */

/* Container principal */
.contact-info-mobile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 16px;
}

/* Item de contato individual */
.contact-item-simplified {
    margin-bottom: 12px;
    background: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-item-simplified:last-child {
    margin-bottom: 0;
}

/* Nome do gestor */
.gestor-name-contact {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-align: center;
}

/* Linha de contato (celular + botão) */
.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Link do WhatsApp */
.whatsapp-link-simplified {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 6px 10px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    justify-content: center;
}

.whatsapp-link-simplified:hover {
    color: #1da851;
    background: rgba(37, 211, 102, 0.15);
    transform: scale(1.02);
}

/* Botão de copiar */
.copy-btn-simplified {
    background: #6c757d;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.copy-btn-simplified:hover {
    background: #5a6268;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-btn-simplified:active {
    transform: scale(0.95);
}

/* Email simplificado */
.email-item-simplified {
    margin-top: 8px;
    text-align: center;
}

.email-link-simplified {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.email-link-simplified:hover {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.15);
    transform: scale(1.05);
}

/* FOTOS DOS GESTORES (mantendo estrutura horizontal) */
.gestor-foto-profile {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.gestor-avatar-placeholder-primary {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.relationship-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    font-size: 0.8rem;
}

/* RESPONSIVIDADE */
@media (max-width: 576px) {
    .contact-info-mobile {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .contact-item-simplified {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .gestor-name-contact {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .whatsapp-link-simplified {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
    
    .copy-btn-simplified {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .contact-line {
        gap: 8px;
    }
    
    .gestor-foto-profile,
    .gestor-avatar-placeholder-primary {
        width: 45px;
        height: 45px;
        border-width: 1px;
    }
    
    .gestor-avatar-placeholder-primary {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .contact-info-mobile {
        padding: 10px;
    }
    
    .contact-item-simplified {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .gestor-name-contact {
        font-size: 0.8rem;
    }
    
    .whatsapp-link-simplified {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
    
    .copy-btn-simplified {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .contact-line {
        gap: 6px;
    }
    
    .gestor-foto-profile,
    .gestor-avatar-placeholder-primary {
        width: 40px;
        height: 40px;
    }
    
    .gestor-avatar-placeholder-primary {
        font-size: 0.9rem;
    }
}

/* EFEITOS VISUAIS */
.contact-item-simplified {
    position: relative;
    overflow: hidden;
}

.contact-item-simplified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.copy-btn-simplified.copied {
    background: #28a745 !important;
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); background: #28a745; }
    50% { transform: scale(1.2); background: #20c997; }
    100% { transform: scale(1); background: #28a745; }
}

/* HOVER EFFECTS */
.contact-item-simplified:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-item-simplified:hover .whatsapp-link-simplified {
    background: rgba(37, 211, 102, 0.2);
}

.contact-item-simplified:hover .copy-btn-simplified {
    background: #495057;
}

/* BADGES E TIPOS (mantendo como está) */
.tipo-badge-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* CORES ESPECÍFICAS PARA GESTORES */
.mobile-gestor-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.mobile-gestor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.mobile-gestor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    border-radius: 12px 12px 0 0;
}

/* AJUSTES PARA ACESSIBILIDADE */
.mobile-gestor-card:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.whatsapp-link-simplified:focus,
.email-link-simplified:focus {
    outline: 2px solid #25d366;
    outline-offset: 2px;
}

.copy-btn-simplified:focus {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* ===== GESTORES - LAYOUT CENTRALIZADO ===== */

/* 1. FOTOS DOS GESTORES CENTRALIZADAS */
.gestor-photos-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gestor-foto-centralizada {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gestor-avatar-centralizado {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.relationship-icon-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 2. BADGE TIPO CENTRALIZADO */
.tipo-badge-center {
    display: flex;
    justify-content: center;
}

.tipo-badge-center .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* 3. NOMES COM INDICAÇÃO DE SEXO */
.fw-bold.text-success {
    font-size: 1.1rem;
    line-height: 1.3;
    word-wrap: break-word;
}

/* 4. IGREJA INFO */
.igreja-info-center {
    font-size: 0.95rem;
    color: #495057;
}

.igreja-name {
    font-weight: 600;
}

/* 5. CIDADE INFO */
.cidade-info-center {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== PASTOR RESPONSÁVEL CENTRALIZADO ===== */

.pastor-info-mobile {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ffeaa7;
}

.pastor-info-label {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* FOTOS DOS PASTORES CENTRALIZADAS */
.pastor-photos-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pastor-avatar-centralizado {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pastor-avatar-placeholder-centralizado {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    border-radius: 50%;
    border: 2px solid #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pastor-relationship-icon-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 1px solid #ffc107;
    font-size: 0.7rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* NOMES DOS PASTORES */
.pastor-names-center {
    line-height: 1.2;
}

.pastor-names-center .fw-bold {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pastor-names-center small {
    font-size: 0.8rem;
}

/* BADGE DO MINISTÉRIO */
.pastor-badge-center .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 15px;
}

/* TELEFONE DO PASTOR */
.pastor-phone-center {
    font-size: 0.8rem;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 576px) {
    .gestor-foto-centralizada,
    .gestor-avatar-centralizado {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .gestor-avatar-centralizado {
        font-size: 1.5rem;
    }
    
    .relationship-icon-center {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .fw-bold.text-success {
        font-size: 1rem;
    }
    
    .igreja-info-center {
        font-size: 0.9rem;
    }
    
    .cidade-info-center {
        font-size: 0.8rem;
    }
    
    /* Pastor responsável */
    .pastor-avatar-centralizado,
    .pastor-avatar-placeholder-centralizado {
        width: 45px;
        height: 45px;
        border-width: 1px;
    }
    
    .pastor-avatar-placeholder-centralizado {
        font-size: 1rem;
    }
    
    .pastor-relationship-icon-center {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .pastor-names-center .fw-bold {
        font-size: 0.9rem;
    }
    
    .pastor-names-center small {
        font-size: 0.75rem;
    }
    
    .pastor-badge-center .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .pastor-info-mobile {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .gestor-foto-centralizada,
    .gestor-avatar-centralizado {
        width: 55px;
        height: 55px;
    }
    
    .gestor-avatar-centralizado {
        font-size: 1.3rem;
    }
    
    .relationship-icon-center {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    .fw-bold.text-success {
        font-size: 0.95rem;
    }
    
    .igreja-info-center {
        font-size: 0.85rem;
    }
    
    .cidade-info-center {
        font-size: 0.75rem;
    }
    
    /* Pastor responsável */
    .pastor-avatar-centralizado,
    .pastor-avatar-placeholder-centralizado {
        width: 40px;
        height: 40px;
    }
    
    .pastor-avatar-placeholder-centralizado {
        font-size: 0.9rem;
    }
    
    .pastor-relationship-icon-center {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
    }
    
    .pastor-names-center .fw-bold {
        font-size: 0.85rem;
    }
    
    .pastor-names-center small {
        font-size: 0.7rem;
    }
    
    .pastor-info-mobile {
        padding: 10px;
    }
}

/* ===== EFEITOS VISUAIS ===== */

.gestor-foto-centralizada,
.pastor-avatar-centralizado {
    transition: all 0.3s ease;
}

.gestor-foto-centralizada:hover,
.pastor-avatar-centralizado:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.relationship-icon-center,
.pastor-relationship-icon-center {
    transition: all 0.3s ease;
}

.relationship-icon-center:hover,
.pastor-relationship-icon-center:hover {
    transform: scale(1.1);
}

/* GRADIENTES ESPECÍFICOS */
.pastor-info-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ffca2c, #fd7e14);
    border-radius: 8px 8px 0 0;
}

.pastor-info-mobile {
    position: relative;
    overflow: hidden;
}

/* FORÇA QUEBRA DE LINHA PARA TEXTOS LONGOS */
.fw-bold.text-success,
.igreja-name,
.pastor-names-center .fw-bold {
    word-break: break-word;
    hyphens: auto;
}

/* AJUSTES PARA ACESSIBILIDADE */
.gestor-foto-centralizada:focus,
.pastor-avatar-centralizado:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.tipo-badge-center .badge:focus,
.pastor-badge-center .badge:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Estilos para residências disponíveis */
/* Estilos para residências disponíveis */
.residencia-disponivel {
    color: #28a745;
    font-weight: 500;
}

.residencias-info .alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.residencias-info .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.residencias-info .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 
SUBSTITUA o CSS de agrupamento por esta versão simples:
*/

/* ===== ESTILOS SIMPLES PARA AGRUPAMENTO ===== */

/* Linhas de casais */
.participante-row.casal-principal {
    border-left: 4px solid #007bff;
    background-color: rgba(0, 123, 255, 0.05);
    border-top: 1px solid #007bff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.participante-row.casal-conjuge {
    border-left: 4px solid #007bff;
    background-color: rgba(0, 123, 255, 0.08);
    border-bottom: 1px solid #007bff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Conectar visualmente as linhas do casal */
.participante-row.casal-principal + .participante-row.casal-conjuge {
    border-top: none;
}

/* Badge de agrupamento simples */
.badge-agrupamento {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 5;
}

.badge-agrupamento .badge {
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* Hover simples */
.participante-row.casal-principal:hover,
.participante-row.casal-conjuge:hover {
    background-color: rgba(0, 123, 255, 0.12);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Destaque para nomes de casais */
.casal-principal .participante-nome,
.casal-conjuge .participante-nome {
    color: #0056b3;
    font-weight: 600;
}

/* Informações de agrupamento */
.nome-container .text-primary.fw-bold {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.4rem;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.25rem;
    display: inline-block;
}

/* Badge cores */
.badge.bg-blue-500 {
    background-color: #3b82f6 !important;
    color: white !important;
}

.badge.bg-green-500 {
    background-color: #10b981 !important;
    color: white !important;
}

.badge.bg-gray-500 {
    background-color: #6b7280 !important;
    color: white !important;
}

/* Container de foto simples */
.foto-container {
    position: relative;
    display: inline-block;
}

/* Alinhamento vertical */
.participante-row td {
    vertical-align: middle;
    padding: 10px 8px;
}

/* Badge de status */
.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .badge-agrupamento {
        display: none;
    }
    
    .participante-row.casal-principal,
    .participante-row.casal-conjuge {
        border-left: 3px solid #007bff;
    }
}

/* ===== FIM DOS ESTILOS SIMPLES ===== */

