/* ========================================
   Windows XP Style CSS
   Authentic Windows XP Recreation
   ======================================== */

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Tahoma", "Segoe UI", sans-serif;
  font-size: 11px;
}

/* ========================================
   BOOT SCREEN
   ======================================== */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}

.boot-content {
  text-align: center;
}

.pump-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.pump-logo-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pump-text {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 3px;
}

.boot-loader {
  margin-bottom: 40px;
}

.loader-blocks {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.loader-block {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #4a9eff 0%, #0052cc 100%);
  animation: loaderMove 1.5s infinite;
}

.loader-block:nth-child(1) { animation-delay: 0s; }
.loader-block:nth-child(2) { animation-delay: 0.2s; }
.loader-block:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderMove {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.boot-copyright {
  color: #666;
  font-size: 10px;
  position: absolute;
  bottom: 30px;
}

.click-to-start {
  position: absolute;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.boot-start-btn {
  padding: 18px 60px;
  font-size: 24px;
  font-weight: bold;
  font-family: "Tahoma", sans-serif;
  letter-spacing: 4px;
  color: white;
  background: linear-gradient(180deg, 
    #5cb85c 0%, 
    #4cae4c 20%, 
    #3d9f3d 50%, 
    #2d8f2d 80%, 
    #1e7e1e 100%
  );
  border: 3px solid #1a6b1a;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.5),
    0 0 40px rgba(92, 184, 92, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { 
    box-shadow: 
      0 6px 20px rgba(0,0,0,0.5),
      0 0 40px rgba(92, 184, 92, 0.4),
      inset 0 2px 0 rgba(255,255,255,0.3),
      inset 0 -2px 0 rgba(0,0,0,0.2);
  }
  50% { 
    box-shadow: 
      0 6px 20px rgba(0,0,0,0.5),
      0 0 60px rgba(92, 184, 92, 0.7),
      0 0 80px rgba(92, 184, 92, 0.3),
      inset 0 2px 0 rgba(255,255,255,0.3),
      inset 0 -2px 0 rgba(0,0,0,0.2);
  }
}

.boot-start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.boot-start-btn:hover {
  background: linear-gradient(180deg, 
    #6cc86c 0%, 
    #5cbe5c 20%, 
    #4cae4c 50%, 
    #3d9f3d 80%, 
    #2d8f2d 100%
  );
  transform: scale(1.05);
  box-shadow: 
    0 8px 30px rgba(0,0,0,0.6),
    0 0 60px rgba(92, 184, 92, 0.6),
    0 0 100px rgba(92, 184, 92, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.2);
}

.boot-start-btn:hover .boot-btn-text {
  animation: glitch 0.3s infinite;
}

.boot-start-btn:active {
  transform: scale(0.98);
  background: linear-gradient(180deg, 
    #2d8f2d 0%, 
    #1e7e1e 50%, 
    #0f6f0f 100%
  );
}

.boot-btn-text {
  position: relative;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.5),
    0 0 20px rgba(255,255,255,0.3);
}

.boot-hint {
  color: #666;
  font-size: 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   DESKTOP - BLISS WALLPAPER
   ======================================== */
.desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 30px;
  /* Windows XP Bliss wallpaper */
  background: url('bliss.jpg') center center / cover no-repeat;
  background-color: #3a6ea5; /* Fallback color */
}

/* ========================================
   DESKTOP ICONS
   ======================================== */
.desktop-icons {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 5px;
  height: 100%;
  align-content: flex-start;
  position: relative;
}

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

.desktop-icon:hover {
  background: rgba(11, 97, 255, 0.2);
  border: 1px dotted rgba(11, 97, 255, 0.5);
}

.desktop-icon.selected {
  background: rgba(11, 97, 255, 0.4);
  border: 1px dotted #0b61ff;
}

.icon-img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.icon-text {
  color: white;
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 1px #000, 1px 1px 2px #000;
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 70px;
}

/* ========================================
   TASKBAR
   ======================================== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, 
    #3168d5 0%, 
    #4993E4 3%, 
    #2157D7 6%, 
    #1941A5 10%, 
    #1941A5 90%, 
    #1C3D91 95%,
    #1C3D91 100%
  );
  display: flex;
  align-items: center;
  z-index: 9000;
  border-top: 1px solid #0c3ce8;
}

.start-button {
  height: 34px;
  padding: 0 15px 0 5px;
  border: none;
  background: linear-gradient(180deg, 
    #5cb85c 0%, 
    #4cae4c 20%, 
    #3d9f3d 50%, 
    #2d8f2d 80%, 
    #1e7e1e 100%
  );
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 10px 10px 0;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  border: 1px solid #1a6b1a;
  border-left: none;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.start-button:hover {
  background: linear-gradient(180deg, 
    #6cc86c 0%, 
    #5cbe5c 20%, 
    #4cae4c 50%, 
    #3d9f3d 80%, 
    #2d8f2d 100%
  );
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 15px rgba(92, 184, 92, 0.5);
}

.start-button:active {
  background: linear-gradient(180deg, 
    #2d8f2d 0%, 
    #1e7e1e 50%, 
    #0f6f0f 100%
  );
  transform: scale(0.98);
}

.start-logo {
  height: 26px;
  width: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.start-text {
  color: white;
  font-weight: bold;
  font-size: 14px;
  font-style: italic;
  text-shadow: 
    1px 1px 2px rgba(0,0,0,0.5),
    0 0 10px rgba(255,255,255,0.3);
  letter-spacing: 1px;
  position: relative;
}

/* Glitch effect on hover */
.start-button:hover .start-text {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      -2px 0 #ff0000,
      2px 0 #00ffff;
    transform: translate(0);
  }
  20% {
  text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      2px 0 #ff0000,
      -2px 0 #00ffff;
    transform: translate(-1px, 1px);
  }
  40% {
    text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      -1px 0 #ff0000,
      1px 0 #00ffff;
    transform: translate(1px, -1px);
  }
  60% {
    text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      2px 0 #ff0000,
      -1px 0 #00ffff;
    transform: translate(-1px, 0);
  }
  80% {
    text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      -2px 0 #ff0000,
      2px 0 #00ffff;
    transform: translate(1px, 1px);
  }
  100% {
    text-shadow: 
      1px 1px 2px rgba(0,0,0,0.5),
      1px 0 #ff0000,
      -1px 0 #00ffff;
    transform: translate(0);
  }
}

/* Additional glitch flicker */
.start-button:hover .start-text::before {
  content: 'start';
  position: absolute;
  left: 0;
  top: 0;
  color: #ff0000;
  opacity: 0.8;
  animation: glitchClip 0.2s infinite;
  clip-path: inset(10% 0 60% 0);
}

.start-button:hover .start-text::after {
  content: 'start';
  position: absolute;
  left: 0;
  top: 0;
  color: #00ffff;
  opacity: 0.8;
  animation: glitchClip2 0.25s infinite;
  clip-path: inset(50% 0 20% 0);
}

@keyframes glitchClip {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
  50% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
}

@keyframes glitchClip2 {
  0% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 0); }
  50% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 0); }
}

