/* Fix for SVG icons in pagination */
svg {
    width: 1em !important;
    height: 1em !important;
}

/* Target the specific large arrow SVGs in pagination */
.pagination svg,
nav[role="navigation"] svg,
svg.w-5,
svg.h-5 {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    overflow: hidden !important;
}

/* Target SVGs with explicit dimensions */
svg[width="24"],
svg[height="24"] {
    width: 16px !important;
    height: 16px !important;
}

/* Handle inline styles */
[style*="width: 24px"],
[style*="height: 24px"] {
    width: 16px !important;
    height: 16px !important;
}

/* Fix for Tailwind pagination if used */
nav[role="navigation"] span[aria-hidden="true"] svg {
    width: 16px !important;
    height: 16px !important;
}

/* Fix for Bootstrap pagination */
.page-item .page-link svg {
    width: 16px !important;
    height: 16px !important;
}

/* Fix pagination layout */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

/* Fix for the specific pagination layout in the screenshot */
.pagination nav {
    width: 100%;
}

.pagination nav > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Fix for the pagination links container */
.pagination nav > div:last-child > div:last-child > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

/* Fix for the pagination links */
.pagination nav > div:last-child > div:last-child > span > * {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

/* Fix for active page */
.pagination nav > div:last-child > div:last-child > span > span[aria-current="page"] {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Fix for the pagination info text */
.pagination nav > div:last-child > div:first-child {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}
