/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    position: absolute;
    width: 260px;
    min-height: 982px;
    left: 0px;
    top: 0px;
    overflow-y: auto;
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 24px;
    gap: 20px;
    width: 260px;
    background: #05302C;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Sidebar Header - Logo Only */
.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    width: 220px;
    height: 38px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Logo */
.logo {
    width: 32px;
    height: 32px;
    margin-left: 10px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* User Info Wrapper - Now separate from header */
.user-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    margin-right: 12px;
    gap: 6px;
    width: auto;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* User Info Toggle Button */
.user-info-toggle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    width: 190px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* User Details */
.user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
    height: 38px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

/* User Name */
.user-name {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* User Role */
.user-role {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    color: #AFDAD6;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* CaretDown Icon */
.caret-icon {
    width: 16px;
    height: 16px;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: transform 0.2s ease;
}

.caret-icon path {
    stroke: #FFFFFF;
}

/* Navigation Container */
.nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 6px;
    width: 220px;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

/* Nav Label */
.nav-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 14px;
    gap: 12px;
    width: 220px;
    height: 22px;
    border-radius: 7px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    font-family: 'Karla';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    color: #5A8581;
}

/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    width: 220px;
    height: 36px;
    border-radius: 7px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-item:hover {
    background: rgba(77, 133, 129, 0.3);
}

.nav-item.active {
    background: #4D8581;
}

/* Nav Item Content */
.nav-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    height: 20px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

/* Icon Container */
.nav-icon {
    width: 20px;
    height: 20px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Navigation Text */
.nav-item span {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #FFFFFF;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Others Container */
.others-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 24px;
    gap: 20px;
    width: 260px;
    background: #05302C;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    min-height: 100dvh;
}

/* Others Nav Container */
.others-container .nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 6px;
    width: 220px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Nav Item Wrapper */
.nav-item-wrapper {
    position: relative;
    width: 100%;
}

/* Nav Item Dropdown */
.nav-item-dropdown {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    width: 220px;
    height: 36px;
    border-radius: 7px;
    flex: none;
    order: 3;
    align-self: stretch;
    flex-grow: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.nav-item-dropdown:hover {
    background: rgba(77, 133, 129, 0.3);
}

.nav-item-dropdown .nav-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    height: 20px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

.nav-item-dropdown .caret-icon {
    width: 16px;
    height: 16px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

/* Settings Dropdown */
.settings-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0px;
    gap: 6px;
    list-style: none;
    margin: 0;
}

.settings-dropdown li {
    padding: 0;
    width: 100%;
}

.settings-dropdown .dropdown-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    padding-left: 44px; /* Indent to show it's a submenu */
    gap: 12px;
    width: 100%;
    min-height: 36px;
    border-radius: 7px;
    font-family: 'Karla';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.settings-dropdown .dropdown-link:hover {
    background: rgba(77, 133, 129, 0.3);
}

.settings-dropdown .dropdown-link.active {
    background: #4D8581;
}

/* Rotate caret when dropdown is open */
[aria-expanded="true"] .caret-icon {
    transform: rotate(180deg);
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Helper class for background color (compatibility) */
.bg-sidebar-green {
    background: #4D8581 !important;
}