/* ========================================
   CLEAN & PROFESSIONAL PAGINATION FIX
   ======================================== */

/* 1. Container & Alignment */
.pagination-wrapper, 
nav[role="navigation"] {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important; /* Paksa ke kiri */
    justify-content: flex-start !important;
    width: 100%;
    margin: 20px 0;
    gap: 10px;
}

/* 2. Fix Ikon Raksasa (Sangat Penting) */
.pagination svg {
    width: 14px !important; /* Ukuran ikon yang proporsional */
    height: 14px !important;
    display: inline-block !important;
    vertical-align: middle;
    fill: currentColor;
}

/* 3. Styling Teks Ringkasan (Showing x to y...) */
.pagination-wrapper .text-sm,
.pagination-wrapper p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
}

/* 4. Base Button Styling */
.pagination {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pagination .page-item .page-link,
.pagination .page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* 5. Interaksi (Hover & Active) */
.pagination .page-item .page-link:hover {
    background-color: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active span {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    z-index: 3;
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
    cursor: not-allowed;
}

/* 6. Menghilangkan Border Ganda */
.pagination .page-item:not(:first-child) .page-link {
    margin-left: -1px;
}

/* 7. Merapikan Sudut */
.pagination .page-item:first-child .page-link {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.pagination .page-item:last-child .page-link {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Khusus untuk menyembunyikan elemen "Mobile" bawaan Laravel yang sering muncul double */
nav[role="navigation"] .hidden.sm\:flex-1 {
    display: none !important;
}