:root {
    --glass: rgba(15, 15, 15, 0.75);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.15);
    --accent: #00d2ff;
}

body {
    margin: 0;
    height: 100vh;
    background: #0f0f0f url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') center/cover no-repeat;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    color: white;
    transition: background 0.5s ease;
}

.desktop { position: relative; width: 100%; height: 100%; }

/* Icons */
.icon {
    width: 80px; position: absolute; text-align: center;
    cursor: pointer; padding: 10px; border-radius: 12px; transition: 0.2s;
}
.icon:hover { background: rgba(255,255,255,0.1); }
.icon-img { font-size: 32px; margin-bottom: 5px; }
.icon span { font-size: 12px; text-shadow: 1px 1px 3px black; }

/* Windows */
.window {
    position: absolute; width: 500px; height: 380px;
    background: var(--glass); backdrop-filter: blur(25px);
    border: 1px solid var(--border); border-radius: 16px;
    display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}
.window-header {
    padding: 12px; background: var(--glass-strong);
    display: flex; justify-content: space-between; cursor: move;
}
.window-content { flex: 1; padding: 15px; overflow: auto; }

/* Start Menu (Matches Image Alignment) */
.start-menu {
    position: absolute; bottom: 85px; left: 50%;
    transform: translateX(-160px); width: 220px;
    background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(20px);
    border-radius: 15px; border: 1px solid var(--border);
    padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.start-item {
    padding: 12px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px;
}
.start-item:hover { background: rgba(255,255,255,0.1); }

/* Taskbar */
.taskbar {
    position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
    z-index: 10000;
}
.taskbar-inner {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 20px;
    display: flex; align-items: center; padding: 5px 15px; gap: 15px;
}
.taskbar-items { display: flex; gap: 8px; }
.taskbar-app {
    width: 38px; height: 38px; display: flex; align-items: center; 
    justify-content: center; font-size: 20px; border-radius: 10px; cursor: pointer;
}
.start-btn { 
    background: transparent; border: none; font-size: 22px; cursor: pointer; 
    padding: 5px; transition: 0.2s;
}
.start-btn:hover { transform: scale(1.1); }
.hidden { display: none; }

/* Utilities */
input, button { padding: 8px; border-radius: 6px; border: 1px solid var(--border); background: #222; color: white; }
button { background: var(--accent); color: black; font-weight: bold; cursor: pointer; }
textarea { width: 100%; height: 90%; background: transparent; color: white; border: none; resize: none; outline: none; }
.wallpaper-preview { width: 100%; height: 50px; border-radius: 5px; cursor: pointer; object-fit: cover; }

:root {
    --glass: rgba(15, 15, 15, 0.7);
    --border: rgba(255, 255, 255, 0.2);
    --accent: #00d2ff;
}

body {
    margin: 0;
    height: 100vh;
    /* High-res wallpaper, no filters applied here to keep it sharp */
    background: #000 url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=90&w=2560') center/cover no-repeat;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    color: white;
    transition: background 0.5s ease;
}

.desktop { position: relative; width: 100%; height: 100%; }

/* Icons */
.icon {
    width: 80px; position: absolute; text-align: center;
    cursor: pointer; padding: 10px; border-radius: 12px; transition: 0.2s;
}
.icon:hover { background: rgba(255, 255, 255, 0.1); }
.icon-img { font-size: 32px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.icon span { font-size: 12px; font-weight: 500; text-shadow: 1px 1px 3px black; }

/* Windows - Blur limited to window only */
.window {
    position: absolute; width: 500px; height: 380px;
    background: var(--glass); backdrop-filter: blur(15px);
    border: 1px solid var(--border); border-radius: 16px;
    display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.window-header {
    padding: 12px; background: rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; cursor: move;
}
.window-content { flex: 1; padding: 15px; overflow: auto; }

/* Start Menu */
.start-menu {
    position: absolute; bottom: 80px; left: 50%;
    transform: translateX(-155px); width: 220px;
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(20px);
    border-radius: 15px; border: 1px solid var(--border);
    padding: 8px; z-index: 10000;
}
.start-item { padding: 12px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; }
.start-item:hover { background: var(--accent); color: black; }

/* Taskbar */
.taskbar { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 10000; }
.taskbar-inner {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 20px;
    display: flex; align-items: center; padding: 5px 15px; gap: 15px;
}
.taskbar-items { display: flex; gap: 8px; }
.taskbar-app { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.start-btn { background: transparent; border: none; font-size: 24px; cursor: pointer; transition: 0.2s; }
.start-btn:hover { transform: scale(1.15); }
.hidden { display: none; }

/* Settings Inputs */
input, button { padding: 8px; border-radius: 6px; border: none; background: #222; color: white; }
button { background: var(--accent); color: black; font-weight: bold; cursor: pointer; }
textarea { width: 100%; height: 100%; background: transparent; color: white; border: none; resize: none; outline: none; }
.wallpaper-preview { width: 100%; height: 50px; border-radius: 5px; cursor: pointer; object-fit: cover; border: 1px solid transparent; }
.wallpaper-preview:hover { border-color: var(--accent); }
