/* Custom Beautiful Pagination Styles - Based on Now UI Dashboard */
.custom-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.custom-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}

.custom-pagination .pagination li {
    margin: 0;
}

.custom-pagination .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    color: #2c2c2c;
    text-decoration: none;
    border: none;
    border-radius: 0.1875rem;
    background: #ffffff;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.8571em;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-pagination .pagination .page-link:hover {
    background-color: #f96332;
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.17);
}

.custom-pagination .pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 99, 50, 0.25);
}

.custom-pagination .pagination .page-item.active .page-link {
    background-color: #18ce0f;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.17);
}

.custom-pagination .pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination .pagination .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Special styling for Previous/Next buttons */
.custom-pagination .pagination .page-item:first-child .page-link,
.custom-pagination .pagination .page-item:last-child .page-link {
    font-weight: 500;
    min-width: 44px;
    background-color: #2CA8FF;
    color: #ffffff;
}

.custom-pagination .pagination .page-item:first-child .page-link:hover,
.custom-pagination .pagination .page-item:last-child .page-link:hover {
    background-color: #4bb5ff;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.17);
}

/* Icon styling - Based on Now UI Dashboard */
.custom-pagination .pagination .page-link i,
.custom-pagination .pagination .page-link svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    transition: all 0.2s ease;
}

/* Card footer styling - Based on Now UI Dashboard */
.card-footer {
    background-color: #ffffff;
    border-top: 1px solid #e3e3e3;
    padding: 20px 30px;
    border-radius: 0 0 0.1875rem 0.1875rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Info text styling - Based on Now UI Dashboard */
.pagination-info {
    color: #2c2c2c;
    font-size: 0.8571em;
    font-weight: 400;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 0.1875rem;
    border: 1px solid #e3e3e3;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin-top: 20px;
}

/* Pagination wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive design - Based on Now UI Dashboard */
@media (max-width: 768px) {
    .custom-pagination .pagination {
        gap: 3px;
    }
    
    .custom-pagination .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8em;
        padding: 0 8px;
    }
    
    .custom-pagination .pagination .page-item:first-child .page-link,
    .custom-pagination .pagination .page-item:last-child .page-link {
        min-width: 40px;
    }
    
    .custom-pagination .pagination .page-link i,
    .custom-pagination .pagination .page-link svg {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
    
    .card-footer {
        padding: 16px 20px;
    }
    
    .pagination-info {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .custom-pagination .pagination {
        gap: 2px;
    }
    
    .custom-pagination .pagination .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.75em;
        padding: 0 6px;
    }
    
    .custom-pagination .pagination .page-item:first-child .page-link,
    .custom-pagination .pagination .page-item:last-child .page-link {
        min-width: 36px;
    }
    
    .custom-pagination .pagination .page-link i,
    .custom-pagination .pagination .page-link svg {
        font-size: 10px;
        width: 10px;
        height: 10px;
    }
    
    .card-footer {
        padding: 12px 16px;
    }
    
    .pagination-info {
        font-size: 0.75em;
        padding: 4px 10px;
    }
}

/* Responsive layout for pagination info and controls */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        margin-top: 16px;
    }
    
    .pagination-info {
        text-align: center;
        order: 2;
    }
    
    .pagination-wrapper {
        order: 1;
    }
    
    .custom-pagination {
        justify-content: center;
    }
}
