@import "./Root.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: var(--artxt-font);
}

.hide_navbar {
    position: fixed;
    left: 50px;
    bottom: 50px;
    background-color: #0077c7;
    padding: 20px;
    border-radius: 50%;
    color:white;
    cursor:pointer;
}

.navbar_container {
    background: var(--prim-color);
    width: 100%;
    z-index: 1000;
    margin-bottom: 20px;
    position:sticky;
    top:0;
}

    .navbar_container nav {
        display: flex;
        max-width: calc(100% - 200px);
        margin: 0 auto;
        height: 70px;
        align-items: center;
        justify-content: space-between;
    }

nav .content {
    display: flex;
    align-items: center;
}


    nav .items {
        display: flex;
        align-items: center;
    }

    nav .items .logout_btn {
        background-color: rgb(172, 61, 61);
        padding: 8px 15px;
        border-radius: 50%;
        margin-left: 10px;
    }

    nav .items a .back_btn {
        height: 70px;
        width: 60px;
        margin: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
#listitm{
    width:100px;
}

nav .items a .profile_btn {
    padding: 0 15px;
}

        nav .items a .profile_btn i {
            color: var(--wtxt-color);
        }

            nav .items a .profile_btn i:hover {
                color: var(--btn-prim-color);
            }

  

nav .content .links {
    display: flex;
    background-color: white !important;
    position: absolute;
    margin-right: -120px;
}
#linklist {

}

.content .logo a {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
}

.content .links li,
.items .links li {
    list-style: none;
    line-height: 70px;
    background-color: var(--prim-color);
}

    .content .links li a,
    .items .links li a,
    .content .links li label,
    .items .links li label {
        color:white;
        font-size: 18px;
        font-weight: 500;
        padding: 9px 17px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .content .links li label,
    .items .links li label {
        display: none;
    }

        .content .links li a:hover,
        .items .links li a:hover,
        .content .links li label:hover,
        .items .links li label:hover {
        /*    background-color: #323c4e;
            border-radius: 20px;*/
            padding: 10px; /* Adds space inside the border-radius */
            transition: background-color 0.3s ease; /* Smooth hover effect */
        }

.navbar_container .menu-icon {
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 70px;
    width: 70px;
    text-align: center;
}

.navbar_container .menu-icon {
    display: none;
}

.navbar_container input[type="checkbox"] {
    display: none;
}

/* Dropdown Menu code start */
.content .links ul,
.items .links ul {
    position: absolute;
    background: var(--prim-color);
    top: 80px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
}

.content .links li:hover > ul,
.items .links li:hover > ul {
    top: 70px;
    opacity: 1;
    width: 250px;
    visibility: visible;
    transition: all 0.3s ease;
   
}

.content .links ul li a,
.items .links ul li a {
    display: block;
    width: 100%;
    line-height: 30px;
    border-radius: 0px !important;
}

.content .links ul ul {
    position: absolute;
    top: 0;
    width: 250px;
    left: calc(-100% + -2px);
}

.content .links ul li,
.items .links ul li {
    position: relative;
}
    #shadt{
        color:white;
    }

    .content .links ul li:hover ul,
    .items .links ul li:hover ul {
        top: 5px;
    }

/* Apply styles to the li element with the navactive class */
.nav-item.navactive {
    background-color: #ededed;
    border-radius: 8px 8px 0 0; /* Background color for the li element */
}

/* Style for the a tag inside the li element with navactive class */
.nav-item.navactive a {
    color: black; /* Text color for the a tag */
    font-weight: bold; /* Optional: Makes the active link stand out more */
    text-decoration: none; /* Optional: Removes underline from the link */
}


/* Responsive code start */
@media screen and (max-width: 1250px) {
    .navbar_container nav {
        max-width: 100%;
        padding: 0 20px;
    }

    nav .content .links {
        margin-right: 0;
    }

    .content .links li a {
        padding: 8px 13px;
    }
}

@media screen and (max-width: 900px) {
    .navbar_container .menu-icon {
        display: block;
    }

    .navbar_container #show-menu:checked ~ .menu-icon i::before {
        content: "\f00d";
    }

    nav .content .links {
        display: block;
        position: fixed;
        background: var(--prim-color)!important;
        height: 100%;
        width: 100%;
        top: 70px;
        right: -100%;
        margin-left: 0;
        max-width: 350px;
        overflow-y: auto;
        padding-bottom: 100px;
        transition: all 0.3s ease;
        z-index: 100;
    }
    #BookArchiving{
        border:none !important;
    }
    #users{
        border-radius:8px !important;
    }
    #idex {
        border-radius: 8px !important;
    }
    #shadt {
        border-radius: 8px !important;
    }

    nav #show-menu:checked ~ .content .links {
        right: 0%;
    }

    .content .links li {
        margin: 15px 20px;
    }

        .content .links li a,
        .content .links li label {
            line-height: 40px;
            font-size: 20px;
            display: block;
            padding: 8px 18px;
            cursor: pointer;
        }

            .content .links li a.desktop-link {
                display: none;
            }

    /* dropdown responsive code start */
    .content .links ul,
    .content .links ul ul {
        position: static;
        width: 100% !important;
        opacity: 1;
        visibility: visible;
        background: none;
        max-height: 0px;
        overflow: hidden;
    }

    .content .links #show-features:checked ~ ul,
    .content .links #show-services:checked ~ ul,
    .content .links #show-conting:checked ~ ul,
    .content .links #show-daily:checked ~ ul,
    .content .links #show-lang:checked ~ ul,
    .content .links #show-items:checked ~ ul,
    .content .links #show-admin:checked ~ ul {
        max-height: 100vh;
    }

    .content .links ul li {
        margin: 7px 20px;
    }

        .content .links ul li a {
            font-size: 18px;
            line-height: 30px;
            border-radius: 5px !important;
        }

}

@media screen and (max-width: 400px) {
    .navbar_container nav {
        padding: 0 10px;
    }

    .content .logo a {
        font-size: 27px;
    }
}

.dummy-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    z-index: -1;
    padding: 0 20px;
    text-align: center;
    transform: translate(-50%, -50%);
}

    .dummy-text h2 {
        font-size: 45px;
        margin: 5px 0;
    }

    @media print{
        .navbar_container{
            display:none;
        }
    }

/* ????? ??????? */
#loadingSpinner {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 9999;
}
@media print {
    #loadingSpinner {
        display: none !important;
    }
}
