/* Override default bootstrap tab styling to match the design */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: none;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    color: #6c757d;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #0d6efd;
    background-color: transparent;
    border-color: transparent transparent #0d6efd;
    border-bottom-width: 2px;
}

/* Project filter dropdown styling */
#projectFilter {
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 0.875rem;
}

#projectFilter option {
    background-color: #212529;
    color: white;
}

#projectFilter:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Ensure select2 dropdowns in modals are visible */
.select2-container {
    z-index: 1056; /* Higher than Bootstrap modal z-index */
}

/* Custom Pagination Styling - Black and White Theme */
.pagination {
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Pagination container centering */
nav[aria-label*="pagination"] {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Custom pagination items */
.custom-page-item .custom-page-link {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-page-item .custom-page-link:hover {
    color: #ffffff;
    background-color: #333333;
    border-color: #333333;
    text-decoration: none;
}

.custom-page-item .custom-page-link:focus {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Active page styling */
.custom-page-item.active .custom-page-link {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
    font-weight: 600;
}

.custom-page-item.active .custom-page-link:hover {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
}

/* Disabled page styling */
.custom-page-item.disabled .custom-page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-page-item.disabled .custom-page-link:hover {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Navigation arrows styling */
.custom-page-item .custom-page-link span[aria-hidden="true"] {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Info text styling */
#pendingInfo, #completedInfo {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.75rem;
}

/* Pagination wrapper for better spacing */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .custom-page-item .custom-page-link {
        padding: 0.375rem 0.5rem;
        margin: 0 1px;
        min-width: 36px;
        font-size: 0.875rem;
    }
    
    /* Hide some pagination items on mobile for better fit */
    .custom-page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}