.marginheader {
    margin-top: 65px;
}

#cropModal .modal-dialog {
    max-width: 90%; /* Ajuste a largura do modal */
    max-height: 90vh; /* Limita a altura máxima */
}

#cropModal .modal-body {
    height: auto; /* Altura automática baseada no conteúdo */
    max-height: 80vh; /* Limita a altura máxima */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Permite rolagem se necessário */
}

#cropImage {
    max-width: 100%; /* Faz a imagem ocupar todo o espaço disponível */
    max-height: 100%; /* Impede que a imagem fique maior que o container */
    display: block; /* Remove espaço extra abaixo da imagem */
}

/* Estilos para os controles do Cropper */
.cropper-container {
    max-height: 70vh !important;
}

/*Estilos para alterar cor do campo status em Exchanges - Create e Update*/
.status-returned { background-color: #45a05a; }
.status-overdue { background-color: #e23b3b; }
.status-borrowed { background-color: #dbbf64; }

/* ===== DASHBOARD MODERNO ===== */

/* Cards Modernos */
.modern-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
    border: none !important;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

/* Garante que o footer dos cards tenha z-index alto */
.modern-card .modern-card-footer {
    position: relative;
    z-index: 100;
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Permite cliques através do overlay */
    z-index: 1;
}

.modern-card:hover::before {
    opacity: 1;
}

/* Gradientes modernos */
.gradient-churches { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.gradient-sectors { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
}

.gradient-items { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    position: relative;
}

.gradient-loans { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    position: relative;
}

/* Ícones modernos */
.modern-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-card:hover .modern-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Números destacados */
.modern-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Texto moderno */
.modern-title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.95;
}

.modern-subtitle {
    font-size: 0.85rem !important;
    opacity: 0.8;
    font-weight: 500 !important;
}

/* Indicadores de tendência */
.trend-indicator {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    margin-top: 0.5rem;
    display: inline-block;
}

/* Animações de entrada */
.animate-card {
    animation: slideInUp 0.6s ease-out;
}

.animate-card:nth-child(2) { animation-delay: 0.1s; }
.animate-card:nth-child(3) { animation-delay: 0.2s; }
.animate-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seção de gráficos moderna */
.modern-chart-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    border: none !important;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modern-chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Títulos modernos para todas as páginas */
.modern-page-title {
    background: linear-gradient(135deg, #23337a 0%, #063683 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-page-title i {
    color: rgb(6, 6, 109) !important;
    
}

/* Subtítulos modernos */
.modern-subtitle {
    color: #6c757d !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
}

/* Seletor de Igreja Moderno */
.modern-church-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
}

.modern-select-wrapper {
    position: relative;
}

.modern-select {
    border-radius: 12px !important;
    border: 2px solid #e9ecef !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: white !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.modern-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    transform: translateY(-2px);
}

.modern-select:hover {
    border-color: #667eea !important;
    transform: translateY(-1px);
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
    transition: all 0.3s ease;
}

.modern-select:focus + .select-icon {
    color: #667eea;
    transform: translateY(-50%) rotate(180deg);
}

/* Modais Modernos */
.modern-modal .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    height: 95vh !important;
    margin: 2.5vh auto !important;
}

.modern-modal .modal-content {
    height: 100%;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%);
    color: white !important;
    border: none !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem 2rem !important;
}

.modern-modal .modal-title {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
}

.modern-modal .btn-close {
    background: rgba(220, 53, 69, 0.9) !important; /* Fundo vermelho */
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.modern-modal .btn-close:hover {
    background: rgba(220, 53, 69, 1) !important; /* Vermelho sólido no hover */
    border-color: rgba(255,255,255,0.6) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5) !important;
}

.modern-modal .btn-close::before {
    content: '×' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Remove o ícone padrão do Bootstrap */
.modern-modal .btn-close:not(:disabled):not(.disabled) {
    background-image: none !important;
}

.modern-modal .modal-body {
    padding: 1.5rem 2rem 2rem 2rem !important; /* Menos padding no topo */
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.modern-modal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none !important;
    border-radius: 0 0 20px 20px !important;
    padding: 1.5rem 2rem !important;
    gap: 1rem !important;
}

.modern-modal .btn {
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.modern-modal .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Container dos gráficos nos modais */
.modern-modal .modal-body > div {
    flex: 1 !important;
    min-height: 0 !important; /* Permite que o flex shrink funcione */
}

/* ===== NAVBAR MODERNA ===== */

/* Navbar principal */
.modern-navbar {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

/* Botão do menu */
.modern-menu-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 0.5rem 1rem !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.modern-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Ícones do header - sem background por padrão */
.modern-header-icon {
    background: transparent !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
    margin: 0 0.25rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border: 2px solid transparent !important;
}

.modern-header-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) scale(1.05) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.modern-header-icon.active,
.modern-header-icon.active:hover,
a.modern-header-icon.active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

/* Força aplicação do estilo ativo - especificidade alta */
.modern-navbar .modern-header-icon.active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.modern-header-icon i {
    font-size: 1.4rem !important;
}

/* Dropdown do usuário */
.modern-user-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    padding: 0.5rem 1rem !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.modern-user-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.modern-user-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem !important;
}

.modern-user-dropdown .dropdown-item {
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.modern-user-dropdown .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateX(5px) !important;
}

/* Responsividade da navbar */
@media (max-width: 768px) {
    .modern-header-icon {
        padding: 0.5rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 0.15rem !important;
    }
    
    .modern-header-icon i {
        font-size: 1.2rem !important;
    }
    
    .modern-menu-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== SIDEBAR MODERNA ===== */

/* Sidebar principal */
.modern-sidebar {
    background: linear-gradient(180deg, #667eea 0%, #0d6efd 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
}

/* Header da sidebar - removido */
.modern-sidebar-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
    display: block !important;
    min-height: 20px !important;
    margin: 0 !important;
}

/* Botão de fechar centralizado na metade da sidebar */
.modern-sidebar-close-btn {
    position: absolute !important;
    top: 50vh !important;
    right: -15px !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.modern-sidebar-close-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

.modern-sidebar-close-btn i {
    color: white !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.modern-sidebar-close-btn:hover i {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}


.modern-sidebar-logo {
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.modern-sidebar-logo img {
    max-width: 120px !important;
    max-height: 120px !important;
}

.modern-sidebar-logo:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Links da sidebar - background limitado */
.modern-sidebar-link {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    margin: 0.15rem 0 !important;
    margin-right: 25px !important;
    padding: 0.5rem 0.75rem !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.modern-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transform: translateX(3px) !important; /* Reduzido para não invadir */
    color: white !important;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2) !important;
}

.modern-sidebar-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transform: translateX(3px) !important; /* Reduzido para não invadir */
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2) !important;
}

.modern-sidebar-link i {
    font-size: 1.7rem !important;
    min-width: 14px !important;
    text-align: center !important;
}

/* Body da sidebar - compacto sem espaço superior */
.modern-sidebar-body {
    padding: 0.5rem 0.75rem !important;
    background: transparent !important;
    overflow-y: auto !important;
    max-height: 100vh !important;
    padding-top: 0.5rem !important;
}

/* Lista de navegação - sem gaps extras */
.modern-sidebar .nav {
    gap: 0 !important;
}

/* Responsividade da sidebar */
@media (max-width: 1200px) {
    .modern-sidebar-link {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.85rem !important;
    }
    
    .modern-sidebar-link i {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .modern-sidebar-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        margin-right: 20px !important; /* Ajustado para telas menores */
    }
    
    .modern-sidebar-link i {
        font-size: 0.95rem !important;
    }
    
    .modern-sidebar-logo {
        padding: 0.3rem !important;
        margin-bottom: 0.4rem !important;
        margin-top: 0 !important;
        margin-right: 20px !important;
    }
    
    .modern-sidebar-logo img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .modern-sidebar-body {
        padding: 0.3rem 0.5rem !important;
        padding-top: 0.3rem !important;
    }
    
    .modern-sidebar-close-btn {
        right: -12px !important;
    }
}

@media (max-width: 480px) {
    .modern-sidebar-link {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
        margin: 0.1rem 0 !important;
        margin-right: 18px !important; /* Ajustado para mobile */
    }
    
    .modern-sidebar-link i {
        font-size: 0.85rem !important;
        min-width: 18px !important;
    }
    
    .modern-sidebar-logo {
        padding: 0.25rem !important;
        margin-bottom: 0.3rem !important;
        margin-top: 0 !important;
        margin-right: 18px !important;
    }
    
    .modern-sidebar-logo img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
    
    .modern-sidebar-body {
        padding: 0.2rem 0.4rem !important;
        padding-top: 0.2rem !important;
    }
    
    .modern-sidebar-close-btn {
        right: -10px !important;
    }
}

.sidebar-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
  }
  
.sidebar-icon[data-lucide] {
    width: 1em;
    height: 1em;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
  }

.sidebar-text {
    vertical-align: middle;
    display: inline-block;
  }

/* ===== ESTILOS ESPECÍFICOS PARA PÁGINAS ===== */

/* Botões modernos */
.modern-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.modern-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.modern-btn-action {
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.modern-btn-action:hover {
    transform: translateY(-1px) !important;
}

/* Estilos específicos para botões de ação em cards */
.modern-card-footer .modern-btn-action {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.modern-card-footer a {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.modern-card-footer .btn-outline-warning:hover {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

.modern-card-footer .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

/* Cards modernos para páginas específicas */
.modern-card-header {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%) !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1rem !important;
}

.modern-card-footer {
    background: rgba(248, 249, 250, 0.8) !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 1rem !important;
}

/* ===== IGREJA LIST ESPECÍFICOS ===== */

/* Container de imagem da igreja */
.church-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Força as imagens a ficarem quadradas */
.church-image-container::before {
    content: '';
    display: block;
    padding-bottom: 100%; /* Proporção 1:1 (quadrado) */
}

.church-image-container {
    height: auto; /* Remove altura fixa para usar proporção */
}

.church-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.church-card:hover .church-image {
    transform: scale(1.05);
}

.church-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(13, 110, 253, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.church-card:hover .church-image-overlay {
    opacity: 1;
}

.church-overlay-icon {
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

/* Grid de informações da igreja */
.church-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-item div {
    flex: 1;
}

/* Seção de usuários */
.users-section {
    background: rgba(248, 249, 250, 0.3);
    border-radius: 12px;
    padding: 1rem;
}

.section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 0.5rem;
}

.users-container {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.user-badge {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-badge:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-badge:last-child {
    margin-bottom: 0;
}

/* Responsividade para igreja cards */
@media (max-width: 768px) {
    .church-image-container::before {
        padding-bottom: 75%; /* Reduz proporção em mobile */
    }
    
    .church-info-grid {
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .users-container {
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .church-image-container::before {
        padding-bottom: 60%; /* Ainda menor em telas muito pequenas */
    }
}

/* ===== INPUTS E FILTROS MODERNOS ===== */

.modern-input-group {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.modern-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.modern-input {
    border: none !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: white !important;
}

.modern-input:focus {
    box-shadow: none !important;
    background: white !important;
}

/* ===== TABELAS MODERNAS ===== */

.table-actions-header {
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-info {
    font-size: 0.875rem;
}

/* Modern table header */
.modern-table-header {
    background: linear-gradient(135deg, #23337a 0%, #063683 100%) !important;
    border: none !important;
    position: relative !important;
}

.modern-table-header th {
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 1.25rem 1rem !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.modern-table-header th a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.modern-table-header th a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px) !important;
}

.modern-table-header th i {
    color: white !important;
}

/* Modern table container */
.modern-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Modern table */
.modern-table {
    margin-bottom: 0 !important;
    border: none !important;
}

/* Hover effect for table rows - padrão */
.hover-row:hover {
    background-color: rgba(35, 51, 122, 0.05) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* Hover effect específico para linhas com cores customizadas */
.hover-row.history-row-entrada:hover,
.hover-row.exchange-row-devolvido:hover {
    background-color: rgba(25, 135, 84, 0.12) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

.hover-row.history-row-saida:hover,
.hover-row.exchange-row-atrasado:hover {
    background-color: rgba(220, 53, 69, 0.12) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

.hover-row.exchange-row-emprestado:hover {
    background-color: rgba(255, 193, 7, 0.12) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

.bulk-actions {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ícones específicos */
.sector-icon {
    width: 32px;
    height: 32px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hover-row:hover .sector-icon {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* ===== RESPONSIVIDADE GERAL ===== */

@media (max-width: 768px) {
    .modern-filters {
        padding: 1rem !important;
    }
    
    .table-actions-header .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    
    .bulk-actions {
        width: 100%;
    }
}

/* ===== ITEM LIST ESPECÍFICOS ===== */

/* Container de foto do item */
.item-photo-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.item-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.item-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    font-size: 1.5rem;
}

.item-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.item-photo-container:hover .item-photo {
    transform: scale(1.1);
}

.item-photo-container:hover .item-photo-overlay {
    opacity: 1;
}

/* Ícone do item */
.item-icon {
    width: 32px;
    height: 32px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hover-row:hover .item-icon {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* Status badges */
.status-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 500 !important;
}

/* Quantity badge */
.quantity-badge {
    text-align: center;
}

/* Responsividade para item list */
@media (max-width: 768px) {
    .item-photo-container {
        width: 60px;
        height: 60px;
    }
    
    .status-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* ===== SECTOR LIST ESPECÍFICOS ===== */

/* Estatísticas do setor */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 1.2rem;
}

/* Barra de ações flutuante */
.floating-actions-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #23337a 0%, #063683 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(35, 51, 122, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Cards de setor específicos */
.sector-card {
    border: 1px solid rgba(35, 51, 122, 0.1);
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: rgba(35, 51, 122, 0.3);
    box-shadow: 0 8px 25px rgba(35, 51, 122, 0.15);
}

.church-info {
    background: rgba(35, 51, 122, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

/* Responsividade para barra flutuante */
@media (max-width: 768px) {
    .floating-actions-bar {
        left: 10px;
        right: 10px;
        transform: none;
        padding: 0.75rem 1rem;
        border-radius: 16px;
    }
    
    .floating-actions-bar .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
}

/* ===== FILTROS AVANÇADOS ===== */

/* Transição suave para filtros avançados */
.advanced-filters {
    animation: slideDown 0.3s ease-in-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Estilo para o card de filtros avançados */
.advanced-filters .card {
    border: 1px solid rgba(35, 51, 122, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advanced-filters .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advanced-filters .card-body {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
}

/* ===== HISTORY LIST ESPECÍFICOS ===== */

/* Container de foto do histórico */
.history-photo-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.history-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.history-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.history-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    font-size: 1.2rem;
}

.history-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
}

.history-photo-container:hover .history-photo {
    transform: scale(1.1);
}

.history-photo-container:hover .history-photo-overlay {
    opacity: 1;
}

/* Responsividade para history list */
@media (max-width: 768px) {
    .history-photo-container {
        width: 50px;
        height: 50px;
    }
}

/* ===== EXCHANGE LIST ESPECÍFICOS ===== */

/* Container de foto dos empréstimos */
.exchange-photo-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.exchange-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.exchange-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    font-size: 1.2rem;
}

.exchange-photo-container:hover .exchange-photo {
    transform: scale(1.05);
}

/* Responsividade para exchange list */
@media (max-width: 768px) {
    .exchange-photo-container {
        width: 50px;
        height: 50px;
    }
}

/* ===== FOOTER MODERNO E MINIMALISTA ===== */

.modern-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(35, 51, 122, 0.1);
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    min-height: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.footer-link:hover {
    color: #23337a;
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #23337a;
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-support {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.footer-support:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #128c7e !important;
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

.footer-support::after {
    display: none;
}

/* Créditos discretos */
.footer-credits {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-credits:hover {
    opacity: 0.8;
}

.credits-text {
    font-size: 0.75rem;
    color: #81858a;
    font-weight: 400;
}

.credits-logo {
    height: 12px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-credits:hover .credits-logo {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-footer {
        padding: 0.75rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        min-height: auto;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
        order: 1;
    }
    
    .footer-brand {
        order: 2;
    }
    
    .footer-credits {
        justify-content: center;
        order: 3;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-support {
        padding: 0.25rem 0.75rem;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .credits-logo {
        height: 14px;
    }
}

/* ===== CORES DE FUNDO PARA LINHAS DAS TABELAS ===== */

/* Reset de estilos Bootstrap para garantir nossas cores customizadas */
.modern-table tbody tr,
.table tbody tr {
    background-color: transparent !important;
}

/* Force override para qualquer classe Bootstrap */
.table-success,
.table-danger,
.table-warning,
.table-info,
.table-light,
.table-secondary {
    background-color: transparent !important;
}

/* Histórico de Movimentações - cores para entrada/saída */
.history-row-entrada,
tr.history-row-entrada,
.modern-table .history-row-entrada,
.modern-table tbody .history-row-entrada,
.table .history-row-entrada {
    background-color: rgba(25, 135, 84, 0.15) !important; /* Verde claro mais visível */
}

.history-row-saida,
tr.history-row-saida,
.modern-table .history-row-saida,
.modern-table tbody .history-row-saida,
.table .history-row-saida {
    background-color: rgba(220, 53, 69, 0.15) !important; /* Vermelho claro mais visível */
}

/* Empréstimos - cores para status */
.exchange-row-devolvido,
tr.exchange-row-devolvido,
.modern-table .exchange-row-devolvido,
.modern-table tbody .exchange-row-devolvido,
.table .exchange-row-devolvido {
    background-color: rgba(25, 135, 84, 0.15) !important; /* Verde claro mais visível */
}

.exchange-row-emprestado,
tr.exchange-row-emprestado,
.modern-table .exchange-row-emprestado,
.modern-table tbody .exchange-row-emprestado,
.table .exchange-row-emprestado {
    background-color: rgba(255, 193, 7, 0.15) !important; /* Amarelo claro mais visível */
}

.exchange-row-atrasado,
tr.exchange-row-atrasado,
.modern-table .exchange-row-atrasado,
.modern-table tbody .exchange-row-atrasado,
.table .exchange-row-atrasado {
    background-color: rgba(220, 53, 69, 0.15) !important; /* Vermelho claro mais visível */
}

