/* GLOBAL RESETS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 1. DESKTOP BACKGROUND */
body {
    background: #004273; /* Dark blue solid fallback */
    /* Windows 7 default gradient look */
    background-image: linear-gradient(to bottom right, #3486cc, #004273);
    overflow: hidden; /* Prevent body scroll */
}

#desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px; /* Space for the taskbar */
    padding: 10px;
}

/* Desktop Icons Styling */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    margin-bottom: 20px;
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    cursor: default;
}
.desktop-icon img {
    width: 48px; /* Standard icon size */
    height: 48px;
    margin-bottom: 5px;
    /* You'll need actual icon images for this to look right! */
}
.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover highlight */
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 4px;
    margin: -1px;
}


/* 2. TASKBAR STYLING (The Aero Look) */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent base */
    /* Subtle blue gradient for the classic Win7 look */
    background-image: linear-gradient(to top, rgba(50, 50, 50, 0.8), rgba(150, 150, 150, 0.8));
    backdrop-filter: blur(5px); /* The "Aero Glass" effect */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 100;
}

#start-button {
    height: 30px;
    padding: 0 15px;
    margin-right: 10px;
    background-color: #0078d7; /* Windows Blue */
    border: 1px solid #0056a0;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.7); /* Subtle glow */
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.taskbar-icons {
    display: flex;
    flex-grow: 1;
}

.taskbar-icon {
    height: 30px;
    padding: 0 10px;
    margin-right: 5px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 30px;
}
.taskbar-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.taskbar-icon.active {
    /* Active running application look */
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px 3px 0 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

#system-tray {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 10px;
    color: white;
    font-size: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    justify-content: center;
}


/* 3. WINDOW STYLING (The Draggable Content Box) */
.window {
    position: absolute;
    width: 500px;
    min-height: 250px;
    background-color: #f0f0f0; /* Window background */
    border-radius: 6px;
    border: 1px solid #999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), /* Main drop shadow */
                0 0 0 1px rgba(255, 255, 255, 0.1) inset; /* Subtle inner highlight */
    overflow: hidden;
    display: none; /* Starts hidden */
    resize: both; /* Allows resizing (but only in browser, needs JS for full desktop effect) */
    min-width: 200px;
    min-height: 100px;
    z-index: 50;
}

.title-bar {
    height: 30px;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: white;
    cursor: grab;
    
    /* Aero Glass Title Bar Look */
    background: linear-gradient(to top, #0078d7, #4ca6e8); /* Blue gradient */
    border-bottom: 1px solid #0056a0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.window-title {
    font-size: 0.9rem;
    margin-left: 5px;
}

.window-controls button {
    width: 30px;
    height: 20px;
    margin-left: 2px;
    border: none;
    background-color: transparent;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.1s;
}

.window-controls .minimize:hover,
.window-controls .maximize:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.window-controls .close:hover {
    background-color: #e81123; /* Distinctive red close button */
}

.window-content {
    padding: 15px;
    color: #333;
    line-height: 1.5;
}