.library-tab-wrapper{
    display:flex;
    justify-content:center;
}

.library-tabs{

    background:#f8f9fa;

    padding:10px;

    border-radius:60px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    gap:12px;

}

.library-tabs .nav-link{

    border:none;

    border-radius:50px;

    padding:14px 28px;

    font-weight:600;

    color:#555;

    transition:.3s;

}

.library-tabs .nav-link i{

    font-size:18px;

}

.library-tabs .nav-link:hover{

    background:#eef6ff;

    color:#0d6efd;

}

.library-tabs .nav-link.active{

    background:#0d6efd;

    color:#fff;

    box-shadow:0 8px 20px rgba(13,110,253,.25);

}

@media(max-width:768px){

.library-tabs{

    width:100%;

    border-radius:20px;

    padding:8px;

}

.library-tabs .nav-item{

    flex:1;

}

.library-tabs .nav-link{

    width:100%;

    font-size:14px;

    padding:12px;

}

}


.library-summary-card{

    background:#fff;

    border-radius:20px;

    padding:35px;

    text-align:center;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    border-top:5px solid transparent;

    height:100%;

}

.library-summary-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 40px rgba(0,0,0,.12);

}

.library-icon{

    width:80px;

    height:80px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:auto;

    margin-bottom:20px;

    font-size:32px;

    color:#fff;

}

.library-summary-card h2{

    font-size:40px;

    font-weight:700;

    margin-bottom:10px;

}

.library-summary-card p{

    font-size:18px;

    margin-bottom:0;

    color:#666;

}

/* Ebook */

.ebook-card{

    border-color:#0d6efd;

}

.ebook-card .library-icon{

    background:#0d6efd;

}

/* Leaflet */

.leaflet-card{

    border-color:#20c997;

}

.leaflet-card .library-icon{

    background:#20c997;

}

/* Poster */

.poster-card{

    border-color:#ffc107;

}

.poster-card .library-icon{

    background:#ffc107;

    color:#fff;

}


/* DataTables */

.dataTables_wrapper .dataTables_filter input{
    border-radius:25px !important;
    border:1px solid #dee2e6 !important;
    padding:8px 15px !important;
    margin-left:10px;
}

.dataTables_wrapper .dataTables_length select{
    border-radius:10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current{
    background:#0d6efd !important;
    color:#fff !important;
    border:none !important;
    border-radius:8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background:#0b5ed7 !important;
    color:#fff !important;
}

.dataTables_info{
    color:#6c757d;
}

.document-icon{
    width:48px;
    height:48px;
    border-radius:12px;
    background:#fff4f4;
    color:#dc3545;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    flex-shrink:0;
}

.document-title{
    font-size:15px;
    font-weight:700;
    color:#2c3e50;
}

.document-author{
    margin-top:4px;
    color:#6c757d;
    font-size:13px;
}

.library-table,
.dataTable {
    width: 100% !important;
}

.dataTables_wrapper {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

/* ===================================
   Library Tabs
=================================== */

.library-tabs{

    display:flex;
    gap:20px;
    margin-bottom:40px;
    flex-wrap:wrap;

}

.library-tab{

    flex:1;

    display:flex;

    align-items:center;

    gap:18px;

    padding:20px;

    border:none;

    background:#ffffff;

    border-radius:18px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    transition:.3s;

    cursor:pointer;

}

.library-tab:hover{

    transform:translateY(-4px);

}

.library-tab.active{

    background:var(--primary);

    color:#fff;

}

.library-tab.active h6,
.library-tab.active small,
.library-tab.active i{

    color:#fff;

}

.tab-icon{

    width:60px;

    height:60px;

    border-radius:15px;

    background:#eef5ff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:26px;

    color:var(--primary);

}

.library-tab.active .tab-icon{

    background:rgba(255,255,255,.2);

}

.tab-content h6{

    margin:0;

    font-weight:700;

}

.tab-content small{

    color:#777;

}

/* ==========================================================
   DIGITAL LIBRARY TAB
========================================================== */

.library-nav{

    gap:20px;

}

.library-nav .nav-link{

    border:none;

    background:#fff;

    border-radius:18px;

    padding:18px 28px;

    min-width:220px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    color:#444;

    transition:.3s;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:16px;

    font-weight:600;

}

.library-nav .nav-link i{

    font-size:22px;

}

.library-nav .nav-link:hover{

    transform:translateY(-4px);

}

.library-nav .nav-link.active{

    background:var(--primary);

    color:#fff;

}

.library-nav .nav-link .badge{

    background:#eef2ff;

    color:var(--primary);

    font-size:13px;

}

.library-nav .nav-link.active .badge{

    background:#fff;

    color:var(--primary);

}

/* ==========================================
   DataTables Pagination
========================================== */

.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
}

.dataTables_wrapper .paginate_button {
    border: none !important;
    background: transparent !important;
    border-radius: 10px !important;
    margin: 0 3px;
    transition: all .25s ease;
}

.dataTables_wrapper .paginate_button:hover {
    background: #e9f3ff !important;
    color: var(--primary) !important;
    border: none !important;
}

.dataTables_wrapper .paginate_button.current {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
    border: none !important;
}

.dataTables_wrapper .paginate_button.current:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.dataTables_wrapper .paginate_button.disabled {
    opacity: .5;
    cursor: not-allowed !important;
}

/* ===========================================================
   DIGITAL LIBRARY TABLE
=========================================================== */

.library-table-card{
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.library-table{
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* =======================
   TABLE HEADER
======================= */

.library-table thead{
    background: linear-gradient(135deg,#0d6efd,#3d8bfd);
}

.library-table thead th{
    color: #fef3f3;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    border: none;
    padding: 16px 18px;
    vertical-align: middle;
}

/* =======================
   TABLE BODY
======================= */

.library-table tbody td{
    padding: 16px 18px;
    vertical-align: middle;
    color: #495057;
    font-size: 14px;
    border-bottom: 1px solid #eef2f7;
    transition: all .25s ease;
}

/* Hover */

.library-table tbody tr{
    transition: all .25s ease;
}

.library-table tbody tr:hover{
    background: rgba(13,110,253,.05);
}

/* =======================
   DOKUMEN
======================= */

.library-table tbody td:first-child strong{
    display: block;
    color: #212529;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* =======================
   KATEGORI
======================= */

.library-table tbody td:nth-child(2){
    color: #0d6efd;
    font-weight: 500;
}

/* =======================
   PENERBIT
======================= */

.library-table tbody td:nth-child(3){
    color: #495057;
}

/* =======================
   TAHUN
======================= */

.library-table tbody td:nth-child(4){
    text-align: center;
    font-weight: 600;
    color: #343a40;
}

/* =======================
   AKSI
======================= */

.library-table tbody td:last-child{
    text-align: center;
}

/* =======================
   EMPTY STATE
======================= */

.library-table tbody td[colspan]{
    padding: 60px 20px;
    color: #6c757d;
    font-size: 15px;
    text-align: center;
}

.library-table tbody td[colspan] i{
    display: block;
    font-size: 42px;
    color: #d0d7de;
    margin-bottom: 15px;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px){

    .library-table thead th{
        padding: 12px;
        font-size: 13px;
    }

    .library-table tbody td{
        padding: 12px;
        font-size: 13px;
    }

}