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

body {
    background: var(--desktop-bg);
    background-size: cover;
    margin: 0;
    padding: 0; /* Fixes the Floating taskbar*/
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Application Window Frame */
#window-container {
    width: 900px;
    margin: 0 auto;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #0a0a0a #0a0a0a #dfdfdf; /* 3D Beveled Border */
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
}

/* Win2k Title Bar */
.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 3px 6px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-buttons {
    display: flex;
    gap: 2px;
}

.win-btn, .close-btn {
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    text-decoration: none;
    color: black;
    display: inline-block;
}

.close-btn:hover {
    background-color: #c0c0c0;
}

/* Menu Bar */
.menu-bar {
    padding: 2px 6px;
    border-bottom: 1px solid #808080;
    color: black;
    background-color: #c0c0c0;
}

/* Centered container,framed or boxed page */
#container {
width: auto;
margin: 0 auto;
background-color: #faf0e6; /* Wheat color content box */
color: #000000;            /* Black text inside box */
border: 3px ridge #c0c0c0; /* Beveled 3D border*/
padding: 15px;
box-sizing: border-box;
}

#header {
text-align: center;
background-color: #600000;
color: #ffff00;            /* Yellow header text */
border: 2px inset #ffffff;
padding: 10px;
}

#header h1 {
font-size: 18px;
margin: 0;
}

#nav {
text-align: left;
background-color: #c0c0c0; /* Gray toolbar look */
padding: 6px;
margin-top: 10px;
border: 1px solid #000000;
font-weight: bold;
}

#sub-nav {
text-align: left;
background-color: #e0e0e0; /* Gray toolbar look */
padding: 6px;
border: 1px dashed #000000;
font-weight: bold;
}

#content {
padding: 15px;
}

#footer {
text-align: center;
color: #666666;
}

/* 1. Normal / Unvisited Link (Blue) */
#nav a:link, #sub-nav a:link {
color: #0000ee;
text-decoration: underline;
}

/* 2. Visited Link */
#nav a:visited, #sub-nav a:visited {
color: #8000ee; /* Purple */
}

/* 3. Hover */
#nav a:hover, #sub-nav a:hover {
color: #ffff00; /* Yellow */
}

/* 4. Active*/
#nav a:active, #sub-nav a:active {
color: #00ff00; /* Green */
}

/* --- PERSISTENT TASKBAR --- */
.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: 3px 7px 1px 5px;
}

.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;
}

/* Container for Start button and open app buttons */
.taskbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.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;
}

/* Style for an open window's button in the taskbar */
.taskbar-window {
    background-color: #c0c0c0;
    border: 2px solid;
    /* Inverted 3D border makes it look "pressed down" or active */
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: black;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
    /* Optional: limit width so titles truncate nicely if they get long */
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-window img {
    flex-shrink: 0;
}
