/*
 *    Project Name    : Visual Python
 *    Description     : GUI-based Python code generator
 *    File Name       : menuFrame.css
 *    Author          : Black Logic
 *    Note            : stylesheet for menuFrame.html
 *    License         : GNU GPLv3 with Visual Python special exception
 *    Date            : 2021. 09. 13
 *    Change Date     :
 */
/* frame parts */
.vp-menu-frame {
    width: 51%;
    height: 100%;
    min-width: 273px;
    overflow: hidden;

    position: relative;
    float: left;
}
.vp-menu-header {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 10px;
    text-align: right;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-gray-color);
}
.vp-version-updater {
    display: none;
    float: right;
    position: relative;
    font-size: 13px;
    font-weight: bold;
    color: var(--highlight-color);
    margin: 8px 6px 8px 3px;
    cursor: pointer;
}
.vp-menu-header-button {
    cursor: pointer;
	background-image: url(../../visualpython/img/dot_menu.svg);
	width: 19px;
	height: 19px;
	margin: 5px 0px 0px 0px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	float: right;
	position: relative;
	background-color: #FFFFFF;
	z-index: 100;
}
.vp-menu-body {
    width: 100%;
    height: calc(100% - 100px);
    padding: 0 5px 5px 5px;
    box-sizing: border-box;
}
.vp-menu-body > div:nth-child(2) {
    margin-top: 50px;
}
.vp-menu-search-div {
    box-sizing: border-box;
    padding: 10px 0 10px 0px;
    position: absolute;
    width: calc(100% - 10px);
    background: white;
}
.vp-menu-search-box {
    width: calc(100% - 50px);
    height: 30px;
    background: #FFFFFF;
    border: 0.25px solid #e4e4e4;
    box-sizing: border-box;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 8%);
    border-radius: 2px;
    margin-left: 5px;
    padding-right: 25px;
    font-size: 13px;
}
.vp-menu-search-icon {
    width: 20px;
    height: 20px;
    position: relative;
    right: 32px;
}
.vp-board-toggle-icon {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 11px;
    right: 8px;
    cursor: pointer;
    background-image: url(../img/toggleNote.svg);
    background-position: center;
    background-size: contain;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
}
.vp-board-toggle-icon.vp-hide {
    background-image: url(../img/toggleNote_hide.svg);
}
.vp-board-toggle-icon:hover {
    background-image: url(../img/toggleNote.svg);
}

.vp-menu-footer {
    width: 100%;
    height: 50px;
    border-top: 1px solid var(--border-gray-color);
    line-height: 50px;
}

/* menu header menu */
#vp_headerExtraMenu {
    display: none;
    cursor: auto;
    margin: 30px 0px 0px 0px;
    width: 165px;
    float: right;
    background: #FFFFFF;
    border: 0.25px solid var(--border-gray-color);
    border-radius: 3px;
    box-sizing: border-box;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
}
#vp_headerExtraMenu .vp-header-extra-menu-list {
    list-style: none;
    margin-block-start: 7px;
    margin-block-end: 0px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
    color: var(--font-primary);
}
#vp_headerExtraMenu .vp-header-extra-menu-list li {
    overflow: hidden;
    cursor: pointer;
    height: 25px;
    margin-left: 10px;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    vertical-align: middle;
    color: var(--font-primary);
    background-color: #FFFFFF;
    margin-bottom: 2px;
    float: none;
}
#vp_headerExtraMenu .vp-header-extra-menu-list li:hover {
    color: var(--font-highlight);
}
/* resizing handle */
.vp-menu-frame .ui-resizable-handle {
    position: absolute;
    margin-right: 5px;
    right: 0px;
    top: 0px;
    width: 10px;
    height: 100%;
    cursor: col-resize;
}
    
.vp-logo {
    float: left;
    width: 150px;
    margin: 2px 2px;
}

/* Menu Group */
.vp-menugroup-root {
    width: calc(100% - 10px);
    background: var(--light-gray-color);
    border-radius: 3px;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    margin: 5px;
    cursor: pointer;
}
.vp-menugroup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 58px);
    grid-template-rows: repeat(auto-fill, 57px);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    margin: 10px 5px;
}
.vp-menugroup {
    font-weight: bold;
    margin: 5px;
}
.vp-menugroup-box:empty::after {
    content: '(Empty)';
    color: var(--gray-color);
}
:not(.apps) > .vp-menugroup-box {
    padding-left: 8px;
}
/* Menu Items */
.vp-menuitem {
    padding: 3px 10px;
    width: 90%;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgb(0 0 0 / 5%);
    margin: 5px 0px 0px 10px;
    background-color: var(--border-gray-color);
    border-radius: 3px;
}

/* Menu Items - App */
.vp-menuitem.apps {
    width: 56px;
    height: 56px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 3px;
    padding: 10px 0px;
    cursor: pointer;
    margin: 0;
}
.vp-menuitem.apps.vp-color-apps1 {
    background: #F9B52A;
}
.vp-menuitem.apps.vp-color-apps2 {
    background: #EF8F3C;
}
.vp-menuitem.apps.vp-color-apps3 {
    background: #EB773C;
}
.vp-menuitem.apps.vp-color-apps4 {
    background: #E56139;
}
.vp-menuitem.apps.vp-color-apps5 {
    background: #97AA4E;
}
.vp-menuitem.apps.vp-color-apps6 {
    background: #88B4E9;
}
.vp-menuitem.apps.vp-color-apps7 {
    background: #6C9BD1;
}
.vp-menuitem.apps.vp-color-apps8 {
    background: #578BC7;
}
.vp-menuitem.apps.vp-color-preparing {
    background: var(--gray-color);
}
.vp-menuitem.apps img {
    width: 25px;
    height: 25px;
}
.vp-menuitem-apps-name {
    color: #FFFFFF;
    font-size: 11px;
    margin-top: 3px;
}
/* MenuItem - Logic */
.vp-menuitem.logic-define {
    background-color: rgb(213, 231, 222);
}
.vp-menuitem.logic-control {
    background-color: rgb(253, 239, 221);
}
/* MenuItem - Library */
.vp-menuitem.library {
    background-color: rgb(249, 227, 214);
}

/* Task Bar */
.vp-menu-task-bar {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    padding: 10px;
}
/* Task Item */
.vp-menu-task-item {
    display: inline-block;
    position: relative;
    width: 85px;
    height: 30px;
    line-height: 30px;
    background: var(--light-gray-color);
    margin-left: 3px;
    padding-left: 10px;
    cursor: pointer;
    border: 0.24px solid #E4E4E4;
    box-sizing: border-box;
    border-radius: 2px 2px 0px 0px;
}
.vp-menu-task-item.vp-focus{
    color: var(--font-highlight);
    background: white;
    border-bottom: 3px solid #FFCF73;
}
.vp-menu-task-item img.vp-menu-task-remove {
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 6px;
}
/* .vp-menu-task-item img.vp-menu-task-remove,
.vp-menu-task-item:hover img.vp-menu-task-icon {
    display: none;
} */
.vp-menu-task-item span {
    display: inline-block;
    width: calc(100% - 25px);
    line-height: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
}