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

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  overflow: hidden;
}

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

.background-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: rgba(255,255,255,0.15);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.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: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  user-select: none;
  cursor: url("img/hover.png"), pointer;
}

.program-btn.dragging {
  cursor: grabbing;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transform: scale(1.05);
  z-index: 50;
}

.program-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.program-label {
  margin-top: 5px;
  font-size: 12px;
  word-wrap: break-word;
}

.taskbar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
}

#home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  cursor: pointer;
  background: linear-gradient(to bottom, #f3f3f3, #e6e6e6);
  border-radius: 4px;
  border: 1px solid #cfcfcf;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.1s;
  cursor: url("img/hover.png"), pointer;
  margin-right: 20px;
}

#home-btn:hover {
  background: linear-gradient(to bottom, #e6e6e6, #dcdcdc);
  transform: translateY(-1px);
}

#home-btn:active {
  background: linear-gradient(to bottom, #dcdcdc, #cfcfcf);
  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 {
  width: 6px;
  height: 6px;
}

#home-btn .logo div:nth-child(1),
#home-btn .logo div:nth-child(4),
#home-btn .logo div:nth-child(7) {
  background-color: #8e44ad;
}

#home-btn .logo div:nth-child(2),
#home-btn .logo div:nth-child(5),
#home-btn .logo div:nth-child(8) {
  background-color: #a569bd;
}

#home-btn .logo div:nth-child(3),
#home-btn .logo div:nth-child(6),
#home-btn .logo div:nth-child(9) {
  background-color: #bb8fce;
}


#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: 4px;
  border: 1px solid #ccc;
  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: white;
  border: 1px solid #333;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  z-index: 10;
  display: flex;
  flex-direction: column;
  resize: both;
  overflow: hidden;
  border-radius: 4px;
}

.window-header {
  background: #6a0dad;
  color: white;
  padding: 5px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  -webkit-user-drag: 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: #8e44ad;
}

.window-close:hover {
  background-color: red;
}

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

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

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

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

.browser-header {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #f1f3f4;
  border-bottom: 1px solid #dcdcdc;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
  position: relative;
}

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

.browser-url {
  flex-grow: 1;
  height: 30px;
  border: none;
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dadce0;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.browser-url:focus {
  box-shadow: inset 0 0 0 2px #4285f4;
}

.browser-go {
  margin-left: 8px;
  padding: 6px 14px;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.browser-go:hover {
  background: #357ae8;
}

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

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 6px 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: #f1f3f4;
}

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0d2e 0%, #2c0f4c 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #fff;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

#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;
  color: #d1c4ff;
  font-family: 'Tahoma', 'Verdana', sans-serif;
  text-shadow: 2px 2px 4px #000;
}

#boot-bar-container {
  width: 50%;
  height: 20px;
  border: 2px solid #d1c4ff;
  background: #3a1f5c;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 20px;
}

#boot-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #aa80ff, #d1c4ff);
  transition: width 0.1s linear;
}

#boot-text {
  font-size: 18px;
  color: #d1c4ff;
  font-family: 'Tahoma', 'Verdana', sans-serif;
  text-shadow: 1px 1px 0 #000;
  animation: blink 1s infinite;
}

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

#jp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  cursor: pointer;
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.1s;
  cursor: url("img/hover.png"), pointer;
  margin-right: 10px;
  color: #333;
  font-weight: bold;
}

#jp-btn:hover {
  background: linear-gradient(to bottom, #fdfdfd, #e9e9e9);
  transform: translateY(-1px);
}

#jp-btn:active {
  background: linear-gradient(to bottom, #e9e9e9, #dcdcdc);
  transform: translateY(1px);
}

#jp-btn .logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 6px;
  background: red;
}
