@mixin matcha-paginator-theme($theme) {

    // .matcha-paginator {
    //     .page-button {
    //         &.active.accent {
    //             background-color: getAccent($theme) !important;
    //             color: $light-primary-text !important;
    //             border-color: getAccent($theme) !important;
    //         }
            
    //         &.active.orange {
    //             background-color: getOrange($theme) !important;
    //             color: $light-primary-text !important;
    //             border-color: getOrange($theme) !important;
    //         }
            
    //         &.active.blue {
    //             background-color: getBlue($theme) !important;
    //             color: getBlueContrast($theme) !important;
    //             border-color: getBlue($theme) !important;
    //         }
            
    //         &.active.green {
    //             background-color: getGreen($theme) !important;
    //             color: getGreenContrast($theme) !important;
    //             border-color: getGreen($theme) !important;
    //         }
            
    //         &.active.purple {
    //             background-color: getPurple($theme) !important;
    //             color: getPurpleContrast($theme) !important;
    //             border-color: getPurple($theme) !important;
    //         }
            
    //         &.active.primary {
    //             background-color: getPrimary($theme) !important;
    //             color: getPrimaryContrast($theme) !important;
    //             border-color: getPrimary($theme) !important;
    //         }
            
    //         &.active.warn {
    //             background-color: getWarn($theme) !important;
    //             color: getWarnContrast($theme) !important;
    //             border-color: getWarn($theme) !important;
    //         }
            
    //         &.active.red {
    //             background-color: getRed($theme) !important;
    //             color: getRedContrast($theme) !important;
    //             border-color: getRed($theme) !important;
    //         }
    //     }
    // }

    .matcha-paginator {
      .paginator-total-info {
        display: flex;
        flex-direction: column;
        margin-right: 16px;
        
        .total-range {
          font-size: 14px;
          color: getForeground($theme);
          font-weight: 500;
          line-height: 1.4;
        }
        
        .total-filtered {
          font-size: 12px;
          color: getGrey($theme);
          line-height: 1.3;
        }
      }

      .page-size-selector {
        position: relative;
        display: inline-block;

        .page-size-select {
          appearance: none;
          -webkit-appearance: none;
          -moz-appearance: none;
          padding: 8px 32px 8px 12px;
          border: 0;
          background-color: getSurface($theme);
          color: getForeground($theme);
          font-size: 14px;
          font-family: matcha-font-family(matcha-typography-config(), button);
          font-weight: matcha-font-weight(matcha-typography-config(), button);
          cursor: pointer;
          min-width: 60px;
          transition: all 0.2s ease;
          @include elevation(1);

          &:hover {
            border-color: getAccent($theme);
            background-color: getBackground($theme);
          }

          &:focus {
            outline: 2px solid getAccent($theme);
            outline-offset: 2px;
          }

          &::-ms-expand {
            display: none;
          }

          option {
            font-family: matcha-font-family(matcha-typography-config(), button);
            font-weight: matcha-font-weight(matcha-typography-config(), button);
            font-size: 14px;
            background-color: getSurface($theme);
            color: getForeground($theme);
            padding: 8px 12px;
          }
        }

        .select-icon {
          position: absolute;
          right: 8px;
          top: 50%;
          transform: translateY(-50%);
          pointer-events: none;
          transition: transform 0.2s ease;

          .i-matcha-action_arrow_up {
            transform: rotate(180deg);
            font-size: 14px;
          }
        }

        &:hover .select-icon {
          .i-matcha-action_arrow_up {
            transform: rotate(180deg) scale(1.1);
          }
        }
      }

      .page-size-select {
        padding: 4px 8px;
        border: 0px solid getGrey($theme);
        background-color: getSurface($theme);
        color: getForeground($theme);
        font-size: 14px;

        &:focus {
          outline: 0px solid getAccent($theme);
          outline-offset: 2px;
        }
      }
    
      .nav-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border: 0px solid getGrey($theme);
        background-color: getSurface($theme);
        color: getForeground($theme);
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover:not(:disabled) {
          background-color: getBackground($theme);
          border-color: getAccent($theme);
        }

        &:disabled {
          opacity: 0.5;
          cursor: not-allowed;
        }

        &:focus {
          outline: 2px solid getAccentAlpha($theme);
          outline-offset: 2px;
        }
      }

      .page-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        border: 0;
        border-radius:999px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 14px;

        &:hover:not(.active) {
          background-color: getBackground($theme);
          border-color: getAccent($theme);
        }

        &:focus {
          outline: 2px solid getAccentAlpha($theme);
          outline-offset: 2px;
        }
      }
    
      .ellipsis {
        display: flex;
        align-items: center;
        justify-content: center;
        color: getGrey($theme);
        font-size: 14px;
        user-select: none;
      }

      .text-sm {
        font-size: 14px;
        color: getForeground($theme);
      }
  }
}
