* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tahoma', sans-serif;
  user-select: none;
}

body {
  overflow: hidden;
}

.desktop {
  width: 100vw;
  height: 100vh;
  background-image: url('/windows_xp_home_edition_grey_wallpaper_by_sambox436_dfw0k4j-fullview.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Icons */
.icons {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
}

.icon:hover {
  background-color: rgba(49, 106, 197, 0.1);
  border: 1px solid rgba(49, 106, 197, 0.4);
}

.icon.active {
  background-color: rgba(49, 106, 197, 0.3);
  border: 1px solid rgba(49, 106, 197, 0.6);
}

.icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.icon span {
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  font-size: 11px;
}

/* Taskbar */
.taskbar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(180deg, #2A5EB9 0%, #3C8BD9 50%, #2F71CB 100%);
  display: flex;
  align-items: center;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.start-button {
  height: 100%;
  padding: 2px 5px;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
}

.start-button img {
  height: 25px;
}

.start-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.start-button.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.made-by-text {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  white-space: nowrap;
}

.taskbar-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
}

.taskbar-items {
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
}

.taskbar-item {
  display: flex;
  align-items: center;
  height: 22px;
  min-width: 150px;
  padding: 0 10px;
  margin-right: 2px;
  background: linear-gradient(180deg, #3C8BD9 0%, #2F71CB 100%);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-item.active {
  background: linear-gradient(180deg, #2A5EB9 0%, #3C8BD9 100%);
}

.taskbar-item:hover:not(.active) {
  background: linear-gradient(180deg, #3582D0 0%, #3A8ED8 100%);
}

.taskbar-item img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.taskbar-item span {
  color: white;
  font-size: 11px;
}

.taskbar-time {
  padding: 0 10px;
  color: white;
  font-size: 11px;
}

/* Start Menu */
.start-menu {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 320px;
  background: linear-gradient(135deg, #346AC3 0%, #346AC3 30%, #3C7FB1 30%, #3C7FB1 100%);
  border-radius: 0 8px 0 0;
  box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
}

.start-menu.active {
  display: block;
}

.start-header {
  background-color: #225DBC;
  border-radius: 0 8px 0 0;
  padding: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.user-info span {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.start-items {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 40px;
}

.start-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}

.start-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.start-item img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.start-item span {
  color: white;
  font-size: 12px;
}

.separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 5px 0;
}

/* Windows */
.window {
  position: absolute;
  background-color: #ECE9D8;
  border: 1px solid #0054E3;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  min-height: 200px;
  overflow: hidden;
  /* Aero Glass Effect */
  background-color: rgba(236, 233, 216, 0.9); /* Semi-transparent background */
  backdrop-filter: blur(5px); /* Apply blur effect */
  border-radius: 8px; /* Slightly more rounded corners for modern look */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Softer shadow */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
}

.window-header {
  background: linear-gradient(180deg, #0058E6 0%, #3C8BD9 50%, #0054E3 100%);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  color: white;
  font-size: 12px;
  border-radius: 8px 8px 0 0;
  /* Aero Glass Header */
  background: linear-gradient(180deg, rgba(0, 88, 230, 0.8) 0%, rgba(60, 139, 217, 0.8) 50%, rgba(0, 84, 227, 0.8) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-title img {
  width: 16px;
  height: 16px;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-control {
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 3px;
  /* Aero Glass Controls */
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s, border-color 0.2s;
}

.window-control:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.window-control.close:hover {
  background-color: #E81123;
}

.window-content {
  padding: 10px;
  height: calc(100% - 40px);
  overflow: auto;
}

.window.minimized {
  display: none;
}

/* Cursor */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background-image: url('/167-1676317_transparent-cursor-windows-xp-windows-xp-mouse-pointer.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-10px, -10px);
}

/* Notepad */
.notepad-content {
  width: 100%;
  height: 100%;
  resize: none;
  border: 1px solid #999;
  background-color: white;
  padding: 5px;
  font-family: 'Lucida Console', monospace;
  font-size: 12px;
  outline: none;
}

.notepad-toolbar {
  display: flex;
  padding: 5px;
  background-color: #ECE9D8;
  border-bottom: 1px solid #ACA899;
}

.notepad-download-btn {
  padding: 2px 8px;
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ACA899;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.notepad-download-btn:hover {
  background: linear-gradient(180deg, #E5E5E5 0%, #D5D5D5 100%);
}

/* Paint */
.paint-canvas {
  background-color: white;
  cursor: crosshair;
  touch-action: none;
}

.paint-toolbar {
  display: flex;
  gap: 5px;
  padding: 5px;
  background-color: #ECE9D8;
  border-bottom: 1px solid #ACA899;
}

.paint-tool {
  width: 24px;
  height: 24px;
  border: 1px solid #ACA899;
  background-color: #F5F5F5;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paint-tool:hover {
  background-color: #E5E5E5;
}

.paint-tool.active {
  background-color: #D5D5D5;
  border: 1px solid #0054E3;
}

/* Calculator */
.calculator-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 10px;
}

.calculator-display {
  grid-column: span 4;
  background-color: white;
  border: 1px solid #ACA899;
  text-align: right;
  padding: 5px;
  margin-bottom: 10px;
  font-family: 'Digital', sans-serif;
  font-size: 18px;
}

.calc-button {
  padding: 10px;
  background-color: #F5F5F5;
  border: 1px solid #ACA899;
  cursor: pointer;
  font-size: 12px;
}

.calc-button:hover {
  background-color: #E5E5E5;
}

.calc-button:active {
  background-color: #D5D5D5;
}

/* Internet Explorer */
.ie-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ie-toolbar {
  display: flex;
  padding: 5px;
  background-color: #ECE9D8;
  border-bottom: 1px solid #ACA899;
  align-items: center;
}

.ie-address-bar {
  display: flex;
  align-items: center;
  padding: 5px;
  background-color: #ECE9D8;
  border-bottom: 1px solid #ACA899;
}

.ie-address-bar span {
  margin-right: 5px;
  font-size: 11px;
}

.ie-address-bar input {
  flex-grow: 1;
  padding: 2px 5px;
  border: 1px solid #ACA899;
  font-size: 11px;
}

.ie-browser {
  flex-grow: 1;
  border: none;
  background-color: white;
}

/* Shutdown dialog */
.shutdown-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ECE9D8;
  border: 1px solid #0054E3;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 20px;
  width: 300px;
  z-index: 2000;
  display: none;
}

.shutdown-dialog h2 {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.shutdown-options {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.shutdown-btn {
  padding: 5px 15px;
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ACA899;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.shutdown-btn:hover {
  background: linear-gradient(180deg, #E5E5E5 0%, #D5D5D5 100%);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

/* Boot Screen */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 1s ease-out;
}

.boot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-logo img {
  width: 200px;
  margin-bottom: 50px;
}

.loading-bar {
  width: 300px;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background-color: #078AD8;
  transition: width 3s ease-in-out;
}