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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

#desktop {
  width: 100vw;
  height: 100vh;
  background: url('Wn3Dygb.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

.desktop-icons {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 20px;
}

.icon {
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.icon.dragging {
  opacity: 0.5;
}

.icon.drop-hover {
  background: rgba(100, 200, 255, 0.3);
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.7);
}

.icon.deleting {
  transform: scale(0.5);
  opacity: 0;
}

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

.icon span {
  color: white;
  text-align: center;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.virus-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  position: relative;
}

.virus-icon:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 0, 0, 0.15);
  border-radius: 4px;
  animation: pulse 2s infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.6; }
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, 
    rgba(31,47,61,0.95) 0%,
    rgba(43,61,77,0.95) 50%,
    rgba(31,47,61,0.95) 100%);
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.3);
}

#pinned-apps {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.pinned-item {
  width: 32px;
  height: 32px;
  margin-right: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pinned-item:hover {
  transform: scale(1.1);
}

#start-button {
  width: 60px;
  height: 34px;
  margin: 3px 5px 3px 0;
  background: linear-gradient(180deg,
    #40628d 0%,
    #375a82 44%,
    #284866 45%,
    #1c3a58 100%);
  border: 1px solid #12233d;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#start-button:hover {
  background: linear-gradient(180deg,
    #5181b4 0%,
    #4771a5 44%,
    #365c89 45%,
    #294b7b 100%);
}

#start-button:active {
  background: linear-gradient(180deg,
    #284866 0%,
    #1c3a58 100%);
}

#start-button img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

#taskbar-programs {
  flex: 1;
  display: flex;
  margin: 0 10px;
}

.taskbar-item {
  height: 34px;
  padding: 0 10px;
  margin: 3px 2px;
  background: linear-gradient(180deg,
    rgba(93,140,191,0.1) 0%,
    rgba(93,140,191,0.2) 44%,
    rgba(47,100,155,0.2) 45%,
    rgba(47,100,155,0.3) 100%);
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  font-size: 12px;
  min-width: 160px;
}

.taskbar-item:hover {
  background: linear-gradient(180deg,
    rgba(93,140,191,0.3) 0%,
    rgba(93,140,191,0.4) 44%,
    rgba(47,100,155,0.2) 45%,
    rgba(47,100,155,0.5) 100%);
}

.taskbar-item.active {
  background: linear-gradient(180deg,
    rgba(93,140,191,0.4) 0%,
    rgba(93,140,191,0.5) 44%,
    rgba(47,100,155,0.5) 45%,
    rgba(47,100,155,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.2);
}

#system-tray {
  display: flex;
  align-items: center;
  background: rgba(31,47,61,0.5);
  padding: 0 10px;
  height: 100%;
  border-left: 1px solid rgba(255,255,255,0.1);
}

#clock {
  padding: 0 10px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.window {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 150px;
  border-radius: 6px 6px 0 0;
}

.window-header {
  background: linear-gradient(to bottom, 
    #f9fbfd 0%,
    #e4ecf4 11%,
    #c6d7e8 38%,
    #c3d5e7 39%,
    #c0d4e7 46%,
    #b5cce3 47%,
    #c3d5e8 50%,
    #abc5e0 54%,
    #adc6e1 100%
  );
  padding: 4px 8px;
  color: #000;
  display: flex;
  align-items: center;
  cursor: move;
  height: 30px;
  border-radius: 5px 5px 0 0;
}

.window:not(:active) .window-header {
  background: linear-gradient(to bottom,
    #f3f5f7 0%,
    #e6e9ed 13%,
    #ced4dc 39%,
    #ced3dc 40%,
    #c9d0d9 47%,
    #c8cfd8 48%,
    #c6cdd7 50%,
    #c0c7d2 100%
  );
}

.window-title {
  flex: 1;
  font-size: 12px;
  margin-left: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.window-controls span {
  width: 44px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.2) 49%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.1) 100%
  );
  border: 1px solid rgba(0,0,0,0.2);
  color: #000;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
}

.window-controls span:hover {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.4) 49%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.2) 100%
  );
}

.window-controls span:last-child {
  width: 44px;
  font-size: 16px;
  font-weight: bold;
}

.window-controls span:last-child:hover {
  background: linear-gradient(to bottom,
    #f26868 0%,
    #e64747 49%,
    #dc2f2f 50%,
    #dc2f2f 100%
  );
  border-color: #8a1111;
  color: white;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.window-content {
  flex: 1;
  padding: 1px;
  overflow: auto;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.2);
  border-right: 1px solid rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.window-content iframe {
  background: white;
  border: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}

#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 380px;
  height: 480px;
  background: rgba(31,47,61,0.98);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px 4px 0 0;
  display: flex;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#start-menu.hidden {
  display: none;
}

