.submenu {
    display: none;
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker to distinguish */
}

.submenu.active {
    display: block;
}

.menu-parent {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-parent:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-right: 4px solid #ffffff;
}

/* Remove hover effect when submenu is open */
.menu-parent.open {
    background-color: transparent;
    border-right: none;
}

.menu-parent::after {
    content: '▼';
    position: absolute;
    right: 16px;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.menu-parent.open::after {
    transform: rotate(180deg);
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    padding-left: 48px;
    /* Indent submenu items */
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.submenu a:hover,
.submenu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-right: 4px solid #ffffff;
}