:root {
  --pastel-purple: #d4b5ff;
  --dark-purple: #b28fd8;
  --soft-pink: #ffd1e6;
  --hot-pink: #ff6b8b;
  --nav-highlight: #e8c6ff;
  --light-purple: #f0e6ff;
  --medium-purple: #c9a8ff;
}

/* Keep your original background and scanlines */
body {
  background-color: #f9f0ff;
  background-image: 
    url('https://64.media.tumblr.com/162cc3dfa5cef6c882aba5453445f0fb/tumblr_mx3y1yYFad1qcm0eto1_1280.pnj'),
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 20px 20px, 20px 20px;
  font-family: 'Courier New', Courier, monospace !important;
  color: #8a7faf;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* SCANLINES */
#scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.12) 50%
    );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2147483647;
  mix-blend-mode: overlay;
}

/* DESKTOP */
#desktop {
  font-family: 'Courier New', Courier, monospace !important;
  position: fixed;
  height: 100%;
  width: 100%;
  background: transparent;
  overflow: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  isolation: isolate;
}

/* DESKTOP ICONS - Keep your cute icons */
#icons {
  position: fixed;
  z-index: 10;
  top: 15px;
  left: 15px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  pointer-events: auto;
}

#icons a {
  display: block;
  width: 70px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 0;
  margin: 0;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 14px;
  color: black;
  transition: transform 0.2s ease;
  position: relative;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px auto;
  cursor: cell;
  border-radius: 10px;
  filter: grayscale(50%);
  transition: filter 0.3s ease, transform 0.2s ease;
  overflow: hidden;
  position: relative;
}

