.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin: 0;
    padding: 0;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.menu.minimized {
    position: relative !important;
}

.menu li {
    display: flex;
    width: 250px !important;
    min-width: 250px;
    max-width: 250px;
    height: 44px;
    padding: 0 3px 0 27px;
    margin: 0;
    align-items: center;
    color: var(--color-text);
    list-style: none;
    position: relative;
    gap: 8px;
    box-sizing: border-box;
}

.menu li:hover, .menu li.active {
    background: var(--color-secondary);
    color: white;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.menu li:hover a , .menu li.active a {
    color: white;
    text-decoration: none;
}


.menuTextLink {
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    gap: 5px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.menuTextButton {
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    gap: 5px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    width: 100%;
}

.menu li:hover .menuTextButton {
    color: white;
}

.arrowButton {
    background: none;
    border: none;
    padding: 4px;
    margin-right: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color:var(--color-text);
}

.menu li:hover .arrowButton {
    color: white;
}




.arrowButton:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.icon {
    display: flex;
    width: 25px;
    height: 25px;
    padding: 2.292px 2.3px 2.508px 2.292px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Ensure icon is visible when minimized */
.menu.minimized li .icon.iconMinimized {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    z-index: 99999 !important;
}

.hassubmenu {
    width: 20px;
    height: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.rotated {
    transform: rotate(180deg);
}

.menuText {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.minimizedOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    background: transparent;
}

.minimizedSubmenuToggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

/* Minimized Menu Styles */
.menu.minimized li {
    width: 46px;
    padding: 0;
    justify-content: center;
    align-items: center;
    position: relative !important;
    overflow: visible !important;
    clip-path: none !important;
    clip: none !important;
    contain: none !important;
    isolation: auto !important;
    /* Don't create stacking context that interferes */
    transform: none !important;
}
.menu.minimized li a{
    opacity: 0;
}

/* Ensure icons are never hidden when minimized */
.menu.minimized li .iconMinimized,
.menu.minimized li [data-debug="icon-minimized"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    z-index: 99999 !important;
}

.iconMinimizedWrapper {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 25px !important;
    line-height: 25px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
}

.iconMinimized {
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 25px !important;
    height: 25px !important;
    padding: 2.292px 2.3px 2.508px 2.292px !important;
    color: var(--color-text) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 25px !important;
}

.iconMinimized svg {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.iconMinimized svg path {
    fill: inherit !important;
    stroke: inherit !important;
}

.menu.minimized li.active .iconMinimized svg,
.menu.minimized li:hover .iconMinimized svg {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

.menu.minimized li.active .iconMinimized svg path,
.menu.minimized li:hover .iconMinimized svg path {
    fill: white !important;
    stroke: white !important;
}

/* Ensure submenu can expand below minimized items */
.menu.minimized {
    width: 100%;
    align-items: center;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}




.menu.minimized li:hover,
.menu.minimized li.active {
    border-radius: 15px;
    color: var(--color-bg);
}

.menu.minimized li.active .iconMinimized,
.menu.minimized li:hover .iconMinimized {
    color: white !important;
}

.menu.minimized li.active .iconMinimized svg,
.menu.minimized li:hover .iconMinimized svg {
    color: white !important;
    fill: white !important;
}

.menu.minimized li.active .iconMinimized svg path,
.menu.minimized li:hover .iconMinimized svg path {
    fill: white !important;
    stroke: white !important;
}

/* Disabled item styles */
.menu.disabled,
.menu li.disabledItem {
    opacity: 0.4;
    pointer-events: none;
}

.menu li.disabledItem:hover {
    background: transparent;
    color: var(--color-text);
    cursor: not-allowed;
}

.disabledLink {
    color: var(--color-text) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.disabledText {
    color: var(--color-text) !important;
    opacity: 0.6 !important;
}

.disabledIcon {
    opacity: 0.6 !important;
    color: var(--color-text) !important;
}

.disabledArrow {
    opacity: 0.6 !important;
    color: var(--color-text) !important;
}

/* Ensure disabled items don't show hover effects */
.menu li.disabledItem:hover .disabledLink,
.menu li.disabledItem:hover .disabledText,
.menu li.disabledItem:hover .disabledIcon,
.menu li.disabledItem:hover .disabledArrow {
    color: var(--color-text) !important;
    opacity: 0.6 !important;
}


