body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #63AFBD;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.bg-base-body {
    background: #63AFBD;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-navbar {
    width: 100%;
    height: 86px;
    background-color: #63AFBD;
    position: fixed;
    z-index: 100;
}

.navbar {
    width: 100%;
    height: 71px;
    background-color: #FFF;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 85px;
    box-sizing: border-box;
    gap: 15px;
    position: fixed;
    z-index: 100;
}

/* Apply styles to the select element */
select.corner-lib {
    border: none; /* Removes the border */
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    color: #63AFBD;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    cursor: pointer; /* Change cursor to pointer */
    margin-left: 35px;
}

/* Add a custom dropdown arrow */
select.corner-lib::after {
    content: '\25BC'; /* Unicode character for down arrow */
    position: absolute;
    right: 10px;
    pointer-events: none; /* Allows clicking through the arrow */
}

/* Optional: style the container to position the custom arrow */
.select-container {
    position: relative;
    display: inline-block;
}

/* Remove outline on focus */
select.corner-lib:focus {
    outline: none;
}

.corner {
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #63AFBD;
    min-width: 0px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    margin: 90px 0px 0px 0px;
    border-radius: 5px;
}

.dropdown-content a {
    color: #3EB9F7;
    padding: 0px 15px;
    text-decoration: none;
    display: block;
    height: 25px;
}

.dropdown-content a:hover {
    background-color: yellow;
    border-radius: 10px;
}

.show {
    display: block;
}

/* SEARCH */
.search-bar {
    display: flex;
    align-items: center;
    width: 860px;
    height: 43px;
    background: #E4E4E4;
    border: 0px solid #0D344B;
    border-radius: 30px;
    overflow: hidden;
    margin-right: 30px;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    background: #E4E4E4;
    margin-left: 83%;
}

.submit-src{
    border: none;
    background: #E4E4E4;
    cursor: pointer;
}

.search-bar input {
    height: 100%;
    border: none;
    padding: 0 20px;
    border-radius: 30px 0 0 30px;
    background: #E4E4E4;
    outline: none;
    font-family: Montserrat;
    font-size: 20px;
    color: #63AFBD; /* Text color */
}

.search-bar input::placeholder {
    color: #63AFBD; /* Placeholder color */
}