/* CUSTOM ICON CLASSES */
.icon-zero { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/6.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-one { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/1.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-two { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/2.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-three { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/File%20Icons/1.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-four { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/4.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-five { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/3.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-six { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/8.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-seven { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/2.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-eight { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/7.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-nine { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/7.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.icon-ten { background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/7.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }

#icons a:hover .icon-box {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.icon-caption {
  display: block;
  background: white;
  padding: 2px;
  margin-top: 0;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 12px;
  font-weight: bold;
  color: #8a7faf;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  word-break: break-word;
  transition: background 0.3s ease;
  line-height: 1.2;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#icons a:hover {
  transform: translateY(-2px);
}

/* ===== CUSTOM XP WINDOWS (NO EXTERNAL CSS) ===== */
.xp-window {
  position: absolute;
  min-width: 200px;
  min-height: 150px;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(178, 143, 216, 0.4);
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/* XP Title Bar */
.xp-title-bar {
  background: linear-gradient(90deg, var(--pastel-purple), var(--soft-pink));
  padding: 3px 5px;
  height: 25px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--dark-purple);
  box-sizing: border-box;
}

.xp-title-text {
  font-family: 'Courier New', Courier, monospace !important;
  font-weight: bold !important;
  color: white !important;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  font-size: 13px !important;
  line-height: 19px !important;
  flex: 1;
}

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

/* XP Window Buttons */
.xp-minimize,
.xp-maximize,
.xp-close {
  width: 22px;
  height: 20px;
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  background: var(--light-purple);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  color: #8a7faf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.xp-minimize:hover,
.xp-maximize:hover {
  background: var(--nav-highlight);
}

.xp-close:hover {
  background: var(--hot-pink);
  color: white;
}

.xp-minimize:active,
.xp-maximize:active,
.xp-close:active {
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

/* XP Window Body */
.xp-window-body {
  background: #fff;
  font-family: 'Courier New', Courier, monospace !important;
  color: #8a7faf !important;
  font-weight: bold !important;
  font-size: 12px !important;
  padding: 8px;
  height: calc(100% - 25px);
  box-sizing: border-box;
  overflow: auto;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  margin: 0;
}

/* Active Window */
.xp-window.activeWindow {
  z-index: 1001 !important;
}

.xp-window.activeWindow .xp-title-bar {
  background: linear-gradient(90deg, var(--medium-purple), var(--hot-pink));
}

.xp-window.closed {
  display: none !important;
}

.xp-window.minimizedWindow {
  display: none !important;
}

/* Full Screen Window */
.xp-window.fullSizeWindow {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 40px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 9999 !important;
}

.xp-window.fullSizeWindow .xp-window-body {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  border: none;
  border-top: 2px solid var(--dark-purple);
}

.fullSizeWindow .ui-resizable-handle {
  display: none !important;
}

.fullSizeWindow .xp-maximize {
  background: var(--nav-highlight);
}

/* Window positions */
#window0 { top: 500px; left: 100px; width: 200px; height: 200px; }
#window1 { top: 120px; left: 200px; width: 350px; height: 250px; }
#window2 { top: 50px; left: 200px; width: 800px; height: 600px; }
#window3 { top: 200px; left: 1100px; width: 300px; height: 320px; }
#window4 { top: 30px; left: 1080px; width: 340px; height: 140px; }
#window5 { top: 150px; left: 600px; width: 250px; height: 300px; }
#window10 { top: 100px; left: 400px; width: 500px; height: 400px; }

/* Media Player Styling - Keep your original */
#window4 .xp-window-body {
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--light-purple) !important;
}

.media-player {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

.player-album-art {
  width: 70px;
  height: 70px;
  border: 2px solid var(--pastel-purple);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.player-album-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.35);
  transform-origin: center;
}

.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  width: calc(100% - 82px);
  min-width: 0;
  box-sizing: border-box;
}

.player-songtitle-window {
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  padding: 4px 6px;
  height: 22px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.player-songtitle {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 11px;
  font-weight: bold;
  color: #8a7faf;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-overflow: ellipsis;
}

.player-songtitle.marquee {
  animation: marquee 15s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

.player-seeking {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  width: 100%;
  box-sizing: border-box;
}

.player-current-time,
.player-total-duration {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 11px;
  color: #8a7faf;
  font-weight: bold;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.player-seek-slider {
  flex: 1;
  height: 10px;
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 0;
}

.player-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--pastel-purple);
  border: 1px solid var(--dark-purple);
  cursor: pointer;
}

.player-controls-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 24px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.player-control-btn {
  background: #fff;
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  width: 30px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 12px;
  color: #8a7faf;
  font-weight: bold;
  flex-shrink: 0;
}

.player-control-btn:hover {
  background: var(--nav-highlight);
}

#youtubePlayBtn {
  background: var(--pastel-purple) !important;
  color: white !important;
}

.youtube-mini-player {
  display: none;
}

/* About Window Special Styling */
#window10 .xp-window-body {
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: normal !important;
  line-height: 1.5 !important;
  padding: 20px !important;
}

#window10 .xp-window-body p {
  margin-bottom: 15px !important;
  font-family: inherit !important;
}

/* Taskbar with XP styling */
#taskbar {
  position: fixed;
  height: 40px;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pastel-purple), var(--dark-purple));
  padding: 4px 6px;
  display: flex;
  align-items: center;
  z-index: 20000;
  border-top: 2px solid white;
}

.xp-start-btn {
  background: linear-gradient(180deg, #fff, var(--light-purple));
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  padding: 4px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.xp-start-btn:hover {
  background: linear-gradient(180deg, var(--nav-highlight), var(--pastel-purple));
}

.xp-start-btn:active {
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.taskbar-items {
  display: flex;
  flex: 1;
  overflow-x: auto;
  margin: 0 6px;
  min-width: 0;
  gap: 2px;
}

.taskbarPanel {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  padding: 4px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #8a7faf;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 28px;
}

.taskbarPanel.activeTab {
  background: var(--soft-pink);
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.taskbarPanel.closed {
  display: none;
}

.taskbarPanel.minimizedTab {
  background: var(--light-purple);
}

.taskbar-clock-container {
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  padding: 4px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taskbar-clock {
  border: none !important;
  pointer-events: none;
}

/* Make windows draggable and resizable */
.xp-window {
  position: absolute !important;
  overflow: hidden !important;
}

.ui-resizable-handle {
  background: transparent !important;
  border: none !important;
  opacity: 0 !important;
}

.ui-resizable-se {
  width: 20px !important;
  height: 20px !important;
  bottom: 0 !important;
  right: 0 !important;
  cursor: nwse-resize !important;
  z-index: 1001 !important;
}

/* Scrollbars for windows that need them */
#window1 .xp-window-body,
#window3 .xp-window-body,
#window5 .xp-window-body,
#window10 .xp-window-body {
  overflow: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--pastel-purple) var(--light-purple) !important;
}

#window1 .xp-window-body::-webkit-scrollbar,
#window3 .xp-window-body::-webkit-scrollbar,
#window5 .xp-window-body::-webkit-scrollbar,
#window10 .xp-window-body::-webkit-scrollbar {
  width: 16px !important;
  height: 16px !important;
}

#window1 .xp-window-body::-webkit-scrollbar-track,
#window3 .xp-window-body::-webkit-scrollbar-track,
#window5 .xp-window-body::-webkit-scrollbar-track,
#window10 .xp-window-body::-webkit-scrollbar-track {
  background: var(--light-purple) !important;
  border: 2px solid !important;
  border-color: #ffffff var(--dark-purple) var(--dark-purple) #ffffff !important;
}

#window1 .xp-window-body::-webkit-scrollbar-thumb,
#window3 .xp-window-body::-webkit-scrollbar-thumb,
#window5 .xp-window-body::-webkit-scrollbar-thumb,
#window10 .xp-window-body::-webkit-scrollbar-thumb {
  background: var(--pastel-purple) !important;
  border: 2px solid !important;
  border-color: #ffffff #808080 #808080 #ffffff !important;
}

/* Special handling for iframe windows */
#window0 .xp-window-body,
#window2 .xp-window-body {
  padding: 0 !important;
  overflow: hidden !important;
}

#window0 iframe,
#window2 embed {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Remove any scrollbars from the window itself */
.xp-window {
  overflow: hidden !important;
}