/* ===== CONTAINER ===== */
.riwayatAdmin-container {
    width: 100%;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
}

.riwayatAdmin-title {
    font-weight: 700;
    color: #1a3365;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 4px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-diperjalanan .stat-icon { background: #cfe2ff; color: #084298; }
.stat-sukses .stat-icon { background: #d1e7dd; color: #0f5132; }
.stat-ditolak .stat-icon { background: #f8d7da; color: #842029; }

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== FILTER UI ===== */
.riwayatAdmin-filterLabel {
    font-size: 13px;
    font-weight: 700;
    color: #1a3365;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

.riwayatAdmin-input {
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.riwayatAdmin-btnFilter {
    background: #1a3365;
    color: #fff;
    border-radius: 10px;
    border: none;
    height: 45px;
    font-weight: 600;
}

.riwayatAdmin-btnReset {
    background: #f8f9fa;
    color: #1a3365;
    border: 1.5px solid #1a3365;
    border-radius: 10px;
    height: 45px;
    font-weight: 600;
}

/* ===== TABLE UTAMA (Halaman Depan) ===== */
.riwayatAdmin-tableWrapper {
    margin-top: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #fff;
    border: 1px solid #eee;
}

.riwayatAdmin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.riwayatAdmin-table th {
    background: #f8f9fc;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: #1a3365;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #eee;
}

.riwayatAdmin-table td {
    padding: 15px;
    border-top: 1px solid #f1f1f1;
    font-size: 13.5px;
    vertical-align: middle;
    color: #444;
    text-align: center;
}

.riwayatAdmin-table tbody tr:hover {
    background-color: #f8faff;
}

/* ===== STATUS BADGES (Sesuai Desain User) ===== */
.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-diperjalanan { background-color: #cfe2ff; color: #084298; }
.status-selesai { background-color: #d1e7dd; color: #0f5132; }
.status-lain { background-color: #f8d7da; color: #842029; }

/* ===== STATUS BADGES (Sesuai Desain User) ===== */

.riwayat-box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.riwayat-header {
    background: linear-gradient(135deg, #1a3365 0%, #2a5298 100%);
    padding: 20px 25px;
    color: #fff;
}

.riwayat-section {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-weight: 700;
    color: #1a3365;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-left: 5px solid #1a3365;
    padding-left: 15px;
}

/* ===== TIMELINE (Sesuai Desain User) ===== */
.status-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    margin-top: 10px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.33%;
    text-align: center;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #adb5bd;
    margin-bottom: 10px;
}

.timeline-item.completed .timeline-icon {
    background: #1a3365;
    border-color: #1a3365;
    color: #fff;
}

.timeline-item.completed.status-ditolak-timeline .timeline-icon {
    background: #f8d7da;
    border-color: #f8d7da;
    color: #842029;
}

.timeline-item.completed.status-ditolak-timeline .timeline-content strong {
    color: #842029;
}

/* ===== TABLE DALAM DETAIL ===== */
.table-peminjaman {
    width: 100%;
    border-collapse: collapse;
}

.table-peminjaman th {
    background: #f8f9fc;
    color: #1a3365;
    font-size: 11px;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #eee;
}

.table-peminjaman td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .riwayatAdmin-container { margin: 20px auto; padding: 0 15px; }
    .status-timeline { flex-direction: column; align-items: flex-start; padding-left: 20px; }
    .status-timeline::before { left: 35px; top: 0; bottom: 0; width: 3px; height: auto; }
    .timeline-item { width: 100%; flex-direction: row; gap: 20px; text-align: left; margin-bottom: 20px; }
    .timeline-icon { margin-bottom: 0; }
}
