.app-window {
    display: flex;
    flex-direction: column;
    width: 1000px;
    height: 700px;
    margin: 20px auto;
    background: #d4d0c8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
}

.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 2px 2px 2px 4px;
    background: linear-gradient(to right, #0a246a, #a6caf0);
    color: #ffffff;
    user-select: none;
}

.title-text {
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.window-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.win-btn {
    min-width: 22px;
    height: 22px;
    padding: 0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    background: #d4d0c8;
    color: #000000;
    font-family: "Tahoma", Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
}

.win-btn:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow:
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #dfdfdf;
}

.menu-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 26px;
    padding: 0 6px;
    background: #d4d0c8;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #808080;
}

.menu-item {
    padding: 4px 8px;
    color: #000000;
    user-select: none;
}

.menu-item:hover {
    background: #0a246a;
    color: #ffffff;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    padding: 2px 6px;
    background: #d4d0c8;
    border-top: 1px solid #808080;
}

.status-bar span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 6px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background: #d4d0c8;
}

.menu-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 26px;
    padding: 0 6px;
    background: #d4d0c8;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #808080;
    position: relative;
    z-index: 100;
}

.menu-entry {
    position: relative;
}

.menu-item {
    height: 22px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: #000000;
    user-select: none;
    font: inherit;
}

.menu-item:hover,
.menu-item.active {
    background: #0a246a;
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    display: none;
    flex-direction: column;
    padding: 2px;
    background: #d4d0c8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
    z-index: 1000;
}

.dropdown-menu.open {
    display: flex;
}

.dropdown-menu button {
    height: 24px;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: #000000;
    text-align: left;
    font: inherit;
}

.dropdown-menu button:hover,
.dropdown-menu button:focus {
    background: #0a246a;
    color: #ffffff;
    outline: none;
}

.dropdown-separator {
    height: 2px;
    margin: 3px 2px;
    background: linear-gradient(to bottom, #808080 0, #808080 1px, #ffffff 1px, #ffffff 2px);
}