:root {
    --bg-color: #1f2229;
    --taskbar-bg: #141414;
    --accent: #268bd2; /* Kali Blue */
    --text-color: #e6e6e6;
    --window-header: #2d3038;
}

* { box-sizing: border-box; user-select: none; }
body {
    margin: 0; padding: 0;
    width: 100vw; height: 100vh;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b') no-repeat center center/cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Desktop Icons */
.desktop {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: calc(100vh - 40px);
    padding: 10px;
    align-content: flex-start;
}

.app-icon {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    transition: 0.2s;
    text-shadow: 1px 1px 2px black;
}

.app-icon:hover { background: rgba(255, 255, 255, 0.1); }
.app-icon i, .app-icon img { font-size: 32px; margin-bottom: 5px; width: 32px; }
.app-icon span { font-size: 12px; text-align: center; word-break: break-all;}

/* Window Management */
.window {
    position: absolute;
    background: var(--bg-color);
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    min-height: 200px;
    resize: both;
    overflow: hidden;
}

.window-header {
    background: var(--window-header);
    color: white;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid #000;
}

.window-controls span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}
.close-btn { background: #ff5f56; }
.min-btn { background: #ffbd2e; }
.max-btn { background: #27c93f; }

.window-content {
    flex-grow: 1;
    background: white;
    position: relative;
}
.window-content iframe {
    width: 100%; height: 100%; border: none;
    position: absolute; top:0; left:0;
}

/* Taskbar */
.taskbar {
    position: absolute; bottom: 0; width: 100%; height: 40px;
    background: var(--taskbar-bg);
    display: flex; align-items: center;
    padding: 0 10px;
    color: white;
    z-index: 9999;
}

.start-menu-btn { font-size: 24px; padding: 0 15px; cursor: pointer; color: var(--accent); }
.tray { margin-left: auto; display: flex; gap: 15px; font-size: 12px; align-items: center;}
.tray-item { display: flex; align-items: center; gap: 5px; }

/* Context Menu */
.context-menu {
    position: absolute;
    background: #2d3038;
    border: 1px solid #444;
    color: white;
    width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 10000;
}
.context-menu .item { padding: 10px 15px; cursor: pointer; font-size: 13px; }
.context-menu .item:hover { background: var(--accent); }
.divider { height: 1px; background: #444; margin: 5px 0; }