@import url('common.css');

#menubar {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    left: 0;
    right: 0;
    top: 0;
    height: 38px;
    resize: none;
    background: var(--1-color);
    overflow: hidden;
    z-index: 12;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--border-color);
    padding-top: 2px;
}

.menubar-menubuttons {
    font-size: var(--fontsize-huge) !important;
    border-radius: 4px;
    width: 190px;
    background: var(--2-color);
}

.menubar-menubuttons.selected {
    background-color: var(--selected-color);
    color: var(--selected-text-color);
}

.menubar-mode-combobox {
    width: 120px !important;
    margin-left: 4px !important;
    height: 32px !important;   
}

#menubar.classicgui {
    box-shadow: none;
}

.menubar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-left: 4px;
}

.menubar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-right: 4px;
}

#playground-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    pointer-events: none;
}

#playground-version {
    position: absolute;
    left: calc(50% + 84px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    pointer-events: none;
}

.menubar-project-label {
    font-size: var(--fontsize-huge);
    font-weight: bold;
    color: var(--text-color);
    margin-left: 8px;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    min-width: 210px;
}

.sidebar {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    resize: none;
    overflow: hidden;
    width: 240px;
    max-height: calc(100% - 40px - 26px - 15px);
    top: 40px;
    z-index: 6;
    padding: 0px 15px 15px 15px;
}

#rightBar {
    right: 0;
    padding-right: 20px;
}

#leftBar {
    left: 0;
}

#leftBar.classicgui ,
#rightBar.classicgui {
    padding: 0px;
    padding-right: 4px;
    max-height: calc(100% - 32px - 26px - 15px);
    top: 42px;
}

#bottomBar {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 24px !important;
    height: 240px;
    min-height: 177px;
    max-height: 70vh;
    border-radius: 8px 8px 0px 0px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
}

#bottomBar.classicgui {
    left: 0px !important;
    right: 0px !important;
    gap: 0px;
}

#bottomBar-resizer {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 5px;
    cursor: ns-resize;
    z-index: 10;
    background: transparent;
    border-radius: 2px;
}

#bottomBar-resizer:hover {
    background: var(--hover-color);
}

#bottomBar.left-shorter {
    left: 280px !important;
}

#bottomBar.right-shorter {
    right: 280px !important;
}

#bottomBar.left-shorter.classicgui {
    left: 245px !important;
}

#bottomBar.right-shorter.classicgui {
    right: 245px !important;
}