* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; overflow: hidden; font-family: 'IBM Plex Sans', sans-serif; }

:root {
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --accent-dark: #7C3AED;
  --glass-bg: rgba(15, 15, 25, 0.75);
  --glass-border: rgba(255,255,255,0.08);
  --glass-highlight: rgba(255,255,255,0.05);
}

/* Boot screen */
.boot-screen {
  background: #0a0a14;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; position: fixed; z-index: 99999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.boot-screen.fade-out { opacity: 0; transform: scale(1.05); pointer-events: none; }

.boot-logo {
  width: 120px; height: 120px; border-radius: 30px;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; animation: boot-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(139,92,246,0.4);
}
@keyframes boot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 80px rgba(139,92,246,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 120px rgba(139,92,246,0.6); }
}

.boot-progress {
  width: 240px; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; margin-top: 40px; overflow: hidden;
}
.boot-progress-bar {
  height: 100%; background: linear-gradient(90deg, #8B5CF6, #EC4899);
  border-radius: 2px; transition: width 0.3s ease;
}

/* Login screen */
.login-screen {
  background: linear-gradient(135deg, #0a0a14 0%, #1a0a2e 50%, #0a0a14 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; position: fixed; z-index: 99998;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.login-screen.fade-out { opacity: 0; transform: scale(1.1); pointer-events: none; }

.login-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; margin-bottom: 16px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 40px rgba(139,92,246,0.3);
}

.login-input {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 12px 20px; width: 280px;
  color: white; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
  text-align: center;
}
.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: rgba(255,255,255,0.3); }

/* Desktop */
.desktop {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  user-select: none;
}

.wallpaper-default {
  background: linear-gradient(145deg, #0f0c29 0%, #1a0a2e 25%, #302b63 50%, #24243e 75%, #0f0c29 100%);
}
.wallpaper-sunset {
  background: linear-gradient(145deg, #0c0c1d 0%, #1a0526 20%, #4a1942 40%, #c84b31 65%, #ecb365 90%);
}
.wallpaper-ocean {
  background: linear-gradient(145deg, #020024 0%, #090979 35%, #00d4ff 100%);
}
.wallpaper-forest {
  background: linear-gradient(145deg, #0a1a0a 0%, #1a3a1a 30%, #2d5a27 60%, #4a7c59 100%);
}
.wallpaper-berry {
  background: linear-gradient(145deg, #1a0020 0%, #3d0066 25%, #8B5CF6 50%, #EC4899 75%, #ff6b9d 100%);
}

/* Stars overlay */
.stars-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 55% 55%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 25%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 50%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}

/* Desktop icons */
.desktop-icon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 80px; padding: 8px 4px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.desktop-icon:hover { background: rgba(255,255,255,0.08); }
.desktop-icon.selected { background: rgba(139,92,246,0.25); outline: 1px solid rgba(139,92,246,0.4); }

.desktop-icon-img {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.desktop-icon-label {
  font-size: 11px; color: white; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  line-height: 1.2; word-break: break-word; max-width: 76px;
}

/* Taskbar */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 48px;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; z-index: 9000;
  padding: 0 4px;
}

.start-btn {
  width: 44px; height: 40px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; margin: 0 2px;
}
.start-btn:hover { background: rgba(255,255,255,0.08); }
.start-btn.active { background: rgba(139,92,246,0.25); }

.taskbar-apps {
  flex: 1; display: flex; align-items: center; gap: 2px;
  padding: 0 8px; overflow-x: auto;
}
.taskbar-app {
  height: 36px; padding: 0 12px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.15s; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.taskbar-app:hover { background: rgba(255,255,255,0.1); }
.taskbar-app.active { border-bottom-color: var(--accent); background: rgba(139,92,246,0.15); }
.taskbar-app.minimized { opacity: 0.5; }

.system-tray {
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  color: rgba(255,255,255,0.7); font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
}
.tray-icon { font-size: 14px; padding: 4px; cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.tray-icon:hover { background: rgba(255,255,255,0.08); }
.tray-clock { padding: 4px 8px; border-radius: 4px; cursor: pointer; transition: background 0.15s; text-align: right; line-height: 1.2; }
.tray-clock:hover { background: rgba(255,255,255,0.08); }

/* Start menu */
.start-menu {
  position: fixed; bottom: 52px; left: 4px;
  width: 420px; max-height: 520px;
  background: rgba(15, 15, 28, 0.92);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; z-index: 9500;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1);
  animation: menu-open 0.2s ease;
  overflow: hidden;
}
@keyframes menu-open {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.start-menu-search {
  width: 100%; padding: 10px 16px; background: rgba(255,255,255,0.05);
  border: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: white; font-size: 13px; outline: none;
  font-family: 'IBM Plex Sans', sans-serif;
}
.start-menu-search::placeholder { color: rgba(255,255,255,0.3); }

.start-menu-user {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.start-menu-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.start-menu-user-name { color: white; font-size: 14px; font-weight: 500; }

.start-menu-apps {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 8px; max-height: 340px; overflow-y: auto;
}
.start-menu-app {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s; border: none; background: transparent;
  color: white; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px;
  text-align: left;
}
.start-menu-app:hover { background: rgba(255,255,255,0.08); }
.start-menu-app-icon { font-size: 22px; width: 32px; text-align: center; }

.start-menu-footer {
  display: flex; justify-content: flex-end; gap: 4px;
  padding: 8px 12px; border-top: 1px solid rgba(255,255,255,0.06);
}
.power-btn {
  padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.6); font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif; transition: all 0.15s;
  display: flex; align-items: center; gap: 4px;
}
.power-btn:hover { background: rgba(255,255,255,0.08); color: white; }
.power-btn.shutdown:hover { background: rgba(239,68,68,0.2); color: #f87171; }

/* Window */
.window {
  position: absolute; min-width: 320px; min-height: 200px;
  background: rgba(18, 18, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 1px rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  animation: window-open 0.25s ease;
}
.window.focused { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.15), 0 0 0 1px rgba(139,92,246,0.15); }
@keyframes window-open {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.window.closing {
  animation: window-close 0.2s ease forwards;
}
@keyframes window-close {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.92); }
}
.window.maximized { border-radius: 0; }

.window-titlebar {
  height: 38px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 12px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: default; flex-shrink: 0;
}
.window-titlebar-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.window-titlebar-icon { font-size: 16px; }
.window-titlebar-btns { display: flex; gap: 2px; }
.window-btn {
  width: 28px; height: 28px; border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 13px; display: flex;
  align-items: center; justify-content: center; transition: all 0.12s;
  font-family: 'IBM Plex Sans', sans-serif;
}
.window-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.window-btn.close:hover { background: rgba(239,68,68,0.8); color: white; }

.window-body {
  flex: 1; overflow: auto; position: relative;
}

/* Resize handle */
.resize-handle {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px; cursor: nwse-resize;
}

/* Context menu */
.context-menu {
  position: fixed; min-width: 180px;
  background: rgba(18, 18, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; z-index: 99999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 4px; animation: menu-open 0.15s ease;
}
.context-item {
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  color: rgba(255,255,255,0.8); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.1s; border: none; background: transparent;
  width: 100%; text-align: left; font-family: 'IBM Plex Sans', sans-serif;
}
.context-item:hover { background: rgba(139,92,246,0.2); }
.context-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 8px; }

/* Calendar popup */
.calendar-popup {
  position: fixed; bottom: 52px; right: 4px;
  width: 280px; background: rgba(15, 15, 28, 0.95);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  z-index: 9500; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 16px; animation: menu-open 0.2s ease;
  color: white;
}
.cal-header { text-align: center; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-header { text-align: center; font-size: 10px; color: rgba(255,255,255,0.4); padding: 4px; font-weight: 600; }
.cal-day {
  text-align: center; padding: 6px 2px; font-size: 12px; border-radius: 6px;
  color: rgba(255,255,255,0.6);
}
.cal-day.today { background: var(--accent); color: white; font-weight: 600; }
.cal-day.empty { visibility: hidden; }

/* App-specific styles */

/* Terminal */
.terminal-body {
  background: #0a0a0f; color: #4ade80; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; padding: 12px; height: 100%; overflow-y: auto;
  line-height: 1.5;
}
.terminal-input-line { display: flex; align-items: center; gap: 0; }
.terminal-prompt { color: #8B5CF6; font-weight: 600; white-space: nowrap; }
.terminal-input {
  background: transparent; border: none; color: #4ade80; outline: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; flex: 1;
  caret-color: #4ade80; padding: 0; margin-left: 4px;
}
.terminal-output { white-space: pre-wrap; word-break: break-all; }

/* Notepad */
.notepad-menubar {
  display: flex; gap: 0; padding: 0 4px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 32px; align-items: center;
}
.notepad-menu-item {
  padding: 4px 10px; font-size: 12px; border: none; background: transparent;
  color: rgba(255,255,255,0.7); cursor: pointer; border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif; transition: background 0.1s;
}
.notepad-menu-item:hover { background: rgba(255,255,255,0.08); }
.notepad-textarea {
  width: 100%; height: calc(100% - 32px); background: rgba(10,10,18,0.8);
  color: rgba(255,255,255,0.85); border: none; outline: none; resize: none;
  padding: 12px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  line-height: 1.6;
}

/* Calculator */
.calc-display {
  background: rgba(0,0,0,0.3); padding: 20px 16px 12px;
  text-align: right; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.calc-expression { font-size: 13px; color: rgba(255,255,255,0.4); min-height: 18px; font-family: 'IBM Plex Mono', monospace; }
.calc-result { font-size: 36px; color: white; font-weight: 300; font-family: 'IBM Plex Mono', monospace; overflow: hidden; text-overflow: ellipsis; }
.calc-buttons {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px;
}
.calc-btn {
  padding: 16px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 18px; font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.1s; font-weight: 400;
}
.calc-btn-num { background: rgba(255,255,255,0.06); color: white; }
.calc-btn-num:hover { background: rgba(255,255,255,0.12); }
.calc-btn-op { background: rgba(139,92,246,0.15); color: #A78BFA; }
.calc-btn-op:hover { background: rgba(139,92,246,0.3); }
.calc-btn-eq { background: linear-gradient(135deg, #8B5CF6, #7C3AED); color: white; }
.calc-btn-eq:hover { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }
.calc-btn-fn { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); }
.calc-btn-fn:hover { background: rgba(255,255,255,0.08); }
.calc-btn:active { transform: scale(0.95); }

/* Settings */
.settings-sidebar {
  width: 160px; background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 8px; flex-shrink: 0;
}
.settings-tab {
  padding: 10px 12px; border-radius: 8px; border: none; background: transparent;
  color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer;
  width: 100%; text-align: left; font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.12s; display: flex; align-items: center; gap: 8px;
}
.settings-tab:hover { background: rgba(255,255,255,0.05); color: white; }
.settings-tab.active { background: rgba(139,92,246,0.15); color: white; }
.settings-content { flex: 1; padding: 20px; overflow-y: auto; }
.settings-section { margin-bottom: 24px; }
.settings-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-weight: 500; }
.settings-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.wallpaper-option {
  width: 64px; height: 40px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.wallpaper-option:hover { border-color: rgba(255,255,255,0.3); }
.wallpaper-option.active { border-color: var(--accent); box-shadow: 0 0 12px rgba(139,92,246,0.4); }

.color-option {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.color-option:hover { transform: scale(1.15); }
.color-option.active { border-color: white; box-shadow: 0 0 8px rgba(255,255,255,0.3); }

.toggle-switch {
  width: 44px; height: 24px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.15); position: relative; transition: background 0.2s;
  border: none;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border-radius: 50%; background: white; top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle-switch.on::after { transform: translateX(20px); }

/* Paint */
.paint-toolbar {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}
.paint-tool {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.1s;
}
.paint-tool:hover { background: rgba(255,255,255,0.08); color: white; }
.paint-tool.active { background: rgba(139,92,246,0.25); color: #A78BFA; }
.paint-color {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all 0.1s;
}
.paint-color:hover { transform: scale(1.1); }
.paint-color.active { border-color: white; }

/* File explorer */
.explorer-sidebar {
  width: 180px; background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 8px; flex-shrink: 0; overflow-y: auto;
}
.explorer-folder {
  padding: 8px 10px; border-radius: 6px; border: none; background: transparent;
  color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer;
  width: 100%; text-align: left; font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.1s; display: flex; align-items: center; gap: 8px;
}
.explorer-folder:hover { background: rgba(255,255,255,0.05); }
.explorer-folder.active { background: rgba(139,92,246,0.15); color: white; }
.explorer-breadcrumb {
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.explorer-files {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; padding: 12px;
}
.explorer-file {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px;
  border-radius: 8px; cursor: pointer; transition: background 0.1s;
}
.explorer-file:hover { background: rgba(255,255,255,0.06); }
.explorer-file-icon { font-size: 32px; margin-bottom: 4px; }
.explorer-file-name { font-size: 11px; color: rgba(255,255,255,0.7); text-align: center; word-break: break-all; }

/* Browser */
.browser-nav {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.browser-nav-btn {
  width: 28px; height: 28px; border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.browser-nav-btn:hover { background: rgba(255,255,255,0.08); color: white; }
.browser-url {
  flex: 1; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.7); font-size: 12px;
  padding: 0 10px; outline: none; font-family: 'IBM Plex Sans', sans-serif;
}
.browser-url:focus { border-color: var(--accent); }

/* Music player */
.music-player {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 24px; color: white;
}
.music-album-art {
  width: 160px; height: 160px; border-radius: 16px;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
}
.music-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.music-artist { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.music-progress {
  width: 100%; max-width: 300px; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; margin-bottom: 8px; cursor: pointer; position: relative;
}
.music-progress-bar {
  height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s;
}
.music-time { display: flex; justify-content: space-between; width: 100%; max-width: 300px; font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.music-controls { display: flex; align-items: center; gap: 16px; }
.music-ctrl-btn {
  border: none; background: transparent; color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 20px; transition: all 0.1s; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.music-ctrl-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.music-ctrl-btn.play {
  width: 52px; height: 52px; background: var(--accent); color: white; font-size: 24px;
}
.music-ctrl-btn.play:hover { background: var(--accent-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Mobile warning */
.mobile-warning {
  display: none; position: fixed; inset: 0; z-index: 999999;
  background: #0a0a14; color: white;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
}
@media (max-width: 768px) {
  .mobile-warning { display: flex; }
  .desktop { display: none; }
  .taskbar { display: none; }
  .start-menu { display: none; }
}

/* Shutdown animation */
.shutdown-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: #0a0a14; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  color: white; animation: fade-in 0.5s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Light mode overrides */
.light-mode .taskbar { background: rgba(240, 240, 248, 0.85); border-top-color: rgba(0,0,0,0.06); }
.light-mode .start-btn:hover { background: rgba(0,0,0,0.06); }
.light-mode .taskbar-app { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.7); }
.light-mode .taskbar-app:hover { background: rgba(0,0,0,0.08); }
.light-mode .taskbar-app.active { background: rgba(139,92,246,0.1); }
.light-mode .system-tray { color: rgba(0,0,0,0.6); }
.light-mode .tray-icon:hover, .light-mode .tray-clock:hover { background: rgba(0,0,0,0.06); }

.light-mode .start-menu { background: rgba(248, 248, 252, 0.95); border-color: rgba(0,0,0,0.08); }
.light-mode .start-menu-search { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.06); color: #111; }
.light-mode .start-menu-search::placeholder { color: rgba(0,0,0,0.3); }
.light-mode .start-menu-user-name { color: #111; }
.light-mode .start-menu-app { color: #222; }
.light-mode .start-menu-app:hover { background: rgba(0,0,0,0.05); }
.light-mode .start-menu-footer { border-top-color: rgba(0,0,0,0.06); }
.light-mode .power-btn { color: rgba(0,0,0,0.5); }
.light-mode .power-btn:hover { background: rgba(0,0,0,0.05); color: #222; }

.light-mode .window { background: rgba(248, 248, 252, 0.97); border-color: rgba(0,0,0,0.08); }
.light-mode .window-titlebar { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .window-titlebar-left { color: rgba(0,0,0,0.7); }
.light-mode .window-btn { color: rgba(0,0,0,0.4); }
.light-mode .window-btn:hover { background: rgba(0,0,0,0.06); color: #222; }

.light-mode .context-menu { background: rgba(248, 248, 252, 0.97); border-color: rgba(0,0,0,0.08); }
.light-mode .context-item { color: rgba(0,0,0,0.7); }
.light-mode .context-item:hover { background: rgba(139,92,246,0.1); }
.light-mode .context-sep { background: rgba(0,0,0,0.06); }

.light-mode .calendar-popup { background: rgba(248,248,252,0.97); border-color: rgba(0,0,0,0.08); color: #111; }
.light-mode .cal-day-header { color: rgba(0,0,0,0.4); }
.light-mode .cal-day { color: rgba(0,0,0,0.6); }

.light-mode .desktop-icon-label { color: #222; text-shadow: 0 1px 3px rgba(255,255,255,0.8); }

.light-mode .notepad-textarea { background: rgba(255,255,255,0.9); color: #222; }
.light-mode .notepad-menubar { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .notepad-menu-item { color: rgba(0,0,0,0.6); }
.light-mode .notepad-menu-item:hover { background: rgba(0,0,0,0.05); }

.light-mode .calc-display { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .calc-result { color: #111; }
.light-mode .calc-expression { color: rgba(0,0,0,0.4); }
.light-mode .calc-btn-num { background: rgba(0,0,0,0.04); color: #222; }
.light-mode .calc-btn-num:hover { background: rgba(0,0,0,0.08); }
.light-mode .calc-btn-fn { background: rgba(0,0,0,0.02); color: rgba(0,0,0,0.5); }
.light-mode .calc-btn-fn:hover { background: rgba(0,0,0,0.06); }

.light-mode .settings-sidebar { background: rgba(0,0,0,0.02); border-right-color: rgba(0,0,0,0.04); }
.light-mode .settings-tab { color: rgba(0,0,0,0.5); }
.light-mode .settings-tab:hover { background: rgba(0,0,0,0.04); color: #222; }
.light-mode .settings-tab.active { background: rgba(139,92,246,0.1); color: #222; }
.light-mode .settings-content { color: #222; }
.light-mode .settings-label { color: rgba(0,0,0,0.5); }

.light-mode .explorer-sidebar { background: rgba(0,0,0,0.02); border-right-color: rgba(0,0,0,0.04); }
.light-mode .explorer-folder { color: rgba(0,0,0,0.6); }
.light-mode .explorer-folder.active { background: rgba(139,92,246,0.1); color: #222; }
.light-mode .explorer-breadcrumb { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); color: rgba(0,0,0,0.5); }
.light-mode .explorer-file-name { color: rgba(0,0,0,0.6); }

.light-mode .browser-nav { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .browser-url { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.7); }
.light-mode .browser-nav-btn { color: rgba(0,0,0,0.4); }
.light-mode .browser-nav-btn:hover { background: rgba(0,0,0,0.06); color: #222; }

.light-mode .paint-toolbar { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); }
.light-mode .paint-tool { color: rgba(0,0,0,0.5); }
.light-mode .paint-tool:hover { background: rgba(0,0,0,0.06); color: #222; }
.light-mode .paint-tool.active { background: rgba(139,92,246,0.15); color: #7C3AED; }

.light-mode .music-player { color: #222; }
.light-mode .music-artist { color: rgba(0,0,0,0.4); }
.light-mode .music-progress { background: rgba(0,0,0,0.08); }
.light-mode .music-time { color: rgba(0,0,0,0.35); }
.light-mode .music-ctrl-btn { color: rgba(0,0,0,0.6); }
.light-mode .music-ctrl-btn:hover { color: #222; background: rgba(0,0,0,0.06); }