/* pagination style */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    font-weight: 500;
}

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










/* Search Bar - Positioned to the Right */
.tc-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    width: 280px;
    margin-left: auto;           /* Pushes it to the right */
}

.search-box i {
    color: #64748b;
    margin-right: 8px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

/* Optional: Make it responsive */
@media (max-width: 768px) {
    .tc-hdr {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box {
        width: 100%;
        margin-left: 0;
    }
}









/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 5px solid white;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10001;
}

.lightbox-close:hover {
    background: #ff4444;
    color: white;
}