.monitor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 5px;
}

.monitor-bezel {
    width: 180px;
    height: 140px;
    background-color: var(--win-gray);
    border-top: 2px solid var(--win-gray-light);
    border-left: 2px solid var(--win-gray-light);
    border-right: 2px solid var(--win-gray-dark);
    border-bottom: 2px solid var(--win-gray-dark);
    border-radius: 15px 15px 5px 5px;
    padding: 10px;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.monitor-screen {
    width: 100%;
    height: 100px;
    background-color: var(--win-black);
    border: 2px solid var(--win-gray-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preview-content {
    width: 100%;
    height: 100%;
    background-color: var(--win-desktop);
    background-size: cover;
    background-position: center;
}

.monitor-logo {
    font-size: 8px;
    color: #666;
    text-align: center;
    margin-top: 2px;
    font-family: monospace;
    font-weight: bold;
}

.monitor-stand {
    width: 60px;
    height: 15px;
    background-color: var(--win-gray);
    border-left: 1px solid var(--win-white);
    border-right: 1px solid var(--win-gray-dark);
}

.monitor-base {
    width: 100px;
    height: 10px;
    background-color: var(--win-gray);
    border-top: 1px solid var(--win-white);
    border-left: 1px solid var(--win-white);
    border-right: 2px solid var(--win-gray-dark);
    border-bottom: 2px solid var(--win-gray-dark);
    border-radius: 4px 4px 0 0;
}

fieldset {
    border: 1px solid var(--border-dark);
    padding: 8px;
    font-size: 11px;
    font-family: var(--system-font);
}

legend {
    padding: 0 4px;
}

.wp-selection-row {
    display: flex;
}

.wp-list {
    flex: 1;
    height: 80px;
    background: var(--win-white);
    border: 2px solid;
    border-color: var(--border-dark) var(--win-gray-light) var(--win-gray-light) var(--border-dark);
    overflow-y: scroll;
    list-style: none;
    padding: 2px;
}

.wp-list li {
    padding: 2px 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp-list li:hover {
    background-color: var(--task-active);
}

.wp-list li.selected {
    background-color: var(--win-blue);
    color: var(--text-inverted);
}

.wp-list li::before {
    content: '📺';
    font-size: 10px;
}

.win-btn {
    font-family: var(--system-font);
    font-size: 11px;
    color: #000;
    background-color: var(--win-gray-light);

    min-width: 75px;
    height: 23px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    outline: none;

    border-top: 1px solid var(--win-white);
    border-left: 1px solid var(--win-white);
    border-right: 1px solid var(--win-black);
    border-bottom: 1px solid var(--win-black);

    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
}

.win-btn:active {
    border-top: 1px solid var(--win-black);
    border-left: 1px solid var(--win-black);
    border-right: 1px solid var(--win-white);
    border-bottom: 1px solid var(--win-white);

    box-shadow: none;

    padding-top: 2px;
    padding-left: 2px;
}

.win-btn:focus {
    outline: 1px dotted #000000;
    outline-offset: -4px;
}

.wp-combobox {
    position: relative;
    display: flex;
    width: 100%;
    height: 20px;
    box-sizing: border-box;
    font-family: var(--system-font);
    font-size: 11px;
    cursor: default;
    user-select: none;
    min-width: 0;
}

.wp-combobox-display {
    flex: 1;
    min-width: 0;
    background: var(--win-white);
    color: var(--text-main);
    padding: 1px 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 16px;

    border-top: 2px solid var(--border-dark);
    border-left: 2px solid var(--border-dark);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.wp-combobox-arrow {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
    background: var(--win-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    box-sizing: border-box;

    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-darkest);
    border-bottom: 1px solid var(--border-darkest);
    box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 #dfdfdf;
}

.wp-combobox-arrow:active {
    border-top: 1px solid var(--border-darkest);
    border-left: 1px solid var(--border-darkest);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
}

.wp-combobox-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--win-white);
    z-index: 99999;
    list-style: none;
    padding: 2px 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;

    border-top: 2px solid var(--border-light);
    border-left: 2px solid var(--border-light);
    border-right: 2px solid var(--border-darkest);
    border-bottom: 2px solid var(--border-darkest);
    box-shadow: 1px 1px 0 var(--border-darkest);
}

.wp-combobox-dropdown.open {
    display: block;
}

.wp-combobox-option {
    padding: 1px 4px;
    font-family: var(--system-font);
    font-size: 11px;
    color: var(--text-main);
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-combobox-option:hover {
    background-color: #316AC5;
    color: var(--text-inverted);
}

.wp-combobox-option.selected {
    background-color: var(--win-blue);
    color: var(--text-inverted);
}

#window-wallpaper .window-body {
    border: none;
    overflow: visible;
}

.wp-list::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: var(--win-gray);
}

.wp-list::-webkit-scrollbar-corner {
    background: var(--win-gray);
}

.wp-list::-webkit-scrollbar-track {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='2' height='2' viewBox='0 0 2 2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23c0c0c0'/%3E%3C/svg%3E");
}

.wp-list::-webkit-scrollbar-thumb {
    background-color: var(--win-gray);
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
}

.wp-list::-webkit-scrollbar-thumb:active {
    background-color: var(--win-gray);
}

.wp-list::-webkit-scrollbar-button {
    display: block;
    height: 16px;
    width: 16px;
    background-color: var(--win-gray);
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
    background-position: center;
    background-repeat: no-repeat;
}

.wp-list::-webkit-scrollbar-button:active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: none;
    background-position: calc(50% + 1px) calc(50% + 1px);
}

.wp-list::-webkit-scrollbar-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5 L5 8 L11 8 Z' fill='black'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.wp-list::-webkit-scrollbar-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 11 L5 8 L11 8 Z' fill='black'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.wp-list::-webkit-scrollbar-button:vertical:decrement:end,
.wp-list::-webkit-scrollbar-button:vertical:increment:start {
    display: none;
}