/***** Reset *****/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/***** Common *****/
:root {
    --primary-color: rgb(50, 50, 159);
    --dark-color: rgb(38, 50, 56);
    --active-color: rgb(237, 237, 237);
}

body {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    display: flex;
    height: 100vh;
    overflow: hidden;
}


/***** Sidebar *****/
#sidebar {
    width: 320px;
    background-color: rgb(250, 250, 250);
    border-right: 1px solid #EEE;
    display: flex;
    flex-direction: column;
}

#sidebar-header {
    padding: 1.6rem 1rem 1rem .5rem;
    font-size: 18px;
}

#tree-container {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0 2rem;
}


/***** Tree *****/
.tree {
    list-style: none;
}

.tree-item {
    margin-bottom: .1rem;
    font-size: 0.98em;
}

.tree-item-header {
    padding: .5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.tree-item-header:hover {
    background-color: rgb(225, 225, 225);
}

.tree-item-header__label {

}

.tree-item-header__icon {
    height: 1.5em;
    width: 1.5em;
    transition: transform 0.3s ease;
}

.tree-item-header.collapsed .tree-item-header__icon {
    transform: rotate(-90deg);
}

.tree-subitems {
    list-style: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 500px;
}

.tree-item-header.collapsed + .tree-subitems {
    max-height: 0;
}

.tree-subitem {
    /*margin-bottom: 3px;*/
}

.tree-subitem a {
    display: block;
    padding: .5rem .5rem .5rem 2rem;
    color: #333;
    text-decoration: none;
}

.tree-subitem a:hover {
    background-color: var(--active-color);
}

.tree-subitem a.active {
    color: var(--primary-color);
    background-color: var(--active-color);
}


/***** 2. Content *****/
#content {
    flex: 1;
}

#content-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
