﻿.menu-container {
    position: relative;
    width: auto;
    height: 400px;
    /*border: 1px solid #ccc;*/
    overflow: hidden; /* Hides panels that are off-screen */
    font-family: sans-serif;
    background: #222 !important;
}

/* Base panel styles */
.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Pushed to the right off-screen by default */
}

    /* Active panel comes into view */
    .menu-panel.active {
        transform: translateX(0);
    }

    /* Panels that were active but are now hidden to the left (previous menus) */
    .menu-panel.exit-left {
        transform: translateX(-100%);
    }

/* List UI styling */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu-list li, .menu-header {
        padding: 15px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

        .menu-list li:hover {
            background-color: #f9f9f9;
        }

/* Indicator for nested menus */
.has-children::after {
    content: '>';
    float: right;
    color: #aaa;
}

/* Header style for back buttons */
.menu-header {
    background: #f4f4f4;
    font-weight: bold;
}

.back-btn::before {
    content: '< ';
    color: #666;
}
