* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #f8fafc;
}

/* Desktop workspace */
.desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 50px);
  padding: 20px;
}

/* Desktop Icons */
.desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icon-img {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-bottom: 4px;
}

/* Floating App Window */
.window {
  width: 580px;
  height: 380px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  position: absolute;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.window-header {
  background-color: rgba(30, 41, 59, 0.6);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  cursor: move;
}

.window-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title {
  font-size: 13px;
  color: #cbd5e1;
  margin-left: 8px;
  font-weight: 500;
}

.window-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.notepad-body textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  resize: none;
}

.settings-body {
  font-family: 'Segoe UI', sans-serif;
  color: #e2e8f0;
}

.os-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.welcome-text { color: #34d399; }
.highlight { color: #34d399; font-weight: bold; }

.input-line {
  display: flex;
  padding: 12px 16px;
  background-color: rgba(15, 23, 42, 0.9);
  font-family: monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt {
  color: #34d399;
  margin-right: 8px;
  font-weight: bold;
}

#command-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  flex: 1;
}

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 380px;
  height: 320px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.start-menu.open {
  display: flex;
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.start-header {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 15px;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.start-app {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.start-app:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Modern Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 50px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 1000;
}

.taskbar-center {
  display: flex;
  gap: 8px;
  align-items: center;
}

.start-btn, .task-icon {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.start-btn:hover, .task-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.taskbar-right {
  display: flex;
  align-items: center;
  padding-right: 5px;
}

.clock {
  font-size: 12px;
  color: #e2e8f0;
  font-family: monospace;
}
