body {background-color:var(--ColB3);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#333333;font-size:16px;margin:0;padding:0;
  touch-action:none;}
a {text-decoration:none;}
#main {width:100%;float:left;min-height:450px;display:inline-block;padding-top:50px;text-align:center;
  -webkit-tap-highlight-color: transparent;position:fixed;top:0;left:0;bottom:0;right:0;}
#preisi {width:100%;display:inline-block;overflow:hidden;}
#isihal {width:100%;display:inline-block;height:calc(100vh - 80px);overflow-y:auto;scrollbar-width: thin;scrollbar-color: var(--warna-topmenu) var(--Col1t);}
    @media (min-width:1024px) {
        #preisi {width:980px;} 
        #isihal {width:980px;}
    }
    @media (min-width:1200px) {
        #preisi {width:1024px;}
        #isihal {width:1024px;}
    }

/* uiTOPMENU */
#TPMN-topmenu {position:fixed;display:block;top:0;left:0;right:0;height:50px;overflow:hidden;
    background-color:var(--warna-topmenu);touch-action:none;
    transform: translate3d(0px, 0px, 0px);z-index:855002;box-shadow:0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    font-size:40px;text-align:center;}
#TPMN-topmenu-inner {width:100%;display:inline-block;position:relative;}
@media (min-width:1024px) {
    #TPMN-topmenu-inner {width:980px;}
    #TPMN-popcari-inner {width:980px;}
}
@media (min-width:1200px) {
    #TPMN-topmenu-inner {width:1024px;}
    #TPMN-popcari-inner {width:1024px;}
}

#TPMN-topmenu a{text-decoration:none;width:50px;font-weight:bold;color:white;float:left;display:inline-block;
    background: none;border:none;cursor:pointer;padding-top:2px;}
#TPMN-topmenu a:hover {background-color:var(--warna-btnhigh);}
#TPMN-topmenu a:visited {background-color:rgba(100, 200, 100, 0.6);}
#TPMN-topmenu-center {display:inline-block;position:absolute;width:55px;left:0;right:0;top:0;margin:auto;}
#TPMN-topmenu-center a {width:55px;font-style:italic;}
.topmenu-logo {width:50px;}
#TPMNfrLogoBtn {font-size:20px;color:white;padding-top:12px !important;display:block;
    width:36px;height:30px; text-transform: none;}
#btnPrintBook {visibility:hidden;}    
#btnExportHtml {padding-top:5px !important;visibility:hidden;}
#TPMN-topmenu-right {float:right;}

@media (max-width:320px) {
    #TPMN-topmenu-inner {width:100%;}
    #TPMN-topmenu a{padding-left:3px;padding-right:3px;}
}

#TPMN-menuside {position:relative;z-index:855001;}
#TPMN-menuside-foot{position:absolute;bottom:10px;right:0;display:block;height:30px;color:white;
    text-align:center;width:100%;}
#TPMN-menuside-black {position:fixed;top:0;left:0;display:none;width:100%;min-height:100%; background-color:rgba(0, 0, 0, 0.5);z-index:80000;}
#TPMN-menuside {position:fixed;display:none;top:50px;left:0;width:90%;max-width: 320px;min-height:95%;border-bottom-right-radius: 8px;
    background-color:var(--warna-sidemenu); box-shadow:0px 0px 10px 0px rgba(0, 0, 0, 0.3);overflow:hidden;}
#TPMN-menuside-inner {position:absolute;left:0;top:24px;right:0;bottom:40px;
    overflow-y:scroll;margin-right:-20px;}
#TPMNfrMenuSide {display:inline-block;width:99%;}

#TPMN-menuside .MenuSideBack {text-align:right;padding-right:10px;margin-bottom:-4px;cursor:pointer;}
#TPMN-menuside .MenuSideBack a {color:white;font-weight:bold;font-size:30px;}
#TPMN-menuside .MenuSideSection {color:white;width:80%;text-align: right;padding:8px 20px 4px 4px;border-bottom:1px solid #C7FF6C;
    overflow:hidden;}
#TPMN-menuside .MenuSideItem {width:80%;text-align:right;padding:6px 20px 6px 4px;overflow:hidden;border-radius:6px;cursor:pointer;}
#TPMN-menuside .MenuSideItem:hover {text-shadow: 1px 1px 1px black;background-color:var(--Col3);}
#TPMN-menuside .MenuSideItem a {width:100%;display:block;color:#F1FFB5;text-shadow: 2px 1px 2px black;}
#TPMN-menuside .MenuSideInfo {color:#608E6B;width:80%;text-align:right;padding:6px 20px 3px 4px;overflow:hidden;border-radius:6px;}

