/**
 * Backend Custom CSS
 * General-purpose custom styles for backend overrides
 */

/* ==========================================================================
   Laravel Pagination - Metronic Style Override
   ========================================================================== */

/**
 * Override Laravel's default Bootstrap 5 pagination to match Metronic theme styling.
 * Based on Metronic's _pagination.scss variables and patterns.
 */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.pagination .page-item {
    margin-right: 0.5rem;
}

.pagination .page-item:last-child {
    margin-right: 0;
}

.pagination .page-item .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.475rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--bs-gray-700);
    background-color: transparent;
    border: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pagination .page-item .page-link:focus {
    box-shadow: none;
    color: var(--bs-component-hover-color);
    background-color: var(--bs-component-hover-bg);
}

.pagination .page-item:hover:not(.active):not(.disabled) .page-link {
    color: var(--bs-component-hover-color);
    background-color: var(--bs-component-hover-bg);
}

.pagination .page-item.active .page-link {
    color: var(--bs-component-active-color);
    background-color: var(--bs-component-active-bg);
}

.pagination .page-item.disabled .page-link {
    color: var(--bs-gray-400);
    background-color: transparent;
    pointer-events: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
    .pagination .page-item {
        margin-right: 0.25rem;
    }

    .pagination .page-item:last-child {
        margin-right: 0;
    }
}

/* Photos gallery */
.image-gallery-thumbnail {
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Photos gallery - constrain image height */
.gallery-image-container {
    max-height: 280px;
    overflow: hidden;
}
.gallery-image-container img {
    height: 280px !important;
    width: 100% !important;
    object-fit: cover !important;
}
