/**
 * AutoDirectMy Stock Management System - Pagination Styles
 */

/* Container for the entire pagination block */
.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    width: 100%;
}

/* Flex wrapper for buttons */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Base style for all pagination buttons */
.page-btn {
    background: #252525;
    color: #b0b0b0;
    border: 1px solid #3d3d3d;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Hover effects for inactive buttons */
.page-btn:hover:not(:disabled):not(.active) {
    background: #333333;
    border-color: #555555;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Active/Current Page State */
.page-btn.active {
    background: var(--red, #d32f2f); 
    border-color: var(--red, #d32f2f);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
    cursor: default;
}

/* Disabled State (e.g., Arrows when at limits) */
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #666666;
}

/* Click feedback */
.page-btn:active:not(:disabled):not(.active) {
    transform: translateY(0);
    background: #202020;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        padding: 6px 10px;
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}
