/* Allgemeine Menü-Stile */
.menu-container ul {
    padding-left: 0;
    margin-bottom: 0;
}

/* Dropdown-Stile für hierarchische Menüs */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

/* Hauptmenü-Dropdowns bei Hover anzeigen */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu.show {
    display: block !important;
}

/* Untermenü-Stile */
.dropdown-submenu {
    position: relative;
}

/* Wichtig: Diese Regel steuert die Position der Untermenüs */
.dropdown-submenu > .dropdown-menu,
li.dropdown-submenu > .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    border-radius: 0 6px 6px 6px;
}

/* Untermenüs bei Hover anzeigen */
.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
}

.dropdown-submenu.dropdown-menu-end > .dropdown-menu {
    left: auto !important;
    right: 100% !important;
    border-radius: 6px 0 6px 6px;
}

/* Z-Index-Management für Tiefe */
.dropdown-menu .dropdown-menu {
    z-index: 1001;
}

.dropdown-menu .dropdown-menu .dropdown-menu {
    z-index: 1002;
}

/* Vertikale Menüs */
.menu-example-vertical .nav-link {
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
}

.menu-example-vertical .nav-link.active {
    border-left-color: #0d6efd;
}

.menu-example-vertical .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Footer-Menü-Stile */
.footer-menu a {
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* Menü-Icons */
.menu-item-icon {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Plugin-spezifische Stile */
.shopping-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #0d6efd;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

/* Sprach-Auswahl im Menü */
.language-selector .dropdown-item.active {
    font-weight: bold;
    background-color: rgba(13, 110, 253, 0.1);
}

.language-selector .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Styles für Menüverwaltung im Backend */
.menu-tree {
    min-height: 50vh;
    overflow-y: auto;
}

.nested-sortable {
    min-height: 20px;
    padding-left: 0;
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 0.75rem;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item.active {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.menu-handle {
    cursor: grab;
    color: #aaa;
    margin-right: 0.5rem;
}

.menu-handle:active {
    cursor: grabbing;
}

.menu-indent {
    display: inline-block;
    width: 20px;
}

/* Sortable.js Klassen */
.sortable-ghost {
    opacity: 0.4;
    background-color: #f8f9fa !important;
}

.sortable-chosen {
    background-color: #e9ecef;
}

.sortable-drag {
    opacity: 0.8;
}

/* Text-Menüeinträge wie Links aussehen lassen */
span.nav-link {
    cursor: pointer;
}

span.nav-link:hover {
    text-decoration: underline;
}

span.dropdown-item {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

span.dropdown-item:hover {
    text-decoration: underline;
    background-color: #f8f9fa;
    color: #16181b;
}

/* Footer Text-Links */
span.text-decoration-none {
    cursor: pointer;
}

span.text-decoration-none:hover {
    text-decoration: underline;
}

/* Sidebar Text-Links */
span.sidebar-link {
    cursor: pointer;
}

span.sidebar-link:hover {
    text-decoration: underline;
}