/* ========== MODO NOTURNO - PÁGINA DE GALERIAS ========== */

/* Container principal */
body.dark-mode #example-1,
body.dark-mode .container-fluid[style*="background: linear-gradient"] {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%) !important;
}

/* Títulos e textos */
body.dark-mode h2 {
    color: #f1f5f9 !important;
}

body.dark-mode h2 i {
    color: #f59e0b !important;
}

body.dark-mode p {
    color: #94a3b8 !important;
}

/* Cards de galeria */
body.dark-mode .gallery-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .gallery-card:hover {
    background: #273549 !important;
    border-color: #f59e0b !important;
}

/* Card body */
body.dark-mode .gallery-card > div:last-child {
    background: #1e293b !important;
}

/* Título do card */
body.dark-mode .gallery-card h5 {
    color: #f1f5f9 !important;
}

/* Categoria badge */
body.dark-mode .gallery-card span[style*="background: #fef3c7"] {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

/* Info de fotos */
body.dark-mode .gallery-card .d-flex.align-items-center span {
    color: #94a3b8 !important;
}

/* Info box de paginação */
body.dark-mode div[style*="background: white"][style*="border-radius: 12px"] {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

body.dark-mode div[style*="background: white"][style*="border-radius: 12px"] span {
    color: #94a3b8 !important;
}

body.dark-mode div[style*="background: white"][style*="border-radius: 12px"] strong {
    color: #f1f5f9 !important;
}

/* Paginação */
body.dark-mode .pagination .page-item .page-link {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .pagination .page-item .page-link:hover {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}

body.dark-mode .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #f59e0b !important;
    color: white !important;
}

body.dark-mode .pagination .page-item.disabled .page-link {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #475569 !important;
}

/* Botão Voltar */
body.dark-mode a[style*="background: white"][style*="border: 2px solid"] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode a[style*="background: white"][style*="border: 2px solid"]:hover {
    background: #273549 !important;
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* Nenhuma galeria encontrada */
body.dark-mode .text-center h3 {
    color: #94a3b8 !important;
}

body.dark-mode .text-center p {
    color: #64748b !important;
}

/* Loading overlay */
body.dark-mode #loadingOverlay {
    background: rgba(15, 23, 42, 0.95) !important;
}

body.dark-mode #loadingOverlay div:last-child {
    color: #f59e0b !important;
}

/* Pagination Styles */
.pagination {
    gap: 8px;
}
.pagination .page-item .page-link {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}
.pagination .page-item .page-link:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.pagination .page-item.disabled .page-link {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Campo de pesquisa responsivo */
@media (max-width: 991px) {
    .nav-item form input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px;
    }
    
    .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Estilo do placeholder */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Efeito na seta do botão */
.gallery-card:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Animação suave para os cards */
.gallery-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover no ícone de galeria */
.gallery-card:hover .fa-images {
    animation: rotate 0.6s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Efeito de zoom na imagem */
.gallery-card img {
    will-change: transform;
}
    /* Responsividade */
    @media (max-width: 768px) {
        .col-md-6 {
            width: 100%;
        }
    }

    /* Custom Carousel Controls */
    .carousel-control-prev, .carousel-control-next {
        width: 80px;
        opacity: 1;
        z-index: 1050;
        background: none;
        border: none;
    }
    
    .nav-btn-custom {
        width: 50px;
        height: 50px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
        color: white;
        font-size: 24px;
    }
    
    .carousel-control-prev:hover .nav-btn-custom,
    .carousel-control-next:hover .nav-btn-custom {
        background-color: #f59e0b;
        transform: scale(1.1);
        border-color: #f59e0b;
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    }

    /* Modal Styles */
    .modal-backdrop.show {
        opacity: 0.9;
        background-color: #0f172a;
    }

    .btn-close-custom {
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1060;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
        backdrop-filter: blur(4px);
    }

    .btn-close-custom:hover {
        background: #ef4444;
        border-color: #ef4444;
        transform: rotate(90deg);
    }

    .galeria-thumb {
        transition: all 0.2s ease;
        opacity: 0.6;
    }

    .galeria-thumb:hover, .galeria-thumb.active {
        opacity: 1;
        transform: translateY(-2px);
    }

