/* Display Properties Window Styles */

/* Ensure window is hidden on startup */
#display-properties-window {
    display: none;
}

#display-properties-window.show {
    display: flex;
}

/* Tabs */
.display-tabs {
    display: flex;
    background: var(--w95-face);
    padding: 4px 4px 0;
    border-bottom: 2px solid var(--w95-shadow);
}

.display-tab {
    padding: 4px 12px;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-hilite) var(--w95-shadow) transparent var(--w95-hilite);
    border-bottom: none;
    margin-right: 2px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    position: relative;
    top: 2px;
}

.display-tab:hover {
    background: var(--w95-hover);
}

.display-tab.active {
    background: white;
    border-bottom: 2px solid white;
    z-index: 10;
    top: 2px;
}

/* Tab Content */
.display-tab-content {
    flex: 1;
    background: white;
    padding: 12px;
    overflow: auto;
}

.tab-placeholder {
    text-align: center;
    padding: 40px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

/* Wallpaper Section */
.wallpaper-section {
    display: flex;
    gap: 16px;
    height: 100%;
}

/* Monitor Preview */
.monitor-preview-container {
    flex: 0 0 180px;
}

.monitor-preview {
    width: 160px;
    margin: 0 auto;
}

.monitor-screen {
    width: 160px;
    height: 120px;
    background: linear-gradient(135deg, #008080 0%, #004040 100%);
    border: 2px solid #000;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.monitor-base {
    width: 120px;
    height: 8px;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-shadow) var(--w95-hilite) var(--w95-hilite) var(--w95-shadow);
    margin: 0 auto;
}

.monitor-base::after {
    content: '';
    display: block;
    width: 40px;
    height: 20px;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-shadow) var(--w95-hilite) var(--w95-hilite) var(--w95-shadow);
    margin: 8px auto 0;
}

/* Wallpaper Controls */
.wallpaper-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallpaper-label,
.display-label {
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    display: block;
    margin-bottom: 4px;
}

.wallpaper-list {
    width: 100%;
    height: 140px;
    background: white;
    border: 2px inset var(--w95-shadow);
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    padding: 2px;
    overflow-y: auto;
}

.wallpaper-list option {
    padding: 2px 4px;
}

.wallpaper-list option:hover {
    background: #000080;
    color: white;
}

.wallpaper-list option:checked {
    background: #000080;
    color: white;
}

.browse-btn {
    align-self: flex-start;
    padding: 4px 16px;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-hilite) var(--w95-shadow) var(--w95-shadow) var(--w95-hilite);
    cursor: pointer;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
}

.browse-btn:active {
    border-color: var(--w95-shadow) var(--w95-hilite) var(--w95-hilite) var(--w95-shadow);
}

/* Display Options */
.display-options {
    margin-top: 8px;
    padding: 8px;
    background: var(--w95-face);
    border: 2px groove var(--w95-shadow);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-group label {
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

/* Bottom Buttons */
.display-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    background: var(--w95-face);
    border-top: 2px groove var(--w95-shadow);
}

.display-btn {
    padding: 4px 20px;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-hilite) var(--w95-shadow) var(--w95-shadow) var(--w95-hilite);
    cursor: pointer;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 75px;
}

.display-btn:hover {
    background: var(--w95-hover);
}

.display-btn:active {
    border-color: var(--w95-shadow) var(--w95-hilite) var(--w95-hilite) var(--w95-shadow);
}

/* Scrollbar styling for wallpaper list */
.wallpaper-list::-webkit-scrollbar {
    width: 16px;
}

.wallpaper-list::-webkit-scrollbar-track {
    background: var(--w95-face);
    border-left: 1px solid var(--w95-shadow);
}

.wallpaper-list::-webkit-scrollbar-thumb {
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-hilite) var(--w95-shadow) var(--w95-shadow) var(--w95-hilite);
}

.wallpaper-list::-webkit-scrollbar-thumb:hover {
    background: var(--w95-hover);
}

/* Desktop Context Menu */
.desktop-context-menu {
    position: fixed;
    background: var(--w95-face);
    border: 2px solid;
    border-color: var(--w95-hilite) var(--w95-shadow) var(--w95-shadow) var(--w95-hilite);
    padding: 2px;
    z-index: 10001;
    display: none;
    min-width: 150px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.desktop-context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-context-menu li {
    padding: 4px 20px;
    cursor: pointer;
}

.desktop-context-menu li:hover {
    background: #000080;
    color: white;
}

.desktop-context-menu .menu-separator {
    height: 1px;
    background: #808080;
    margin: 2px 0;
    padding: 0;
}

.desktop-context-menu .menu-separator:hover {
    background: #808080;
    color: inherit;
    cursor: default;
}