/********************************************************************************
 * Eclipse Tractus-X - Industry Core Hub Frontend
 *
 * Copyright (c) 2025 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
********************************************************************************/

@use '../../config/variables' as *;

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
  padding: 0 16px;
  flex-shrink: 0;

  .pagination-button {
    background: $header-opaque-gradient-bg;
    color: $brand-text !important;
    border-color: green;
    border-radius: 12px !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    min-width: 120px;
    height: 40px;
    transition: all 0.2s ease-in-out;

    &:hover {
      background: $blue-gradient-bg;
      border-color: $brand-text !important;
    }

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

    &.loading {
      .pagination-button-content {
        opacity: 0;
      }
    }

    .pagination-spinner {
      color: $brand-text;
      
      &.hover-spinner {
        color: $brand-text;
      }
    }
  }

  .pagination-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    min-width: 200px;
    text-align: center;

    .pagination-current {
      color: $brand-text;
      font-weight: 500;
      font-size: 0.8rem;
    }

    .pagination-total {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.8rem;
    }
  }
}