/* PopupBox */
.mrblack {position:fixed;top:-50px;left:0;right:0;bottom:0;margin:auto; background-color:rgba(0, 0, 0, 0.5);z-index:60000;touch-action:none;}
.PopupBox-wrap {position:fixed;width:320px;height:280px;top:calc(50% - 140px);left:calc(50% - 160px);user-select:none;
    display:block;z-index:60001;touch-action:none;-webkit-tap-highlight-color: transparent;overflow:hidden;}
.PopupBox-isi {padding:8px;}

/* Loading Box */
.globalpreload {color:white;text-align:center;padding-top:200px;font-size:2em;}
.globalpreload div {position:fixed;width:300px;height:300px;top:0;left:0;right:0;bottom:0;margin:auto;user-select:none;
    display:block;touch-action:none;-webkit-tap-highlight-color: transparent;}
.localpreload {position:relative;padding-top:10px;width:100%;height:200px;font-size:1.4em;padding-top:0px;overflow:hidden;}
.localpreload div {position:absolute;width:30px;height:28px;left:0;right:0;top:0;bottom:0;margin:auto;}

/* Mobile Share */
.moshare {padding:10px 0px 0px 10px;width:90%;display:block;font-size:12px;}
.imo-WA {background-image:url("../img/moWA.png");color:transparent;font-size:1px;
    display:inline-block;width:40px;height:40px;margin-right:5px;}
.imo-Line {background-image:url("../img/moLine.png");color:transparent;font-size:1px;
    display:inline-block;width:40px;height:40px;margin-right:5px;}
    
/* Tampilan List of Books */
:root {
    --primary-color: #1d62d0;
    --primary-light: #4a85da;
    --primary-dark: #1549a3;
    --text-color: #333;
    --bg-color: rgba(255,255,255,.3);
    --card-bg: #ffffff;
    --border-color: #e1e5eb;
}
#listbooks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;		
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;			
}
#listbooks .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#listbooks .tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    position: relative;
    transition: all 0.3s;
}

#listbooks .tab-button.active {
    color: var(--primary-color);
}

#listbooks .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

#listbooks .tab-button:hover {
    color: var(--primary-color);
}

#listbooks .tab-content {
    display: none;
}

#listbooks .tab-content.active {
    display: block;
}

#listbooks .books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

#listbooks .book-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor:pointer;
}

#listbooks .book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#listbooks .book-cover {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid var(--border-color);
}

#listbooks .book-info {
    padding: 15px;
    background-color: var(--Col1t);
}

#listbooks .book-group {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

#listbooks .book-title {
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2em;
    font-size: 0.9em;    
    color:var(--ColB9);
}

#listbooks .book-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#listbooks .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

#listbooks .btn-open {
    background-color: var(--primary-color);
    color: white;
}

#listbooks .btn-open:hover {
    background-color: var(--primary-dark);
}

#listbooks .btn-delete {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
}

#listbooks .btn-delete:hover {
    background-color: #dc3545;
    color: white;
}

#listbooks .group-container {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

#listbooks .group-header {
    background-color: var(--Col3);
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

#listbooks .group-header:hover {
    background-color: var(--Col4);
}

#listbooks .group-title {
    font-size: 18px;
    font-weight: 600;
}

#listbooks .group-toggle {
    font-size: 20px;
}

#listbooks .group-content {
    padding: 15px;
    background-color: var(--ColB5);;
    display: none;
}

#listbooks .group-content.expanded {
    display: block;
}
        

#listbooks .recent-container {
    display: block;
    padding: 10px 0;
}

#listbooks .recent-book {
    display: inline-block;
    margin: 4px;
    width: 150px;
}

@media (max-width: 768px) {
    #listbooks .books-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    #listbooks .book-cover {
        height: 150px;
    }
    
    #listbooks .book-title {
        font-size: 14px;
        height: 36px;
    }
    
    #listbooks .btn {
        padding: 6px 10px;
        font-size: 14px;
    }
}    

@media print { 
    body { visibility:hidden; margin:0;background-color:white;height:100%; padding:0;} 
    html {background-color:white;padding:0;} 
    .Book-Header, .noprint {display:none;}
    .Book-Pages { visibility: visible; position:relative;overflow:hidden;margin:0; }
    .newpage {page-break-before:always;break-before: page;margin-top:10px;}
}