/* Shared Styles Across Pages */

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.page-description {
    max-width: 600px;
}

.sticky-sidebar {
    top: 100px;
}

.avatar {
    width: 50px;
    height: 50px;
    font-weight: bold;
    font-size: 1.25rem;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-weight: bold;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.transition-color {
    transition: color 0.2s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styles (shared) */
.pagination-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.pagination-wrapper::-webkit-scrollbar {
    height: 4px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.pagination {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 51, 132, 0.25);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link:hover {
    background-color: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-link {
    background-color: white;
    transition: all 0.2s;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin: 0 2px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.375rem 0.5rem;
        width: auto;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination .page-item {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .pagination-wrapper {
        padding: 5px 0;
    }
    
    .pagination {
        gap: 3px;
        padding: 0 5px;
        justify-content: flex-start;
        min-width: max-content;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin: 0 1px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.25rem 0.4rem;
        min-width: 32px;
        font-size: 0.75rem;
    }
}
