body {
  cursor: url("img/wd.png"), auto;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
  background: #fafafa;
  overflow: hidden;
  color: #222;
}

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

.programs {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.program-btn {
  width: 100px;
  margin: 10px auto;
  text-align: center;
  cursor: grab;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  user-select: none;
  cursor: url("img/hover.png"), pointer;
  background: transparent;
  border-radius: 10px;
}

.program-btn.dragging {
  cursor: grabbing;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  transform: scale(1.05);
  z-index: 50;
  background: #fff;
}

.program-btn:hover {
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transform: scale(1.08);
}

.program-btn img {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
}

.program-label {
  margin-top: 6px;
  font-size: 12px;
  word-wrap: break-word;
  color: #222;
}

.taskbar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  cursor: pointer;
  background: #ba1a1a;
  border-radius: 10px;
  border: none;
  color: white;
  transition: background 0.2s, transform 0.1s;
  cursor: url("img/hover.png"), pointer;
  margin-right: 20px;
}

#home-btn:hover {
  background: #9e1414;
  transform: translateY(-1px);
}

#home-btn:active {
  transform: translateY(1px);
}

#home-btn .logo {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 2px;
  margin-right: 6px;
}

#home-btn .logo div {
  background-color: white;
}

#taskbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

#search-bar {
  width: 200px;
  height: 25px;
  padding: 2px 5px;
  text-align: center;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  cursor: url("img/highlight.png"), pointer;
}

#open-programs {
  display: flex;
  gap: 5px;
}

.taskbar-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.window {
  position: absolute;
  width: 500px;
  height: 300px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  z-index: 10;
  display: flex;
  flex-direction: column;
  resize: both;
  overflow: hidden;
  border-radius: 12px;
  color: #222;
}

.window-header {
  background: #ba1a1a;
  color: white;
  padding: 5px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  cursor: grab;
}

.window-header:active {
  cursor: grabbing;
}

.window-header span {
  font-weight: bold;
}

.window-buttons {
  display: flex;
  gap: 5px;
}

.window-button, .window-minimize, .window-maximize, .window-close {
  cursor: pointer;
  padding: 0 5px;
  font-size: 14px;
  user-select: none;
}

.window-minimize:hover, .window-maximize:hover {
  background-color: rgba(255,255,255,0.2);
}

.window-close:hover {
  background-color: rgba(255,0,0,0.6);
}

.window-content {
  flex-grow: 1;
  overflow: auto;
  border-top: 1px solid #eee;
  width: 100%;
  color: #222;
}

#text-editor {
  width: 100%;
  height: calc(100% - 30px);
  border: none;
  padding: 5px;
  box-sizing: border-box;
  font-family: monospace;
  resize: none;
  outline: none;
  background: transparent;
  color: #222;
}

#save-text {
  width: 100%;
  height: 30px;
  border: none;
  background: #ba1a1a;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.browser-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.browser-header {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

.browser-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  opacity: 0.8;
}

.browser-url {
  flex-grow: 1;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: #222;
}

.browser-go {
  margin-left: 8px;
  padding: 6px 14px;
  background: #ba1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.browser-content {
  flex-grow: 1;
  border: none;
  background: transparent;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 14px;
  z-index: 1000;
  display: none;
}

.autocomplete-dropdown div {
  padding: 8px 12px;
  cursor: pointer;
}

.autocomplete-dropdown div:hover,
.autocomplete-dropdown div.active {
  background: #f5f5f5;
}

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #222;
}

#boot-logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

#boot-logo {
  width: 100px;
  margin-right: 20px;
}

#boot-title {
  font-size: 40px;
  font-weight: bold;
}

#boot-bar-container {
  width: 50%;
  height: 20px;
  border: 2px solid #ddd;
  background: #fff;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

#boot-bar {
  width: 0%;
  height: 100%;
  background: #ba1a1a;
  transition: width 0.1s linear;
}

#boot-text {
  font-size: 18px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

#fullscreen-btn {
  height: 32px;
  padding: 0 10px;
  margin-right: 10px;
  border: none;
  border-radius: 8px;
  background: #eee;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, transform 0.1s;
}

#fullscreen-btn:hover {
  background: #ddd;
  transform: translateY(-1px);
}

#fullscreen-btn:active {
  transform: translateY(1px);
}