:root {
    --desktop-bg: #3B6EA5 url('wallpaper.png') no-repeat center center fixed;
}

body.desktop-screen {
    background: var(--desktop-bg);
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 11px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Desktop Icon Grid Layout */
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 80px;
    gap: 15px;
    padding: 20px;
    align-content: start;
    height: 100%;
}

/* Individual Desktop Icon Styling */
.desktop-icon {
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    border: 1px dotted transparent;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 128, 0.3); /* Translucent dark blue selection */
    border: 1px dotted #ffffff;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.desktop-icon span {
    display: block;
    text-shadow: 1px 1px #000000; /* Makes white text legible on teal */
    word-break: break-word;
    line-height: 1.2em;
}

/* Windows 2000 Taskbar at the bottom */
.taskbar {
    height: 50px;
    min-height: 50px !important;
    max-height: 50px !important;
    background-color: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    box-sizing: border-box;
}

.start-btn {
    font-weight: bold;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 13px;
    height: 36px;
    padding: 2px 8px 2px 4px;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: default;

    display: flex;
    align-items: center;
    gap: 4px;
}

.start-btn img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.start-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 1px 9px 0 7px;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.taskbar-tray-icon {
    /* Match standard Win2k button styling */
    background-color: #c0c0c0;
    border: 1px solid;
    /* Top/Left are light (highlight), Bottom/Right are dark (shadow) */
    border-color: #ffffff #808080 #808080 #ffffff;

    padding: 2px 3px;
    height: 36px; /* Standard small tray icon button height */
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

/* When you click or press the button, invert the borders for a "sunken" push effect */
.taskbar-tray-icon:active {
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 3px 2px 1px 4px; /* Shifts the icon slightly to look pressed */
}

.taskbar-tray-icon img {
    image-rendering: pixelated;
}

.taskbar-tray {
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 8px;
    background-color: #c0c0c0;

    /* Add these lines to lock in the exact font sizing: */
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
    height: 36px; /* Forces both trays to be the exact same height */
    display: flex;
    flex-direction: column; /* Stacks time on top and date on bottom */
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    text-align: center;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated; /* Keeps pixel art looking crisp if your icons are low-res! */
    margin-bottom: 4px;
}
