.header {
    background: #fff;
    color: white;
    padding: 15px 0;
    z-index: 1000;
}

.navmenu {
    width: 100%;
    padding: 0 50px;
}

.nav-left {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-left a {
    color: black;
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    background-color: transparent;
    transition: 0.2s ease-in-out;
    font-size: 1.15rem;
}

.nav-left li:hover>a {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.2);
    /* text-decoration: underline; */
    /* text-underline-offset: 3px; */
}
.nav-left li.active > a {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.2);
    /* text-decoration: underline; */
    /* text-underline-offset: 3px; */
}
.nav-left li > a {
    position: relative;
}
.nav-left li:hover > a::after,
.nav-left li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 50px;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #2185d0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn,
.login-btn {
    color: #333;
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.logout-btn:hover,
.login-btn:hover {
    color: var(--nav-hover-color);
    text-decoration: underline;
    background-color: rgba(0, 123, 255, 0.1);
}

.sidebar {
    width: 260px;
    /* background: linear-gradient(to top, #5768f3, #1c45ef); */
    background: linear-gradient(to top, #5768f3, #0d6efd);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -260px;
    padding: 20px;
    transition: 0.3s ease-in-out;
    z-index: 9999;
}

.sidebar.open {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 12px 16px;
    list-style: none;
}

.sidebar ul li.active {
    background-color: #e8f0fe;
    border-left: 1px solid #1a73e8;
    font-weight: 600;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li.active a {
    color: #1a73e8;
}

:root {
    --nav-hover-color: #007bff;
}

#profileDropdown {
    position: absolute;
    top: 49px;
    right: 10%;
    background: white;
    border: 1px solid rgb(221, 221, 221);
    padding: 12px;
    border-radius: 6px;
    width: 30%;
    display: none;
    z-index: 9999;
}


.nav-left li {
    list-style: none;
    flex-shrink: 0;
}

.site-title {
    color: black;
    font-weight: 600;
    font-size: 1.5rem;
    white-space: nowrap;
}

.nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6) !important;
    font-size: 12px;
    font-weight: 400;
    min-width: 80px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-item-link i.icon {
    font-size: 20px !important;
    margin-bottom: 4px !important;
    height: 20px;
}


.nav-item-link:hover,
.nav-item-link.active {
    color: #000000 !important;
}


.nav-item-link::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.2s ease;
}

.nav-item-link:hover::after {
    width: 100%;
}

.nav-item-link span {
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    background-color: transparent;
    transition: 0.2s ease-in-out;
    font-size: 16px;
    text-align: center;
    width: 100%;
}



@media (max-width: 768px) {
    header .container-fluid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 12px !important;
    }

    #sidebarToggle {
        order: 1 !important;
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }


    .site-title {
        order: 2 !important;
        flex: 1 !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-right {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #navmenu {
        order: 4 !important;
        width: 100% !important;
        display: block;
        position: relative;
        background: #ffffff !important;
        margin-top: 8px !important;
        padding: 6px 1px !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
        z-index: 1000;
    }

    #navmenu::-webkit-scrollbar {
        display: none;
    }

    .nav-left {
        display: flex !important;
        justify-content: space-between !important;
        gap: 9px !important;
        width: 100% !important;
    }

    .nav-left a {
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }

    .avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .nav-right i,
    .nav-right .sign-out {
        font-size: 1.2rem !important;
    }

    #profileDropdown {
        position: absolute !important;
        top: 50px !important;
        right: 10px !important;
        left: auto !important;
        width: 280px !important;
        max-width: 90vw !important;
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
        padding: 15px !important;
        display: none;
        z-index: 10001 !important;
    }

    #profileDropdown .d-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    #profileDropdown .user_img {
        margin-bottom: 5px !important;
    }

    #profileDropdown p {
        margin-bottom: 5px !important;
        font-size: 14px !important;
        word-break: break-all !important;
    }
}

#header {
    top: 0 !important;
}
html { 
    margin-top: 0px !important; 
}
body { 
    top: 0px !important; 
    position: static !important; 
}

/* 
.goog-te-banner-frame, 
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon, 
#goog-gt-tt, 
.goog-te-balloon-frame,
iframe.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.skiptranslate{
    display: none !important;
}
#goog-gt-tt{
    background: none !important;
    box-shadow: none !important;
} */

.goog-te-banner-frame, 
.skiptranslate, 
#goog-gt-tt, 
.goog-te-gadget-icon, 
.goog-te-balloon-frame { 
    display: none !important; 
    visibility: hidden !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}



.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: #2185d0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #ffffff;
  line-height: 0;
}

.scroll-top:hover {
  background-color: #0d6efd;
  color: #ffffff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}