/* Styling dasar untuk semua item pagination */
.pagination > li > a,
.pagination > li > span,
.pagination > li:first-child > a,
.pagination > li:first-child > span,
.pagination > li:last-child > a,
.pagination > li:last-child > span,
.page-link {
    background: #202940;
    color: white;
    border: none;
    border-radius: 100px !important;
    margin: 0 2px;
}

/* Menghapus margin negatif yang tidak diperlukan */
.page-item:not(:first-child) .page-link {
    margin-left: 2px; /* Konsisten dengan margin di atas */
}

/* Styling untuk hover state (opsional) */
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li:first-child > a:hover,
.pagination > li:first-child > span:hover,
.pagination > li:last-child > a:hover,
.pagination > li:last-child > span:hover,
.page-link:hover {
    background: #2e3b5a; /* Sedikit lebih terang saat hover */
    color: white;
}

/* Styling untuk active state (opsional) */
.pagination > .active > a,
.pagination > .active > span,
.page-item.active .page-link {
    background: #1572e8; /* Biru yang lebih terang untuk halaman aktif */
    color: white;
}

.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    width: 100%;
    background-color: #202940;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    left: 0;
    top: 100%;
    margin-top: 2px;
}

.search-parent {
    padding: 10px 15px;
    font-weight: bold;
    color: white;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
}

.search-item.child {
    padding-left: 30px;
}

.search-item:hover {
    opacity: .85;
}

/* pdf to image css */
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
#progress-status {
    font-weight: 500;
}
#progress-percentage {
    font-weight: 700;
}
.progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 20px;
}
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #007bff;
    transition: width 0.3s ease;
}
.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}
@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}
#progress-detail, #page-progress {
    color: #6c757d;
}

.preview-container {
    position: relative;
    display: inline-block;
}
.preview-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}
.dz-preview:hover .preview-actions {
    opacity: 1;
}
.preview-actions button {
    border: none;
    padding: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
}
.pdf-thumb {
    width: 100%;
    height: 100%;
}

.dropzone .dz-preview .dz-image {
    border-radius: 10px !important;
    width: 150px;
    height: 180px;
}

.dz-progress, .dz-error-message, .dz-success-mark, .dz-error-mark, .dz-filename, .dz-size, .dz-details {
    display: none;
}

/* end pdf image */