.nav-container {
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    z-index: 14000;
}

.nav-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 30px;
    padding: 3px;
    font-size: 1.71em;
    font-weight: 400;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    background-color: none;
    border-radius: 5px;
}

.nav-brand:hover {
    background-color: #ffdead;

}

#nav-hr {
    color: #ff9f02;
}

.nav-org-name-wrapper {
    display: flex;
    align-items: center; 
    gap: 5px;
    justify-content: flex-start;
}

.nav-org-name {
    font-size: 1.1em;
    color: #ffdead;
    text-decoration: none;
}

.nav-org-name:hover {
    color: #fff;
}

.nav-menu {
   color: #ccc;/* display: flex;
    align-items: right;
    gap: 20px;*/
}

.nav-user {
    color: #CCC;
    font-size: 0.71em;
    text-align: right;
}

.nav-link {
    color: #fffbf1;
    font-weight: 300;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffdead;
}

.first-nav-link {
    padding: 0  0;
    padding-right: 10px;
}

.subgroup-navigation {
	display: flex;
    gap: 2rem;
    align-items: center;
}

.subgroup-nav-tabs {
	display: flex;
    gap: 2rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
}

.subgroup-nav-tab {
	padding: 1rem 0;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400; 
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.subgroup-nav-tab:hover {
	color: #333;
}

.tab-active  {
	color: #ff9f02;
}

.mtModeToggle {
    width: 51px;
    height: 15px;
    margin-left: auto;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
}

#mtMode.mtOff {
    background-image: url('../img/mt-off.png');
}

#mtMode.mtOn {
    background-image: url('../img/mt-on.png');
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-icon {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* Navigation Slide-out Menu */
.nav-menu-slideout {
    position: fixed;
    top: 0;
    left: -50%;
    width: 30%;
    bottom: 0;
    background-color: #404852;
    z-index: 16000;
    transition: left 0.3s ease, box-shadow 0.3s ease;
}

.nav-menu-slideout.active {
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.nav-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.57em;
    color: #fffbf1;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-close-btn:hover {
    color: #ffdead;
}

.nav-menu-content {
    padding: 50px 20px 20px 20px;
    height: 100%;
    overflow-y: auto;
}

.nav-menu-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-menu-link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    color: #fffbf1;
    text-decoration: none;
    font-size: 1.29em;
    font-weight: 400; 
    padding-bottom: 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-menu-link:hover {
    color: #ffdead;
    /*background-color: #f8f9fa;*/
}

/* USER MENU STYLES */
#user-menu {
    display: none;
    flex: 0;
    position: absolute;
    z-index: 2000;
    right: 20px;
    background-color: #ff9f02;
    text-align: right;
    border-radius: 10px;
    margin-top: -10px;
    overflow: hidden;
}

#user-menu ul {
    padding-left: 0 !important;
    font-size: 1.1em !important;
    font-weight: 300 !important;
}

#user-menu li {
    color: #fff;
    text-decoration: none;
    list-style: none;
    font-size: 0.9em;
    padding: 10px 20px;
}

#user-menu-heading {
    font-size: 0.9em;
    font-style: italic;
    font-weight: 300;
}

#user-menu li a:link,
#user-menu li a:active,
#user-menu li a:visited,
#user-menu li a:hover {
    display: block;
    padding: 10px 20px;
    margin: -10px -20px;
    text-decoration: none;
    color: #ffffff;
}

#user-menu li a:hover {
    color: #ff9f02;
    background-color: #ffdead;
}

#user-menu li:first-child a:hover {
    border-radius: 10px 10px 0 0;
}

#user-menu li:last-child a:hover {
    border-radius: 0 0 10px 10px;
}

#user-menu li:only-child a:hover {
    border-radius: 10px;
}

/* DOING NAV STYLES */

.doing-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 0.8em;
    padding: 5px 10px;
    line-height: 1.5;
    background: #404852;
    z-index: 12000;
    color: #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.doing-nav a {
	color: #fff;
}

.doing-nav a:hover {
	color: #ff9f02;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu-slideout {
        left: -70%;
        width: 70%;
    }

    .mtOff {
        display: none;
    }

    .mtOn {
        display: none;
    }
}