.pump-menu-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: none;
  border-radius: 5px;
  background: transparent;
}

.quick-launch {
  padding: 0 5px;
  display: flex;
  align-items: center;
}

.ql-separator {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #1a4ab8 0%, #5c93e0 50%, #1a4ab8 100%);
  margin: 0 5px;
}

.taskbar-programs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 5px;
  overflow: hidden;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: linear-gradient(180deg, #3c7fdb 0%, #2b63a8 50%, #2456a1 100%);
  border: 1px solid #1a4189;
  border-radius: 2px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 22px;
}

.taskbar-item:hover {
  background: linear-gradient(180deg, #4a8fe8 0%, #3571b8 50%, #2d5fb0 100%);
}

.taskbar-item.active {
  background: linear-gradient(180deg, #1c4c99 0%, #1e4178 50%, #173666 100%);
  border: 1px solid #0e2c5e;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

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

.system-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 100%;
  background: linear-gradient(180deg, #1a4ab8 0%, #1e56c4 50%, #1a4ab8 100%);
  border-left: 1px solid #1c3d91;
}

.tray-icons {
  display: flex;
  gap: 3px;
}

.tray-icon {
  width: 16px;
  height: 16px;
}

.clock {
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-shadow: none;
}

/* ========================================
   START MENU
   ======================================== */
.start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 380px;
  background: #fff;
  border: 1px solid #1941A5;
  border-radius: 5px 5px 0 0;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
  z-index: 9500;
  display: none;
  overflow: hidden;
}

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

.start-menu-header {
  background: linear-gradient(180deg, #1565C0 0%, #1976D2 50%, #1565C0 100%);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: #e0e0e0;
}

.user-name {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.start-menu-body {
  display: flex;
  height: 300px;
}

.start-menu-left {
  flex: 1;
  background: #fff;
  padding: 5px 0;
  border-right: 1px solid #d5d5d5;
}

.start-menu-right {
  width: 180px;
  background: linear-gradient(180deg, #6ba4e7 0%, #4d90e0 100%);
  padding: 5px 0;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

.start-item:hover {
  background: #316ac5;
  color: white;
}

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

.start-item.default-programs {
  padding: 8px 10px;
}

.start-item.default-programs img {
  width: 32px;
  height: 32px;
}

.start-separator {
  height: 1px;
  background: #d5d5d5;
  margin: 5px 10px;
}

.start-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: white;
  cursor: pointer;
}

.start-item-right:hover {
  background: rgba(255,255,255,0.2);
}

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

.start-separator-right {
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 5px 10px;
}

.start-menu-footer {
  background: linear-gradient(180deg, #3a83d6 0%, #2968b8 100%);
  padding: 5px 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #5ba0e0;
}

.start-footer-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  color: white;
  cursor: pointer;
  border-radius: 2px;
}

.start-footer-btn:hover {
  background: rgba(255,255,255,0.2);
}

.start-footer-btn img {
  width: 20px;
  height: 20px;
}

/* ========================================
   WINDOWS
   ======================================== */
.window {
  position: absolute;
  min-width: 300px;
  min-height: 200px;
  background: #ece9d8;
  border: 1px solid #0054e3;
  border-radius: 5px 5px 0 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 30px) !important;
  border-radius: 0;
}

/* Window Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  padding: 3px 5px;
  background: linear-gradient(180deg, 
    #0a246a 0%,
    #0f3da6 8%,
    #1665d8 20%,
    #0a5cd4 30%,
    #0a5cd4 85%,
    #0746a0 95%,
    #0a246a 100%
  );
  border-radius: 5px 5px 0 0;
  cursor: move;
  user-select: none;
}

.ie-titlebar {
  background: linear-gradient(180deg, 
    #0a246a 0%,
    #0f3da6 8%,
    #1665d8 20%,
    #0a5cd4 30%,
    #0a5cd4 85%,
    #0746a0 95%,
    #0a246a 100%
  );
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.titlebar-text {
  flex: 1;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
}

.tb-btn {
  width: 21px;
  height: 21px;
  border: 1px solid #3169c6;
  border-radius: 3px;
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.tb-btn.minimize {
  background: linear-gradient(180deg, #4a9cfd 0%, #2b7aef 50%, #1f5ed8 100%);
}

.tb-btn.minimize::after {
  content: '';
  display: block;
  width: 8px;
  height: 2px;
  background: white;
  margin: 12px auto 0;
}

.tb-btn.maximize {
  background: linear-gradient(180deg, #4a9cfd 0%, #2b7aef 50%, #1f5ed8 100%);
}

.tb-btn.maximize::after {
  content: '';
  display: block;
  width: 9px;
  height: 8px;
  border: 2px solid white;
  border-top-width: 3px;
  margin: 3px auto 0;
}

.tb-btn.close {
  background: linear-gradient(180deg, #c87158 0%, #c24732 50%, #9c2b18 100%);
  border-color: #9c2b18;
}

.tb-btn.close::before {
  content: '✕';
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.tb-btn:hover.minimize,
.tb-btn:hover.maximize {
  background: linear-gradient(180deg, #5aacff 0%, #3b8aff 50%, #2f6ee8 100%);
}

.tb-btn:hover.close {
  background: linear-gradient(180deg, #e88168 0%, #d25742 50%, #ac3b28 100%);
}

.tb-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Window Menubar */
.window-menubar {
  display: flex;
  gap: 0;
  padding: 2px 5px;
  background: #ece9d8;
  border-bottom: 1px solid #c5c5c5;
}

.window-menubar span {
  padding: 2px 8px;
  cursor: pointer;
}

.window-menubar span:hover {
  background: #316ac5;
  color: white;
}

/* Window Toolbar */
.window-toolbar {
  display: flex;
  gap: 5px;
  padding: 3px 5px;
  background: linear-gradient(180deg, #faf9f5 0%, #ece9d8 100%);
  border-bottom: 1px solid #c5c5c5;
}

.toolbar-btn {
  padding: 2px 10px;
  background: linear-gradient(180deg, #fff 0%, #e8e4d0 100%);
  border: 1px solid #a5a29a;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.toolbar-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d8d4c0 100%);
  border-color: #888;
}

/* Window Addressbar */
.window-addressbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #ece9d8 0%, #d5d5d5 100%);
  border-bottom: 1px solid #c5c5c5;
}

.window-addressbar span {
  font-size: 11px;
}

.address-input {
  flex: 1;
  padding: 2px 5px;
  background: white;
  border: 1px solid #7f9db9;
  font-size: 11px;
}

/* Window Content */
.window-content {
  flex: 1;
  background: white;
  overflow: auto;
}

/* Window Statusbar */
.window-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  background: #ece9d8;
  border-top: 1px solid #c5c5c5;
  font-size: 11px;
  color: #444;
}

/* ========================================
   EXPLORER WINDOWS
   ======================================== */
.explorer-content {
  display: flex;
  height: 100%;
}

.explorer-sidebar {
  width: 180px;
  background: linear-gradient(180deg, #7da2ce 0%, #6689b8 100%);
  border-right: 1px solid #7f9db9;
  padding: 10px;
  overflow-y: auto;
}

.sidebar-section {
  background: white;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}

.sidebar-header {
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  padding: 5px 10px;
  font-weight: bold;
  color: #21649b;
  font-size: 11px;
  border-bottom: 1px solid #ddd;
}

.sidebar-item {
  padding: 3px 10px;
  color: #2161ad;
  cursor: pointer;
  font-size: 11px;
}

.sidebar-item:hover {
  text-decoration: underline;
}

.explorer-main {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: white;
}

.explorer-main.full {
  width: 100%;
}

.explorer-group {
  margin-bottom: 20px;
}

.group-header {
  color: #21649b;
  font-weight: bold;
  font-size: 11px;
  padding-bottom: 3px;
  border-bottom: 1px solid #9ac1e7;
  margin-bottom: 10px;
}

.explorer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.explorer-items.flat {
  gap: 20px;
}

.explorer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 70px;
  padding: 5px;
  cursor: pointer;
  text-align: center;
}

.explorer-item:hover {
  background: #e7f0f9;
  border: 1px solid #cce4f7;
  padding: 4px;
}

.explorer-item img {
  width: 32px;
  height: 32px;
}

.explorer-item span {
  font-size: 11px;
  word-wrap: break-word;
}

.empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 12px;
}

/* ========================================
   INTERNET EXPLORER
   ======================================== */
.ie-toolbar {
  display: flex;
  gap: 3px;
  padding: 3px 5px;
  background: linear-gradient(180deg, #faf9f5 0%, #ece9d8 100%);
  border-bottom: 1px solid #c5c5c5;
}

.ie-btn {
  padding: 3px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.ie-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #e8e4d0 100%);
  border: 1px solid #a5a29a;
}

.ie-addressbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #ece9d8 0%, #d5d5d5 100%);
  border-bottom: 1px solid #c5c5c5;
}

.ie-addressbar span {
  font-size: 11px;
}

.ie-address-input {
  flex: 1;
  padding: 3px 5px;
  border: 1px solid #7f9db9;
  font-size: 11px;
}

.ie-go {
  padding: 3px 10px;
  background: linear-gradient(180deg, #fff 0%, #e8e4d0 100%);
  border: 1px solid #a5a29a;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.ie-content {
  padding: 0;
  background: white;
  height: 400px;
}

.ie-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ie-zone {
  color: #666;
}

/* ========================================
   NOTEPAD
   ======================================== */
.notepad-content {
  padding: 0;
  height: 300px;
}

.notepad-textarea {
  width: 100%;
  height: 100%;
  border: none;
  padding: 5px;
  font-family: "Lucida Console", monospace;
  font-size: 12px;
  resize: none;
  outline: none;
}

/* ========================================
   CALCULATOR
   ======================================== */
.calc-window {
  width: 255px;
  min-width: 255px;
  min-height: auto;
}

.calc-content {
  padding: 8px;
  background: #ece9d8;
}

.calc-display {
  width: 100%;
  padding: 5px 8px;
  margin-bottom: 8px;
  text-align: right;
  font-size: 16px;
  background: white;
  border: 2px inset #808080;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  position: relative;
}

.calc-btn {
  padding: 5px;
  font-size: 11px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #808080;
  cursor: pointer;
}

.calc-btn:hover {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
}

.calc-btn:active {
  background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 100%);
}

.calc-btn.number {
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
}

.calc-btn.operator {
  background: linear-gradient(180deg, #fee 0%, #dcc 100%);
}

.calc-btn.equals {
  background: linear-gradient(180deg, #fee 0%, #dcc 100%);
}

.calc-btn.memory {
  background: linear-gradient(180deg, #fef 0%, #dcd 100%);
  color: #c00;
}

.calc-row-top {
  position: absolute;
  top: 0;
  left: 85px;
  display: flex;
  gap: 3px;
}

.calc-row-top .calc-btn {
  width: 32px;
}

/* ========================================
   VIRUS OVERLAYS
   ======================================== */
.virus-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.virus-close {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 30px;
  background: #c00;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.virus-close:hover {
  background: #e00;
}

/* WannaCry */
.wannacry-window {
  background: #5c0000;
  width: 90%;
  max-width: 900px;
  font-family: Arial, sans-serif;
  color: white;
}

.wannacry-header {
  background: #400000;
  padding: 8px 15px;
  font-size: 14px;
}

.wannacry-body {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.wannacry-left {
  flex: 1;
}

.wannacry-warning h2 {
  color: #ff6b6b;
  margin-bottom: 15px;
}

.wannacry-info p {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.5;
}

.wannacry-timers {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.timer-box {
  flex: 1;
  background: #400000;
  padding: 10px;
  text-align: center;
}

.timer-label {
  font-size: 10px;
  margin-bottom: 5px;
}

.timer-value {
  font-size: 18px;
  font-family: monospace;
  color: #0f0;
}

.timer-value.danger {
  color: #f00;
}

.wannacry-right {
  width: 250px;
}

.wannacry-payment {
  background: #400000;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 12px;
}

.btc-address {
  background: #2a0000;
  padding: 8px;
  margin-top: 10px;
  font-family: monospace;
  font-size: 10px;
  word-break: break-all;
  color: #ff0;
}

.wannacry-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-btn {
  padding: 8px;
  background: #700000;
  border: 1px solid #900000;
  color: white;
  cursor: pointer;
}

.wc-btn:hover {
  background: #800000;
}

/* ILOVEYOU */
.iloveyou-window {
  width: 90%;
  max-width: 600px;
  background: #c0c0c0;
  border: 2px outset #fff;
}

.outlook-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.outlook-titlebar img {
  width: 16px;
  height: 16px;
}

.outlook-titlebar span {
  flex: 1;
}

.outlook-buttons span {
  padding: 0 5px;
}

.outlook-body {
  background: white;
  padding: 15px;
  min-height: 300px;
}

.email-header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.email-header p {
  margin: 3px 0;
  font-size: 12px;
}

.email-body {
  font-size: 12px;
  margin-bottom: 20px;
}

.virus-spreading {
  margin-top: 20px;
  padding: 15px;
  background: #ffe0e0;
  border: 1px solid #f00;
}

.spreading-header {
  color: #c00;
  font-weight: bold;
  margin-bottom: 10px;
}

.spreading-progress {
  height: 20px;
  background: #ddd;
  margin-bottom: 10px;
}

.spreading-bar {
  height: 100%;
  background: #c00;
  width: 0%;
  transition: width 0.3s;
}

.spreading-files {
  max-height: 100px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 10px;
  color: #800;
}

/* BSOD */
.bsod {
  background: #0000aa;
}

.bsod-content {
  color: white;
  font-family: "Lucida Console", monospace;
  font-size: 14px;
  padding: 50px;
  line-height: 1.5;
  max-width: 900px;
}

.bsod-content p {
  margin-bottom: 5px;
}

.bsod-close {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.bsod-close:hover {
  background: rgba(255,255,255,0.1);
}

/* MEMZ */
.memz-overlay {
  background: black;
}

.memz-warning-dialog {
  background: #c0c0c0;
  border: 2px outset #fff;
  width: 350px;
}

.memz-dialog-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  padding: 3px 5px;
  font-size: 12px;
}

.memz-dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.memz-dialog-body img {
  width: 32px;
  height: 32px;
}

.memz-dialog-body p {
  text-align: center;
  font-size: 12px;
}

.memz-ok {
  padding: 5px 30px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  margin: 10px auto 15px;
  display: block;
}

.memz-ok:active {
  border-style: inset;
}

.memz-chaos {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: black;
}

.nyan-cat {
  position: absolute;
  font-size: 50px;
  animation: nyanFly 3s linear infinite;
}

@keyframes nyanFly {
  0% { left: -100px; top: 50%; }
  100% { left: 100%; top: 50%; }
}

.memz-popups {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.memz-popup {
  position: absolute;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 5px 15px;
  font-size: 12px;
  white-space: nowrap;
  animation: shake 0.1s infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* BonziBuddy */
.bonzi-overlay {
  background: #008080;
}

.bonzi-character {
  position: absolute;
  bottom: 100px;
  right: 100px;
  text-align: center;
}

.bonzi-body {
  font-size: 120px;
  animation: bonziBounce 0.5s ease-in-out infinite;
}

@keyframes bonziBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.bonzi-speech {
  background: white;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 10px;
  position: relative;
  font-size: 14px;
  max-width: 250px;
}

.bonzi-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: white;
}

.bonzi-popups {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.bonzi-popup {
  position: absolute;
  background: #ffffc0;
  border: 3px solid #f00;
  padding: 15px;
  text-align: center;
  font-size: 12px;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.bonzi-popup h4 {
  color: #f00;
  margin-bottom: 5px;
}

/* ========================================
   SHUTDOWN DIALOG
   ======================================== */
.shutdown-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #2c78c7 0%, #1e5aa8 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutdown-box {
  background: linear-gradient(180deg, #3c8cd8 0%, #2670b8 100%);
  border-radius: 15px;
  padding: 25px 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.shutdown-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.shutdown-options {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.shutdown-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
}

.shutdown-option:hover {
  background: rgba(255,255,255,0.15);
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.option-icon.standby {
  background: linear-gradient(180deg, #f8c430 0%, #e5a020 100%);
}

.option-icon.turnoff {
  background: linear-gradient(180deg, #e54040 0%, #c02020 100%);
}

.option-icon.restart {
  background: linear-gradient(180deg, #40c040 0%, #20a020 100%);
}

.shutdown-option span {
  color: white;
  font-size: 12px;
}

.shutdown-cancel {
  padding: 8px 30px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.shutdown-cancel:hover {
  background: rgba(255,255,255,0.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ========================================
   PILL CHAOS EFFECT
   ======================================== */
.pill-chaos-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  pointer-events: none;
  animation: screenShake 0.1s infinite;
}

.pill-chaos-overlay .virus-close {
  pointer-events: all;
}

.pill-chaos-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.chaos-image-window {
  position: absolute;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  min-width: 150px;
  animation: windowShake 0.15s infinite;
}

.chaos-image-window.shake-alt {
  animation: windowShakeAlt 0.12s infinite;
}

.chaos-image-window.shake-fast {
  animation: windowShakeFast 0.08s infinite;
}

.chaos-titlebar {
  background: linear-gradient(180deg, #0054e3 0%, #0047d0 50%, #0054e3 100%);
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}

.chaos-titlebar-text {
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 5px;
}

.chaos-titlebar-buttons {
  display: flex;
  gap: 2px;
}

.chaos-tb-btn {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px outset #dfdfdf;
  font-size: 9px;
  line-height: 1;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chaos-image-content {
  padding: 3px;
  background: #808080;
}

.chaos-image-content img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 2px) rotate(-0.5deg); }
  50% { transform: translate(3px, -2px) rotate(0.5deg); }
  75% { transform: translate(-2px, -3px) rotate(-0.3deg); }
}

@keyframes windowShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-4px, 3px) rotate(-2deg); }
  40% { transform: translate(4px, -2px) rotate(2deg); }
  60% { transform: translate(-3px, -4px) rotate(-1deg); }
  80% { transform: translate(3px, 4px) rotate(1deg); }
}

@keyframes windowShakeAlt {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -3px) rotate(3deg); }
  50% { transform: translate(-5px, 3px) rotate(-3deg); }
  75% { transform: translate(3px, 5px) rotate(2deg); }
}

@keyframes windowShakeFast {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 4px); }
  50% { transform: translate(6px, -4px); }
  75% { transform: translate(-4px, -6px); }
}

@keyframes windowFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(var(--float-x), var(--float-y)); }
}

.desktop.chaos-mode {
  animation: desktopChaos 0.2s infinite;
}

@keyframes desktopChaos {
  0%, 100% { filter: hue-rotate(0deg) saturate(1); }
  25% { filter: hue-rotate(30deg) saturate(1.5); }
  50% { filter: hue-rotate(-30deg) saturate(2); }
  75% { filter: hue-rotate(60deg) saturate(1.2); }
}

/* APE NOW Button */
.ape-now-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  padding: 25px 50px;
  font-size: 32px;
  font-weight: bold;
  font-family: 'Arial Black', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #ff0000 0%, #ff6600 25%, #ffcc00 50%, #00ff00 75%, #00ccff 100%);
  background-size: 300% 300%;
  animation: rainbowBg 1s ease infinite, apeButtonPulse 0.5s ease infinite;
  border: 4px solid #fff;
  border-radius: 15px;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  box-shadow: 0 0 30px rgba(255,255,0,0.8), 0 0 60px rgba(255,0,0,0.5);
  cursor: pointer;
  pointer-events: all;
  text-align: center;
}

.ape-now-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 50px rgba(255,255,0,1), 0 0 100px rgba(255,0,0,0.8);
}

@keyframes rainbowBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes apeButtonPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}