.form-search{
    display: grid;
    grid-template-columns: 5fr 1fr;
    grid-gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* NAVIGATOR */
.navigator {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navigator a {
    text-decoration: none;
}

.navigator p {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
}

.home {
    color: #63AFBD;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.login {
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    width: 65px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #FFFEFE;
    background: #63AFBD;
    /* margin-right: 53px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    line-height: normal;
}

.login a p {
    margin: 0;
    padding: 0;
}

.absen-btn{
    color: #fff;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    width: 65px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #FFFEFE;
    background: #63AFBD;
    display: flex;
    align-items: center;
    justify-content: center;
}

.absen-btn-disable{
    color: #fff;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    width: 65px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #FFFEFE;
    background: #63AFBD;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.btn-box{
    display: flex;
    gap: 10px;
}

/* CONTENT */
.content {
    background-image: url('../img/catalog/bg-catalog.png');
    width: 1360px;
    height: 1155px;
    margin-top: 80px;
    grid-template-columns: 0.5fr 3fr;
    display: grid;
}

.sidebar {
    width: 115px;
    height: 385px;
    flex-shrink: 0;
    border-radius: 50px;
    border: 1px solid #63AFBD;
    margin-left: 60px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
}

.sidebar a img {
    height: 100%;
    /* Adjust based on the actual icon size */
    object-fit: cover;
}

.perpustext {
    color: #63AFBD;
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 15px;
}

.ebooktext {
    color: #63AFBD;
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 15px;
}

.umkmtext {
    color: #63AFBD;
    text-align: center;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 0;
}

.front-sidebar {
    z-index: 1;
}

.box-bg {
    width: 211px;
    height: 120px;
    position: absolute;
    border-radius: 20px;
    background: #FFF;
    z-index: 0;
    margin-bottom: 235px;
    margin-left: 70px;
}

/* CATALOG */
.catalog {
    flex: 1;
    background-color: #63AFBD;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    max-height: 160vh;
    overflow-y: auto;
    margin-top: 15px;
    margin-right: 15px;
    padding: 20px;
    z-index: 1;
}

.title-catalog {
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 25px;
    margin-top: 15px;
}

.frame-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.frame-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.frame-card a {
    text-decoration: none;
    color: inherit;
}

.img-p {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.name-book {
    font-size: 22px;
    margin-top: 10px;
    font-weight: bold;
}

.name-author {
    font-size: 14px;
    margin-top: 5px;
}

.status {
    font-size: 12px;
    margin-top: 5px;
    color: #888888;
}

.notfound img {
    max-width: 350px;
    display: block;
    margin: 40px 0px 0px 350px;
}

/* FOOTER */
.footer {
    height: 278px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    background-color: #63AFBD;
}

.linked {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; /* Adjust gap between columns as needed */
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px; 
    margin-top: 35px;
    color: #FFF;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.linked a, .linked p {
    margin: 5px 0;
}

.linked a {
    color: #FFF;
    text-decoration: none; /* Remove underline */
}

.linked a:hover {
    color: #FFF; /* Ensure hover color stays white */
    text-decoration: underline; /* Optional: underline on hover */
}

.callfot img {
    width: 30px; /* Adjust icon size as needed */
}

.copyright {
    text-align: center;
    color: #FFF;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 30px;
}

.copy {
    margin: 0;
}

/* POP UP PINJAM */
.popup-form {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 340px;
    border-radius: 20px;
    background: #1C7EA5;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.success-popup-form{
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 300px;
    border-radius: 20px;
    background: #1C7EA5;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.popup-form h2{
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.success-popup-form h2{
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.popup-form p {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin: -15px 0px 30px 0px;
}

.success-popup-form .center-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-image-container img {
    max-width: 100%;
    max-height: 100%;
}

.popup-form input select[type="text"], .popup-form input[type="date"]{
    width: calc(100% - 0px);
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
}

.popup-form .close-btn {
    position: absolute;
    right: 15px;
    top: 0px;
    cursor: pointer;
    font-size: 50px;
    color: #fff;
}

.popup-form .submit-btn {
    position: absolute;
    background-color: #7CFF00;
    color: white;
    padding: 0px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
    height: 40px;
    margin: 180px 0px 0px 230px;
    display: block;
    font-size: 20px;
}

.success-popup-form .ok-btn {
    position: absolute;
    background-color: #7CFF00;
    color: white;
    padding: 0px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
    height: 40px;
    margin: 30px 0px 0px 275px;
    display: block;
    font-size: 20px;
}

/*  */
form {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Membagi form menjadi 2 kolom dengan lebar yang sama */
    grid-gap: 10px; /* Jarak antara grid items */
    width: 100%;
    max-width: 600px; /* Atur lebar maksimum form sesuai kebutuhan */
    margin: 0 auto; /* Pusatkan form secara horizontal */
}

form label {
    color: #fff;
    margin-bottom: 8px;
}

.input_absen{
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    height: 45px;
}

.labelborrow{
    margin-top: 10px;
    color: #fff;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
/*  */

.rentbutton{
    text-decoration: none;
    background-color: transparent;
    color: #fff; 
    width: 177px;
    height: 35px;
    border-radius: 10px;
    border-color: #fff;
    background-color: #17a2b8;
    display: flex; /* Use flexbox */
    align-items: center; /* Center items vertically */
    justify-content: center;
    margin-top: 2px;
    cursor: pointer;
}

.rentbutton:hover {
    text-decoration: none; /* Menghilangkan garis bawah pada teks saat dihover */
    background-color: #127a8e; /* Ubah warna latar belakang saat dihover */
    border-color: #127a8e; /* Ubah warna border saat dihover */
}

.rentbutton:hover span {
    text-decoration: none; /* Menghilangkan garis bawah pada teks saat dihover */
}

/* RESPONSIVE */
@media (max-width: 1024px), (max-width: 840px), (max-width: 768px) {
    .content {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 0;
        display: flex;
        flex-direction: column; /* Stack elements vertically */
    }

    .search-icon {
        margin-left: -95px;
    }

    .sidebar {
        margin-left: 47px;
        position: unset;
        left: 0;
        top: 0;
        width: 100px;
        height: 300px;
        z-index: 1;
        margin-left: 15px;
    }

    .sidebar a img {
        width: 65%;
    }

    .catalog {
        margin: -320px 30px 0px 160px;
        order: 2; /* Catalog appears below the sidebar */
    }

    .box-bg {
        width: 211px;
        height: 85px;
        margin-bottom: 185px;
        margin-left: 73px;
    }

    .search-bar input {
        font-size: 12px;
    }

    .submit-src {
        margin-left: -100px;
    }

    .submit-src img {
        width: 25px;
    }

    .frame-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .frame-card {
        padding: 5px;
    }

    .img-p {
        max-width: 100%;
        height: auto;
    }

    .name-book {
        font-size: 14px;
    }

    .name-author {
        font-size: 12px;
    }

    .status {
        font-size: 10px;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        padding: 0 20px;
    }

    select.corner-lib {
        margin-left: -17px;
        font-size: 12px;
    }

    .navbar.responsive .navbar a {
        display: block;
        text-align: left;
        padding: 10px;
        width: 100%;
    }

    .title-catalog {
        font-size: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .recomend h1 {
        font-size: 15px;
    }

    .notfound img {
        max-width: 350px;
        display: block;
        margin: 40px 0px 0px 100px;
    }

    @media (max-width: 768px) {
        .search-icon {
            margin-left: -75px;
        }

        .notfound img {
            margin: 10px 0px 0px 118px;
        }
    }
}

@media (max-width: 576px) {
    .navbar{
        height: 80px;
    }
    select.corner-lib {
        font-size: 16px;
        margin: 12px 0px 0px 40px;
        position: absolute;
        background: transparent;
    }
    .search-bar{
        margin: -30px 1px 0px 3px;
    }
    .search-icon {
        margin-left: -80px;
        width: 30px;
    }
    .search-bar input{
        font-size: 18px;
    }
    .submit-src{
        margin-left: -100px;
    }
    .btn-box{
        display: block;
    }
    .frame-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 5px;
    }
    .sidebar {
        width: 70%;
        margin: 10px auto;
        gap: 3px;
        height: 215%;
    }
    .perpus{
        margin: 0px 0px 0px -35px;
        width: 100px;
    }
    .ebook{
        margin: -97px 0px 0px 55px;
        width: 100px;
    }
    .umkm{
        margin: -95px 0px 0px 150px;
        width: 100px;
    }
    .box-bg {
        width: 105px;
        height: 180px;
        margin-bottom: -100px;
        margin-left: -222px;
    }
    .catalog {
        margin: 5px 30px 0px 0px;
    }
    .frame-card {
        padding: 3px;
    }
    .img-p {
        max-width: 100%;
        height: auto;
    }
    .name-book {
        font-size: 12px;
    }
    .name-author {
        font-size: 10px;
    }
    .status {
        font-size: 8px;
    }
    .linked{
        font-size: 10px;
    }
    .copyright{
        font-size: 13px;
    }
    .logofot img {
        width: 85px;
        margin-left: 1em;
    }
    .recomend h1{
        font-size: 15px;
    }
    .notfound img {
        max-width: 350px;
        display: block;
        margin: 40px 0px 0px 50px;
    }
}

@media (max-width: 430px), (max-width: 400px), (max-width: 375px) {
    .navbar {
        height: 105px;
    }

    .search-bar input {
        font-size: 13px;
    }

    .search-bar {
        margin: -30px 1px 0px -32px;
    }

    .submit-src img {
        width: 20px;
    }

    .submit-src {
        margin-left: -30px;
    }

    .search-icon {
        margin-left: -40px;
    }

    .navigator p {
        font-size: 13px;
        margin-bottom: 5px;
        padding: 5px;
    }

    .navigator a {
        font-size: 14px;
    }

    .navigator {
        display: block;
    }

    .absen-btn-disable, .absen-btn {
        width: 65px;
        height: 30px;
    }

    .content {
        margin-top: 105px;
    }

    .frame-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 5px;
    }

    select.corner-lib {
        font-size: 13px;
        margin: 12px 0px 0px 0px;
    }

    .perpustext, .ebooktext, .umkmtext {
        font-size: 10px;
    }

    .frame-card {
        padding: 3px;
    }

    .title-catalog {
        margin: 10px auto;
        font-size: 15px;
    }

    .img-p {
        max-width: 100%;
        height: auto;
    }

    .name-book {
        font-size: 12px;
    }

    .name-author {
        font-size: 10px;
    }

    .status {
        font-size: 8px;
    }

    .recomend h1 {
        font-size: 15px;
    }

    .notfound img {
        max-width: 350px;
        display: block;
        margin: 40px 0px 0px 10px;
    }

    .logofot{
        display: none;
    }

    .linked{
        grid-template-columns: repeat(4, 1fr);
        margin-left: 10px;
    }
}

@media (max-width: 360px){
    select.corner-lib {
        font-size: 13px;
        margin: 12px 0px 0px -30px;
    }
    .submit-src img{
        margin-left: -120px;
    }
}

@media (max-width: 320px) {
    .logo-nav a img{
        width: 3em;
        margin-bottom: 25px;
    }
    .navbar {
        padding: 0 3px;
    }
    .navigator p {
        font-size: 10px;
        margin-bottom: 7px;
        padding: 3px;
    }
    .search-bar input {
        font-size: 8px;
    }
    .search-bar{
        height: 30px;
    }
    .submit-src img {
        width: 15px;
    }
    select.corner-lib {
        font-size: 10px;
        margin: 12px 0px 0px 0px;
    }
    .search-icon {
        margin-left: -35px;
    }
    .navigator{
        display: block;
    }
    .login{
        width: 50px;
        height: 25px;
    }
    .absen-btn-disable, .absen-btn {
        width: 50px;
        height: 25px;
    }
    .sidebar{
        border: none;
    }
    .frame-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 5px;
    }
    .frame-card {
        padding: 3px;
    }
    .img-p {
        max-width: 100%;
        height: auto;
    }
    .name-book {
        font-size: 12px;
    }
    .name-author {
        font-size: 10px;
    }
    .status {
        font-size: 8px;
    }
    .logofot img{
        display: none;
    }
    .copyright {
        font-size: 10px;
    }
    .recomend h1{
        font-size: 15px;
    }
    .notfound img {
        margin: 10px 0px 0px 10px;
        max-width: 200px;
    }
}