body {
    margin: 0;
    overflow: hidden;
}

/* No body scroll */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 40px;
}

.site-title {
    margin: 0 20px;
    font-size: 32px;
    font-weight: bold;
    color: #3267a0;
}

.hamburger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #495057;
}

.main-container {
    display: flex;
    height: calc(100vh - 120px);
    /* Adjust for header/footer */
    margin-top: 70px;
    /* Header height */
}

.sidebar {
    width: auto;
    max-width: 350px;
    height: 100%;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    /* Scroll only in sidebar */
    padding: 20px;
    transition: transform 0.3s ease;
    /* Smooth collapse */
    scrollbar-width: thin;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    flex: 1;
    height: 100%;
    padding: 0;
}

footer {
    height: 60px;
    background: #343a40;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Right-align */
    padding: 0 20px;
    margin-top: auto;
}

.tree-menu ul {
    list-style: none;
    padding-left: 0;
}

.tree-menu>ul {
    padding-left: 20px;
}

.tree-menu li {
    list-style-type: none;
    margin: 5px 0;
}

.tree-menu a {
    text-decoration: none;
    font-size: 0.9em;
}

.tree-menu a:hover {
    text-decoration: none;
}

.tree-menu .collapsible {
    cursor: pointer;
    color: #495057;
    user-select: none;
    font-size: 0.9em;
}

.tree-menu .collapsible:hover {
    color: #007bff;
}

.tree-menu ul.submenu {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    padding-left: 20px;
    border-left: 2px solid #dee2e6;
}

.tree-menu .submenu li {
    margin: 2px 0;
}

.tree-menu ul.submenu ul.submenu {
    padding-left: 20px;
    border-left-color: #adb5bd;
}

.tree-menu ul.submenu ul.submenu ul.submenu {
    border-left-color: #ced4da;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.toggle-icon {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease-in-out;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.search-bar {
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding: 10px 0;
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.hidden {
    display: none !important;
}