/* Wallpaper background layer */
#wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  background-image: url('wallpapers/wallpaper.jpg'); /* Replace with your image path */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto; /* Keeps the original resolution */
  z-index: -1;
}

/* Body layout */
body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
}

/* Topbar */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-weight: bold;
  z-index: 100;
}

/* Desktop icons */
#desktop-icons {
  position: absolute;
  top: 40px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#desktop-icons .icon {
  width: 60px;
  text-align: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

#desktop-icons .icon img {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 4px;
}

/* Taskbar / Dock */
#taskbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.taskbar-button {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: white;
  font-size: 12px;
}

.taskbar-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* Windows */
.window {
  position: absolute;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 6px;
  overflow: hidden;
  min-width: 300px;
  min-height: 150px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.titlebar {
  background: linear-gradient(to bottom, #ccc, #999);
  padding: 4px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titlebar button {
  background: #e74c3c;
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 20px;
}

.content {
  padding: 10px;
}

.window.minimized {
  display: none;
}

.window.fullscreen {
  top: 32px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 52px) !important;
  z-index: 99 !important;
}

.titlebar button.minimize {
  background: #f1c40f;
}

.titlebar button.fullscreen {
  background: #2ecc71;
  margin-left: 4px;
}


