#toplevel_page_bookwell > ul.wp-submenu,
.toplevel_page_bookwell > ul.wp-submenu {
    background-color: #0f1d40 !important;
}

#toplevel_page_bookwell .wp-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c3c4c7;
    box-sizing: border-box;
}

#toplevel_page_bookwell .wp-submenu li.current a,
#toplevel_page_bookwell .wp-submenu a:hover,
#toplevel_page_bookwell .wp-submenu a:focus {
    color: #fff;
}

/* Fixed icon slot — same size & alignment for every menu item */
#toplevel_page_bookwell .wp-submenu a::before {
    content: "";
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0;
    padding: 0;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.85;
    vertical-align: middle;
}

#toplevel_page_bookwell .wp-submenu li.current a::before,
#toplevel_page_bookwell .wp-submenu a:hover::before {
    opacity: 1;
}

#toplevel_page_bookwell .wp-submenu a.wp-first-item[href*="page=bookwell"]::before {
    background-image: url("../images/admin-menu/dashboard.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-calendar"]::before {
    background-image: url("../images/admin-menu/calendar.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-appointments"]::before {
    background-image: url("../images/admin-menu/appointments.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-customers"]::before {
    background-image: url("../images/admin-menu/customers.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-services"]::before {
    background-image: url("../images/admin-menu/services.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-service-extras"]::before,
#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-extra-rules"]::before {
    background-image: url("../images/admin-menu/extras.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-staff"]::before {
    background-image: url("../images/admin-menu/staff.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-notifications"]::before {
    background-image: url("../images/admin-menu/notifications.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-form-fields"]::before {
    background-image: url("../images/admin-menu/form-fields.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-settings"]::before {
    background-image: url("../images/admin-menu/settings.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-addons"]::before {
    background-image: url("../images/admin-menu/addons.svg");
}

#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-shortcode-generator"]::before {
    background-image: url("../images/admin-menu/shortcode.svg");
}

/* Pro / Freemius submenu items */
#toplevel_page_bookwell .wp-submenu a:has(.fs-submenu-item.account)::before,
#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-account"]::before {
    background-image: url("../images/admin-menu/account.svg");
}

#toplevel_page_bookwell .wp-submenu a:has(.fs-submenu-item.pricing)::before,
#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-pricing"]::before {
    background-image: url("../images/admin-menu/pricing.svg");
}

#toplevel_page_bookwell .wp-submenu a.bookwellab-admin-menu-support::before,
#toplevel_page_bookwell .wp-submenu a[href*="page=bookwell-pro-support"]::before {
    background-image: url("../images/admin-menu/support.svg");
}
