/* ==========================================================================
   5. GAYA KHAS UNTUK SENARAI SEJARAH (HISTORY LIST) - VERSI MINIMALIS
   ========================================================================== */

.history-list {
    list-style: none;
    padding: 0;
    column-count: 1 !important; 
}

.history-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
    border-bottom: none;
    padding-bottom: 0.1rem;
}

.history-item__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #ffffff !important; /* DIKEMAS KINI: Memastikan warna ikon sentiasa putih */
    font-size: 2.4rem; /* DIKEMAS KINI: Ikon di dalam bulatan dibesarkan */
}

/* Warna Latar Ikon */
.history-item__icon--positive { background-color: #198754; }
.history-item__icon--negative { background-color: #dc3545; }
.history-item__icon--neutral { background-color: #6f42c1; }

.history-item__details {
    flex-grow: 1;
}

.history-item__details .description {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 2px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.history-item__details .meta {
    font-size: 0.75rem;
    color: #888;
}

/* GAYA BAHARU: Untuk mewarnakan teks dalam kurungan */
.text-positive {
    color: #198754 !important; /* Warna hijau */
    font-weight: 600;
}
.text-negative {
    color: #dc3545 !important; /* Warna merah */
    font-weight: 600;
}
/* ==========================================================================
   6. GAYA KHAS UNTUK KAD SETEM (STAMP CARD) - VERSI AKHIR
   ========================================================================== */

.stamp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* <--- DIBETULKAN KEPADA 5 LAJUR */
    gap: 10px; 
}

.stamp-slot {
    width: 100%;
    padding-bottom: 100%; 
    position: relative;
    border-radius: 60px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    /* DIKEMAS KINI: Tambah bayang dalam untuk gantikan border */
    box-shadow: inset 0 0 0px rgba(0,0,0,0.05); 
}

.stamp-slot.empty {
    /* DIKEMAS KINI: Tiada lagi border */
    border: none;
}

.stamp-slot.stamped {
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
}

.stamp-slot span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ced4da;
    font-weight: 600;
    font-size: 1.5rem;
}


/* ==========================================================================
   7. GAYA KHAS UNTUK PAGINATION RESPONSIVE
   ========================================================================== */

/* Sasarkan bekas <nav> yang membalut pagination */
.card-footer nav {
    /* Benarkan skrol secara mendatar jika kandungan terlebih */
    overflow-x: auto;
    
    /* Sembunyikan bar skrol (scrollbar) yang hodoh */
    -ms-overflow-style: none;  /* Untuk IE dan Edge */
    scrollbar-width: none;  /* Untuk Firefox */
}

/* Sembunyikan scrollbar untuk Chrome, Safari dan Opera */
.card-footer nav::-webkit-scrollbar {
    display: none;
}

/* Pastikan item pagination kekal dalam satu baris */
.card-footer .pagination {
    flex-wrap: nowrap;
    margin-bottom: 0; /* Buang margin bawah untuk elak jarak tambahan */
}