/* --- Typography & Header --- */
h1 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

blockquote {
    font-size: clamp(0.5rem, 2vw, 1rem);
    color: #10375C;
}

.welcomeStatement {
    text-align: center;
}

.text-secondary {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    letter-spacing: 0.5px;
}

/* --- Tombol Ajukan --- */
.btn-ajukan {
    background-color: #1c3f77 !important;
    color: #fff !important;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin-bottom: 15px;
    transition: 0.25s ease;
    font-weight: bolder !important;
}

.btn-ajukan:hover {
    background-color: #15325d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(28, 63, 119, 0.25);
}

/* --- Tombol Konfirmasi Peminjaman --- */
.btn-konfPeminjaman {
    background-color: #0d8107 !important;
    color: #fff !important;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin-bottom: 15px;
    transition: 0.25s ease;
    font-weight: bolder !important;
}

.btn-konfPengembalian {
    background-color: #02136a !important;
    color: #fff !important;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin-bottom: 15px;
    transition: 0.25s ease;
    font-weight: bolder !important;
}

.btn-konfPeminjaman:hover {
    background-color: #155d26;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(28, 119, 58, 0.25);
}

/* --- Summary Cards --- */
.summary-card {
    background-color: #f5f7fa;
    border-radius: 16px;
    min-height: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px 20px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.summary-title {
    font-size: 20px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    color: #007bff;
    margin: 0;
    line-height: 1;
}

/* --- Tabel (Custom Table / Table Peminjaman) --- */
.custom-table,
.table-peminjaman {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table thead,
.table-peminjaman thead {
    background-color: #f6f8fb;
    font-weight: 600;
    color: #000;
}

.custom-table th,
.custom-table td,
.table-peminjaman th,
.table-peminjaman td {
    padding: 12px 14px;
    font-size: 14px;
}

.custom-table tbody tr,
.table-peminjaman tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-peminjaman tbody tr:hover {
    background-color: #f2f6fc;
    transition: background-color 0.2s ease;
}

/* --- Badge (Status) --- */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
}

/* Warna badge khusus status */
.badge.bg-warning {
    background-color: #FFD966 !important;
    color: #5c4a00;
}

.badge.bg-success {
    background-color: #A9DFBF !important;
    color: #1e5631;
}

.badge.bg-info {
    background-color: #AED6F1 !important;
    color: #0d3b66;
}

/* --- STATUS TAMBAHAN UNTUK PEMINJAMAN --- */
.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    font-size: 13px;
    white-space: nowrap;
}

.status-dipinjam {
    background-color: #0D6EFD;
}

.status-diproses {
    background-color: #FFD966;
    color: #5C4A00;
}

.status-selesai {
    background-color: #A9DFBF;
    color: #1E5631;
}

.status-lain{
    background-color: #DC3545;
    color: #ffffff;
}

/* --- Table Container --- */
.table-container {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Link Action --- */
.table-peminjaman a {
    color: #1D416D;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.table-peminjaman a:hover {
    color: #2b5c99;
    text-decoration: underline;
}

/* --- Aksi Dinamis Berdasarkan Status --- */
.action-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.action-btn.detail {
    background-color: #FFD966;
    color: #5C4A00;
}

.action-btn.detail:hover {
    background-color: #e6c14b;
    transform: translateY(-1px);
}

.action-btn.kembalikan {
   background-color: #0D6EFD;
   color: #ffff;
}

.action-btn.kembalikan:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

.action-btn.selesai {
    background-color: #bdc3c7;
    color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsif */
@media (max-width: 992px) {
    .summary-card {
        min-height: 90px;
        padding: 12px 15px;
    }
    
    .summary-title {
        font-size: 18px;
    }
    
    .summary-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .welcomeStatement h1 {
        font-size: 1.5rem;
    }

    .tombolPengajuan .d-flex {
        flex-direction: column !important;
        gap: 10px;
        align-items: stretch !important;
    }

    .tombolPengajuan .d-flex .d-flex {
        flex-direction: column !important;
        width: 100%;
    }

    .btn-ajukan, .btn-konfPeminjaman, .btn-konfPengembalian {
        width: 100%;
        float: none;
        margin-bottom: 5px;
        text-align: center;
        padding: 12px !important;
    }

    .summary-card {
        margin-bottom: 10px;
    }

    .table-container {
        border-radius: 8px;
    }

    .custom-table th,
    .custom-table td,
    .table-peminjaman th,
    .table-peminjaman td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .table-container::-webkit-scrollbar {
        height: 6px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background-color: #c5c9d3;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .table-peminjaman {
        min-width: 600px;
    }
    
    .summary-title {
        font-size: 16px;
    }
    
    .summary-value {
        font-size: 24px;
    }
}

/* ===== MODAL PENGEMBALIAN ===== */
.modal-kembali {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.modal-kembali-header {
    background-color: #0a3d62; /* Biru gelap elegan */
    color: white;
    padding: 16px 20px;
    border-bottom: none;
}

.modal-kembali-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-kembali-body {
    padding: 20px 25px;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .modal-kembali-body {
        padding: 15px 20px;
    }
    
    .modal-kembali-body .row > div {
        width: 100%;
        margin-bottom: 15px;
    }
}

.modal-kembali-body .form-label {
    font-weight: 600;
    color: #183153;
}

.modal-kembali-body .text-value {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2d2d2d;
}

.form-input,
.form-select,
.form-control {
    border-radius: 8px !important;
    border: 1px solid #d0d5dd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    padding: 10px 12px;
}

.modal-kembali-body textarea {
    resize: none;
}

.modal-kembali-footer {
    padding: 15px 25px;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tombol */
.btn-batal {
    background-color: #6c757d;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-batal:hover {
    background-color: #5a6268;
}

.btn-konfirmasi {
    background-color: #0a3d62;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-konfirmasi:hover {
    background-color: #062c48;
}
