/* Other Functions Window */
.other-functions-window {
    position: absolute;
    width: 524px;
    height: 218px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    font-family: 'MS Sans Serif', sans-serif;
}

.other-functions-window.show {
    display: block;
}

.other-functions-window.minimized {
    display: none;
}

/* Title Bar */
.other-functions-title-bar {
    background: linear-gradient(to bottom, #e6e6e6, #cccccc);
    color: black;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
}

.other-functions-title-text {
    font-size: 11px;
    font-weight: bold;
}

.other-functions-title-buttons {
    display: flex;
    gap: 2px;
}

.other-functions-title-buttons button {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    color: black;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.other-functions-title-buttons button:hover {
    background: #e0e0e0;
}

.other-functions-title-buttons button:active {
    border: 1px inset #c0c0c0;
}

/* Button Grid */
.other-functions-button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0;
    padding: 0;
    height: calc(100% - 20px);
    width: 100%;
}

.other-functions-function-btn {
    background: #e0e0e0;
    border: 2px outset #c0c0c0;
    color: black;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'MS Sans Serif', sans-serif;
    box-sizing: border-box;
}

.other-functions-function-btn:hover {
    background: #f0f0f0;
}

.other-functions-function-btn:active {
    border: 2px inset #c0c0c0;
    background: #d0d0d0;
}

.other-functions-function-btn.dark-mode-active {
    border: 2px inset #c0c0c0;
    background: #e0e0e0;
    color: black;
}

.other-functions-function-btn .btn-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.other-functions-function-btn .btn-stack span {
    font-size: 9px;
    margin: 1px 0;
}
