*,
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #E8F0F9;
    color: #333;
}

.wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: aqua;
}

.navbarLeft {
    width: 15%;
    height: 100vh;
    background-color: #ffffff;
    color: #000000;
    /* position: fixed; */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: all 0.3s;
}

/* .navbarLeft:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    width: 16%;
} */

.navbarLeft img {
    width: 60%;
    height: auto;
    margin-bottom: 20px;
}

.navbarLeft div {
    background-color: #ffffff;
}

nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

nav div {
    padding-left: 30px;
    display: flex;
}

nav .icon {
    width: 18%;
    height: auto;
    margin-right: 15px;
}


nav a {
    text-decoration: none;
    color: #000000;
    font-size: .8em;
    font-weight: 600;
    background-color: #ffffff;
    height: 50%;
    width: 70%;
    transition: font-weight 0.3s;
}

nav a:hover {
    font-weight: bold;
}

.nav-item {
    transition: margin-left 0.3s, font-weight 0.3s;
}

.nav-item:hover {
    /* background-color: #e0e0e0;
    border-left: 4px solid #007BFF; */
    margin-left: 5px;
    font-weight: 700;
}

.nav-item.active {
    margin-left: 5px;
}

.nav-item.active a {
    font-weight: 700;
}

.navbarUp {
    background-color: #1C89C1;
    width: 100%;
    height: 13vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    /* box-shadow: rgba(0,0,0,0.08) 0 1px 2px; */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

}


.navbarUp div {
    display: flex;
    align-items: center;
}

/* search container (first child) — white rounded box */
.navbarUp > div:first-child {
    background-color: #ffffff;
    border-radius: 8px;
    /* padding: 2px 25px; */
    gap: 0;
    overflow: hidden;
    /* display: flex;
    align-items: center; */
}

/* profile container (right) keep transparent background so it sits on blue bar */
.navbarUp > div:last-child {
    background-color: transparent;
    gap: 10px;
}

.navbarUp span {
    background: transparent;
    font-weight: 600;
    color: #ffffff;
}

.navbarUp input[type="text"] {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 30vw;
    background: transparent;
}

.navbarUp button {
    border: none;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
}


.navbarUp button img {
    width: 95%;
    height: auto;
    background: transparent;
}

.navbarUp img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contRight {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.pilihan {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

label {
    position: absolute;
    left: -9999px;
}


select {
    padding: 8px 45px;
    border: 1px solid #d3dce6;
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
    color: #697a8d;
}

.section {
    margin-left: 20px;
    gap: 35px;
    display: flex;
    flex-direction: column;
}


.h1-cat {
    margin-right: auto;
}

.wrapper-sc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    padding: 0 20px;
    background-color: #ffffff;
    width: 95%;
    height: 28vh;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
   
    /* overflow: hidden; */
}

.wrapper-sc div {
    background: transparent;
    /* background-color: #007BFF; */
    width: 15vh;
    transition: margin-bottom 0.3s;
}

.wrapper-sc div:hover {
    cursor: pointer;
    margin-bottom: 10px;
}

.section.my-lib .wrapper-sc div{
    width: 15vw;
    height: auto;
    flex-wrap: wrap;
}

.book-img {
    width: auto;
    height: 18vh;
    object-fit: cover;
    border-radius: 12px;
}

.book-title {
    font-size: .8em;
    font-weight: 500;
    margin: 10px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    
}

.section.my-lib .wrapper-sc div .book-img {
    height: 35%;
}

.book-author {
    font-size: .8em;
    font-weight: 400;
    color: #555;
    background: transparent;
}

/* Custom styling untuk myLibrary.html — wrapper-sc lebih panjang */
.section.my-lib .wrapper-sc {
    width: 95%;
    height: 70vh;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 10px;
    /* overflow-y: auto; */
}

.main-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
}

.main-content h2 {
    font-size: 2em;
    font-weight: 700;   
}

.fav-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.fav-title img {
    width: 40px;
    height: auto;
}
