﻿/* Пагинация */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .page-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.5s;
    }

    .page-link:hover::before {
        left: 100%;
    }

/* Активная страница */
.page-item.active .page-link {
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Стрелки пагинации */
.page-arrow .page-link {
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    border-color: transparent;
    color: white;
    min-width: 48px;
}

    .page-arrow .page-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
    }

    .page-arrow .page-link svg {
        transition: transform 0.3s ease;
    }

    .page-arrow .page-link:hover svg {
        transform: scale(1.1);
    }

/* Отключенные элементы */
.page-arrow.disabled .page-link {
    background: #f1f5f9;
    border-color: #e1e5e9;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

    .page-arrow.disabled .page-link:hover {
        transform: none;
        box-shadow: none;
    }

.page-item.disabled .page-link.dots {
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
    cursor: default;
    min-width: 32px;
}

    .page-item.disabled .page-link.dots:hover {
        transform: none;
        background: transparent;
    }

/* Ховер-эффекты */
.page-item:not(.active):not(.disabled):not(.page-arrow) .page-link:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Информация о странице */
.pagination-info {
    text-align: center;
}

.page-indicator {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

    .page-indicator strong {
        color: #334155;
    }

@keyframes pageTransition {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.page-item.active {
    animation: pageTransition 0.4s ease-out;
}

.pagination-loading .page-item.active .page-link {
    animation: pulse 1s infinite;
}

.page-item {
    transition: all 0.3s ease;
}

.page-link {
    cursor: pointer;
    user-select: none;
}

#pagination-loader {
    transition: opacity 0.3s ease;
}

a {
    color: black;
}

    a:hover {
        color: black;
    }

li:hover {
    background-color: #e4e4e4;
}

.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #a1c5fa;
    border-color: #0d6efd;
}

.table > thead {
    border-bottom: 3px solid red;
    vertical-align: bottom;
}

#zylidner_create_name {
    border-bottom: 3px solid red;
}

#Image-load-product {
    padding-bottom: 10px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2,auto);
}

.Image-load_item:nth-child(1) {
    max-width: 250px;
    margin-right: auto;
}

.Image-load_item:nth-child(2) {
    max-width: 250px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-arrow .page-link {
        min-width: 42px;
    }

    .page-item.disabled .page-link.dots {
        min-width: 28px;
    }

    .pagination-info {
        order: -1;
        margin-bottom: 10px;
    }
}