@use 'mixins' as *;

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    gap: .25rem;
    flex-wrap: wrap;

    a {
        text-decoration: none;
        @include transitionColors();
        font-weight: 500;
        font-size: .875rem;
        line-height: 1.25rem;
        padding-left: .875rem;
        padding-right: .875rem;
        display: inline-flex;
        padding-top: .5rem;
        padding-bottom: .5rem;
        border-radius: calc(var(--radius) - 2px);
        white-space: nowrap;
        justify-content: center;
        align-items: center;
        gap: .675rem;
        height: 2.25rem;
        color: hsl(var(--foreground));

        &.active {
            --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
            --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
            box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
            border-color: hsl(var(--input));
            border-width: 1px;
        }

        &:hover {
            color: hsl(var(--accent-foreground));
            background-color: hsl(var(--accent));
        }
    }
}