.start-menu-left {
  flex: 2;
  padding: 15px;
  background: rgba(47,100,155,0.2);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.start-menu-left input {
  width: 100%;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  color: white;
  font-size: 12px;
}

.start-menu-left input::placeholder {
  color: rgba(255,255,255,0.5);
}

.program-list {
  margin-top: 15px;
  color: white;
}

.program-item {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  margin: 2px 0;
}

.program-item:hover {
  background: linear-gradient(90deg,
    rgba(93,140,191,0.3) 0%,
    rgba(93,140,191,0.1) 100%);
}

.program-item img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.program-item span {
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.start-menu-right {
  flex: 1;
  padding: 15px;
  background: rgba(0,0,0,0.2);
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.profile-picture {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.2);
}

.profile-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.8;
}

#startup-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 1s ease-out;
}

.startup-content {
  position: relative;
  z-index: 1;
}

.startup-content svg {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.startup-content h1 {
  font-size: 24px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.startup-content p {
  font-size: 16px;
  margin-top: 10px;
  color: white;
}

.glowing-logo {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 162, 232, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 162, 232, 1));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 162, 232, 0.5));
  }
}

#startup-screen.fade-out {
  opacity: 0;
}

.calculator-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calc-menu {
  display: flex;
  padding: 2px 5px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.calc-menu .menu-item {
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.calc-menu .menu-item:hover {
  background: #e0e0e0;
}

.calc-display {
  text-align: right;
  padding: 10px;
  font-size: 24px;
  margin: 10px;
  background: #fff;
  border: 1px solid #ccc;
  height: 45px;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 5px;
}

.calc-btn {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
  cursor: pointer;
  height: 35px;
  border-radius: 3px;
}

.calc-btn:hover {
  background: linear-gradient(to bottom, #e9e9e9, #d9d9d9);
}

.calc-btn.memory {
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  color: #666;
}

.calc-btn.operator {
  background: linear-gradient(to bottom, #f6f6f6, #e6e6e6);
}

.calc-btn.equals {
  background: linear-gradient(to bottom, #a5d3fd, #76b8f3);
  color: #fff;
}

.calc-btn.equals:hover {
  background: linear-gradient(to bottom, #76b8f3, #4d9ceb);
}

.notepad-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
}

.notepad-menu {
  display: flex;
  padding: 2px 5px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.notepad-menu .menu-item {
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.notepad-menu .menu-item:hover {
  background: #e0e0e0;
}

.notepad-textarea {
  flex: 1;
  padding: 5px;
  resize: none;
  border: none;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  background: white;
}

.notepad-textarea:focus {
  outline: none;
}

.computer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.computer-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.browser-toolbar {
  padding: 5px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.url-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.url-bar {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 5px;
  font-size: 14px;
}

.go-button {
  padding: 5px 10px;
  background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

.go-button:hover {
  background: linear-gradient(to bottom, #e9e9e9, #d9d9d9);
}

.browser-content {
  flex: 1;
  position: relative;
}

.virus-item {
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.virus-item:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.virus-item img, 
.virus-item svg {
  display: block;
  margin: 0 auto 10px auto;
}

.virus-item::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  background: #ff0000;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: blink 1s infinite;
}

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

@keyframes bounce {
  0% { transform: translate(0, 0); }
  25% { transform: translate(10px, 10px); }
  50% { transform: translate(0, 20px); }
  75% { transform: translate(-10px, 10px); }
  100% { transform: translate(0, 0); }
}

.bouncing {
  animation: bounce 0.5s infinite;
}

@keyframes flash {
  0%!impo  { background: black; }
  50% { background: white; }
  100% { background: black; }
}

.flashing {
  animation: flash 0.5s infinite;
}

.virus-warning {
  border: 2px dashed red;
  background: #ffeeee;
  color: red;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  position: relative;
}

.virus-warning::before,
.virus-warning::after {
  content: '⚠️';
  margin: 0 5px;
}

.virus-collection-container {
  background: #f8f8f8;
  background-image: linear-gradient(45deg, #f8f8f8 25%, #f2f2f2 25%, #f2f2f2 50%, #f8f8f8 50%, #f8f8f8 75%, #f2f2f2 75%, #f2f2f2 100%);
  background-size: 20px 20px;
  border: 1px solid #ddd;
  height: 100%;
  overflow-y: auto;
}

.virus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 15px;
}

.context-menu {
  position: absolute;
  background: #f0f0f0;
  border: 1px solid #999;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  z-index: 2000;
  min-width: 150px;
}

.menu-item {
  padding: 5px 15px;
  cursor: pointer;
}

.menu-item:hover {
  background: #e0e0e0;
}

.menu-separator {
  height: 1px;
  background: #ccc;
  margin: 3px 0;
}

.windows-notification {
  position: fixed;
  right: 10px;
  bottom: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  max-width: 300px;
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

.windows-notification.show {
  transform: translateX(0);
}

.notification-icon {
  margin-right: 10px;
}

.notification-message {
  flex: 1;
}

.recover-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: white;
  margin-top: 10px;
}

.recover-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.recover-item:hover {
  background-color: #f5f5f5;
}

.recover-item.recovered {
  background-color: #e6ffe6;
  opacity: 0.5;
}

.recover-btn {
  margin-left: auto;
  padding: 3px 8px;
  background: linear-gradient(to bottom, #f9f9f9, #e0e0e0);
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

.recover-btn:hover {
  background: linear-gradient(to bottom, #e9e9e9, #d0d0d0);
}

#multiplayer-cursors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
}