/* ==========================================================================
VARIABLES & FONTS
   ========================================================================== */
:root {
  --dark-base: #121212; 
  --dark-surface: #181818;
  --dark-elevated: #1f1f1f;
  --accent-pink: #FF00C3;
  --accent-pink-20: rgba(255, 0, 195, 0.08);
  --transition: background 240ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms ease, border-color 200ms ease, box-shadow 240ms ease;
  --text-dark: #420423;
  --text-light: #ffffff;
  --border-muted: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 0, 195, 0.18);
}


@font-face { font-family: Y2K; src: url(/GloridaRegular-pgOKa.ttf); }
@font-face { font-family: 'Windows'; src: url('/assets/fonts/tahoma.ttf') format('truetype'), url('/OpenSans.ttf') format('truetype'); }
@font-face { font-family: KACHIKA; src: url(/GrescoTrial-Regular.ttf); }

/* ==========================================================================
GLOBAL RESETS & BASE STYLES
   ========================================================================== */

a {
  color: #ff1493;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #c7006b; 
}

::selection {
  background-color: #ff1493;
  color: #ffffff;
}
::-moz-selection {
  background-color: #ff1493;
  color: #ffffff;
}
   
*, *::before, *::after {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
  border: none;
}

html, body {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  overflow: hidden !important;
  margin: 0;
  padding: 0;
  cursor: url("/assets/Normal Select.cur"), auto !important;
}

body {
  font-family: Y2K, 'Windows', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('assets/tiger 4.png') right 10px bottom 40px no-repeat,
              radial-gradient(circle at center, #f01f87 0%, #ffe4f4 70%);
  background-size: 210px, 100%;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  position: relative;
}

hr { 
  flex: 0 0 100%; 
  border: 0;
  border-top: 1px solid #8e0b4a;
  border-bottom: 1px solid #ffffff;
  height: 0;
  margin: 15px 0;
}

body.dark-mode hr {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #333333;
}

/* ==========================================================================
CURSORS & SELECTIONS
   ========================================================================== */
a, a *, button, button *, summary, summary *, select, option, 
input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"], 
label, .clickable {
  cursor: url("/assets/Link Select.cur"), pointer !important;
}

p, h1, h2, h3, h4, h5, h6, span, b, i, em, strong,
input[type="text"], input[type="password"], input[type="email"], textarea {
  cursor: url("/assets/Text Select.cur"), text !important;
}

.loading, .busy, [aria-busy="true"] { cursor: url("/assets/Busy.ani"), wait !important; }
[disabled], .disabled, .unavailable { cursor: url("/assets/Unavailable.cur"), not-allowed !important; }
.zoom-in { cursor: url("/assets/Zoom-In.png"), zoom-in !important; }
.zoom-out { cursor: url("/assets/Zoom-Out.png"), zoom-out !important; }

::selection, ::-moz-selection {
  background: #FF00C3;
  color: #ffffff;
}

/* ==========================================================================
BACKGROUND ASCII & EFFECTS
   ========================================================================== */
body::before {
  content: "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣫⣉⠛⣿⠁⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣟⣋⣻⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢋⣉⣁⡉⠇⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⠿⠷⠀⡄⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣇⠀⠀⡅⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠤⠾⢿⣿⠷⣶⣇⡀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣛⡛⠷⡶⣤⡀⠒⣝⠳⡄⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣵⣤⣭⣿⣦⡀⠉⢂⠈⢳⠙⣄⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣇⡀⠀⠁⠀⠈⠹⡀⠀⠆⠰⢀⣿⠆⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⢺⣦⡀⠀⠀⠀⠀⠀⠀⣰⡛⠻⠿⠦⣄⠀⠀⠹⠄⠀⣀⣼⠋⡌⡄⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⣠⠐⣛⡷⠿⠾⣯⡙⢾⣾⡶⢦⢻⡙⣶⡀⠀⠄⠣⢠⠀⠀⢀⣨⣴⢧⡇⠈⡤\A⠀⠀⠀⠀⠀⠀⠀⢠⠁⠘⣽⠉⠀⢉⣅⠸⣀⡉⢀⣼⠈⢻⣎⣻⣄⠀⠰⡈⠳⣤⣤⡴⢎⡾⠁⠈⡁\A⠀⡤⢠⠋⠂⡀⢀⠊⠀⠘⡡⠴⠆⢹⣿⠀⣧⠋⣩⡅⢶⣦⡀⠉⢻⡄⠀⢹⡦⠬⠥⡖⢋⠐⣌⡼⠁\A⠚⣼⢹⣀⠀⣇⢊⡎⠀⠀⣀⠀⠐⠋⣱⡾⠏⢀⢽⠂⠟⠉⠙⠒⠀⠃⡀⠀⠀⠀⠀⠉⠋⠑⠁⠀⠀\A⠸⣽⠞⠉⠃⠙⠃⣕⢄⣀⣀⡀⣈⠈⣁⣀⣤⠞⠀⣤⡴⠂⠀⢠⣤⡾⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠁⠙⠢⠶⢮⡀⠈⠳⡀⠛⢷⡥⠀⠀⢉⣵⣂⣀⡀⠀⠀⣀⠀⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠉⠒⠤⣤⣀⠀⢉⡤⣶⣟⠂⠈⠙⠻⠛⠉⠂⢰⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣌⠵⠄⠙⣭⣳⣶⡶⠖⡈⣀⡠⠞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠁⣠⠞⠙⢀⡉⡉⠀⣸⡟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠳⣧⡀⣠⠎⠀⢑⡼⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\A⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⡷⢤⡥⠎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀";
  white-space: pre; 
  font-family: monospace; 
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 100vw;
  overflow: hidden;
  line-height: 1.1; 
  color: #ffffff; 
  text-shadow: 0px 2px 4px rgba(66, 4, 35, 0.3);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

body::after {
  content: " ";
  display: block;
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  opacity: 0.3;
  background-size: 100% 4px;
  z-index: 9999; 
  pointer-events: none;
}

@keyframes patternFloat {
  0% { background-position: 0 0; }
  100% { background-position: 300px 300px; }
}

/* ==========================================================================
DESKTOP & ICONS
   ========================================================================== */
.desktop {
  position: absolute;
  inset: 0 0 44px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 5px;
  padding: 20px;
  pointer-events: none; 
  z-index: 1;
  align-content: flex-start;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #420423;
  text-decoration: none;
  width: 80px;
  height: 90px;
  margin: 5px;
  font-size: 12px;
  pointer-events: all;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.desktop-icon:hover {
  transform: scale(1.1) rotate(2deg);
  text-shadow: 2px 2px 4px rgba(240, 31, 135, 0.3);
}

.desktop-icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(240, 31, 135, 0.2));
}

.desktop-icon:hover img {
  filter: drop-shadow(0 6px 12px rgba(240, 31, 135, 0.4)) hue-rotate(10deg) brightness(1.1);
  transform: rotateY(5deg);
}

/* ==========================================================================
TASKBAR & START MENU
   ========================================================================== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #f01f87, #f791c4);
  color: white;
  padding: 5px;
  display: flex;
  align-items: center;
  z-index: 10000;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3);
  border-top: 2px outset #f791c4;
  min-height: 32px;
}

.start-button {
  background: linear-gradient(to bottom, #f791c4, #f01f87);
  border: 2px outset #f791c4;
  color: white;
  padding: 6px 12px;
  margin-right: 10px;
  border-radius: 6px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 11px;
  min-height: 23px;
  display: flex;
  align-items: center;
  transition: all 0.1s ease;
}

.start-button:hover {
  background: linear-gradient(to bottom, #f9b3d1, #f02a91);
  border: 2px outset #f9b3d1;
}

.start-button:active {
  background: linear-gradient(to bottom, #e01577, #f791c4);
  border: 2px inset #f791c4;
  transform: translateY(1px);
}

.start-menu {
  position: fixed;
  bottom: 48px;
  left: 0;
  width: 280px;
  background: #f5d7e6;
  border: 2px outset #f5d7e6;
  border-bottom: none;
  box-shadow: 3px -2px 5px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1001;
  border-radius: 0 15px 0 0;
}

.start-menu-header {
  background: linear-gradient(to right, #f01f87, #f791c4);
  color: #f5d7e6;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #420423;
  border-radius: 0 13px 0 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.start-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #420423;
  transition: all 0.1s ease;
  border: 1px solid transparent;
  margin: 1px;
  font-size: 11px;
}

.start-menu-item:hover {
  background-color: #f01f87;
  color: #f5d7e6;
  border: 1px solid #f791c4;
}

.start-menu-item img { margin-right: 8px; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2)); }

.quick-launch {
  display: flex;
  margin-left: 10px;
  padding: 2px 2px 2px 8px;
  border-left: 1px inset #f791c4;
}

.quick-launch a {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 5px;
  text-decoration: none;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.1s ease;
}

.quick-launch a:hover { border: 1px outset #f791c4; background: rgba(255, 255, 255, 0.1); }
.quick-launch a:active { border: 1px inset #f791c4; background: rgba(0, 0, 0, 0.1); }
.quick-launch img { width: 24px; height: 24px; }

.system-tray {
  display: flex;
  align-items: center;
  margin-left: auto;
  border-left: 1px inset #f791c4;
  padding: 0 8px 0 12px;
  gap: 8px;
  min-width: fit-content;
  flex-shrink: 0;
}

.system-tray span {
  font-size: 11px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.system-icons { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.system-icon { font-size: 12px; padding: 2px; border-radius: 2px; transition: background 0.2s ease; }
.system-icon:hover { background: rgba(255, 255, 255, 0.2); }

.clock {
  font-size: 11px;
  border: 1px inset #f791c4;
  padding: 2px 4px;
  background: rgba(245, 215, 230, 0.3);
  border-radius: 2px;
  min-width: 50px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
BASE WINDOW STYLES & ANIMATIONS
   ========================================================================== */
.window {
  background: #f5d7e6;
  border: 2px outset #f5d7e6;
  border-radius: 12px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(240, 31, 135, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 1px 0 0 rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 890px;
  height: 780px;
  margin: auto;
  display: none;
  overflow: auto;
  z-index: 1001;
  transition: all 0.2s ease;
  opacity: 0;
  backdrop-filter: blur(8px);
  animation: windowAppearCentered 0.2s ease-out;
}

.window.dragged iframe { pointer-events: none; }
.window.dragged {
  transform: none;
  margin: 0;
  transition: none;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 31, 135, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 1px 0 0 rgba(255, 255, 255, 0.2);
}

.window:not([style*="display: none"]):not(.dragged) { opacity: 1; animation: windowAppearCentered 0.2s ease-out; }
.window:not([style*="display: none"]).dragged { opacity: 1; animation: windowAppearInPlace 0.2s ease-out; }
.window.minimizing:not(.dragged) { animation: windowMinimizeCentered 0.3s ease-in forwards; }
.window.minimizing.dragged { animation: windowMinimizeInPlace 0.3s ease-in forwards; }

@keyframes windowAppearCentered {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes windowAppearInPlace {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes windowMinimizeCentered {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1) translateY(200px); }
}
@keyframes windowMinimizeInPlace {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.1) translateY(200px); }
}


.title-bar {
  background: linear-gradient(to right, #f01f87, #f791c4);
  color: white;
  padding: 8px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #420423;
  cursor: grab;
  border-radius: 12px 12px 0 0;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.title-bar:active { cursor: grabbing; }

.title-bar-controls { display: flex; gap: 2px; }
.title-bar-controls button {
  background: linear-gradient(to bottom, #f9c2d9, #f5a7c7);
  border: 1px outset #f5a7c7;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #420423;
  text-shadow: none;
}
.title-bar-controls button:hover { background: linear-gradient(to bottom, #fbd4e3, #f8c1d5); border: 1px outset #f8c1d5; }
.title-bar-controls button:active { background: linear-gradient(to bottom, #f5a7c7, #f9c2d9); border: 1px inset #f5a7c7; transform: translateY(1px); }

.menu-bar {
  background-color: #f791c4;
  padding: 4px 8px;
  border-bottom: 1px solid #420423;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: nowrap;
  scrollbar-color: #f01f87 #f791c4;
}
.menu-bar::-webkit-scrollbar { height: 6px; display: block; }
.menu-bar::-webkit-scrollbar-track { background: #f791c4; }
.menu-bar::-webkit-scrollbar-thumb { background: #f01f87; border-radius: 3px; display: block; }

.menu-bar a {
  color: #420423;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 2px;
  transition: all 0.1s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.menu-bar a:hover { background-color: #f01f87; color: #f5d7e6; border: 1px solid #420423; }

.toolbar {
  background: linear-gradient(135deg, #f791c4, #f9c2d9);
  border-bottom: 1px solid #420423;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.toolbar-btn, button {
  background: linear-gradient(to bottom, #f9c2d9, #f5a7c7);
  border: 1px outset #f5a7c7;
  padding: 6px 8px;
  font-size: 12px;
  color: #420423;
  border-radius: 3px;
  transition: all 0.1s ease;
}
button { padding: 4px 8px; font-size: 11px; }
.toolbar-btn.back-btn { padding: 4px 6px; font-size: 11px; }
.toolbar-btn:hover, button:hover { background: linear-gradient(to bottom, #fbd4e3, #f8c1d5); border: 1px outset #f8c1d5; }
.toolbar-btn:active, button:active { background: linear-gradient(to bottom, #f5a7c7, #f9c2d9); border: 1px inset #f5a7c7; transform: translateY(1px); }

.address-bar {
  background: white;
  border: 1px inset #f791c4;
  padding: 4px 6px;
  margin: 0 10px;
  flex: 1;
  font-size: 12px;
  border-radius: 2px;
  color: #420423;
}

.status-bar {
  background: linear-gradient(135deg, #f791c4, #f9c2d9);
  border-top: 1px solid #420423;
  padding: 6px 10px;
  font-size: 11px;
  color: #420423;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 8px 8px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.status-item {
  padding: 1px 4px;
  border: 1px inset #f791c4;
  margin-right: 4px;
  background: rgba(245, 215, 230, 0.3);
}

.content-area {
  background-color: #ffffff;
  background-image: radial-gradient(#ffe4f4 1px, transparent 1px);
  background-size: 14px 14px;
  margin: 6px;
  border-top: 2px solid #8e0b4a;
  border-left: 2px solid #8e0b4a;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.15);
  
  min-height: 0;
  display: block;
}

body.dark-mode .content-area {
  background-color: #121212 !important;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) !important;
  border-top: 2px solid #000000 !important;
  border-left: 2px solid #000000 !important;
  border-bottom: 2px solid #333333 !important;
  border-right: 2px solid #333333 !important;
}

/* ==========================================================================
SPECIFIC WINDOW LAYOUTS
   ========================================================================== */
#myWindow { display: block; width: 670px; height: auto; min-height: 400px; }
#changelogWindow { width: 500px; height: auto; min-height: 350px; }
#changelogWindow .content-area { max-height: 350px; overflow-y: auto; }
#musicPlayerWindow { width: 650px; height: 800px; }


#youtubeWindow, #minecraftWindow, #chatboxWindow, #trashWindow, #socialsWindow {
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

#youtubeWindow .title-bar, #minecraftWindow .title-bar, #chatboxWindow .title-bar, #socialsWindow .title-bar {
  height: 36px; padding: 8px 12px; position: absolute; top: 0; left: 0; right: 0;
}

#youtubeWindow .menu-bar, #minecraftWindow .menu-bar, #chatboxWindow .menu-bar, #socialsWindow .menu-bar {
  height: 30px; padding: 4px 8px; position: absolute; top: 36px; left: 0; right: 0; overflow: hidden;
}

#youtubeWindow .toolbar, #minecraftWindow .toolbar, #chatboxWindow .toolbar, #socialsWindow .toolbar {
  height: 44px; padding: 6px; position: absolute; top: 66px; left: 0; right: 0;
}

#youtubeWindow .status-bar, #minecraftWindow .status-bar, #chatboxWindow .status-bar, #socialsWindow .status-bar {
  height: 36px; padding: 6px 10px; position: absolute; bottom: 0; left: 0; right: 0;
}

#youtubeWindow .content-area, #minecraftWindow .content-area, #chatboxWindow .content-area, #socialsWindow .content-area {
  position: absolute; top: 110px; bottom: 36px; left: 6px; right: 6px; margin: 0; padding: 0;
  border-radius: 0 0 8px 8px; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column;
}

#trashWindow { overflow: auto; }
#trashWindow .content-area { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0; overflow: auto; }

#youtubeWindow .iframe-wrapper, #minecraftWindow .iframe-wrapper, #chatboxWindow .iframe-wrapper {
  display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; margin: 0; height: 100%;
}
#youtubeWindow .iframe-wrapper { min-height: 360px; }
#minecraftWindow .iframe-wrapper { min-height: 420px; }

#youtubeWindow .iframe-wrapper iframe, #minecraftWindow .iframe-wrapper iframe, #chatboxWindow .iframe-wrapper iframe {
  display: block; width: 100%; height: 100%; border: none;
}

/* Socials Specific Overrides */
#socialsWindow .content-area {
  margin: 6px 6px 0 6px !important; 
  border: none !important; 
  border-radius: 0 !important; 
  background: transparent !important;
  background-clip: padding-box; 
}
#socialsWindow .status-bar { margin-top: 0 !important; border-top: 1px solid #420423 !important; }
#socialsWindow .content-area > div {
  flex: 1 1 auto; display: flex; flex-direction: column; padding: 15px; overflow: auto; gap: 12px; height: 100%;
  background: white !important; border: 1px inset #f791c4 !important; border-radius: 0 0 8px 8px !important; box-shadow: none !important;
}

/* ==========================================================================
MUSIC PLAYER
   ========================================================================== */
.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,240,250,0.9));
  border: 1px solid rgba(240,31,135,0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}

.album-art-container { width: 100%; max-width: 320px; aspect-ratio: 1; position: relative; margin: 0 auto 10px auto; }
.album-art { width: 100%; height: 100%; object-fit: cover; border: 8px ridge #f01f87; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

.player-info { width: 100%; text-align: center; padding: 0; margin: 0; }
.track-title { font-weight: bold; color: #3a0b2a; margin-bottom: 8px; font-size: 18px; padding-bottom: 8px; border-bottom: 2px dashed rgba(240,31,135,0.18); letter-spacing: 0.2px; }

.player-controls { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; gap: 10px; }
.control-buttons { display: flex; justify-content: center; gap: 20px; }

.music-player .control-button {
  background: linear-gradient(180deg, #ffd6ef, #ffb3e8);
  border: 1px solid rgba(240,31,135,0.14);
  color: #2a0520;
  font-size: 16px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(240,31,135,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.music-player .control-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 22px rgba(240,31,135,0.12); }
.music-player .control-button:active { transform: translateY(1px); }

.music-player .progress-bar { width: 100%; height: 10px; background: linear-gradient(180deg, #ffeaf3, #ffd6ef); border-radius: 6px; border: 1px solid rgba(240,31,135,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); cursor: pointer; margin: 10px 0; }
.music-player .progress { height: 100%; width: 0%; background: linear-gradient(90deg, #ff2fcf 0%, #ff86d6 60%); border-radius: 6px; transition: width 120ms linear; }

.volume-control { width: 100%; display: flex; align-items: center; padding: 0 10px; gap: 10px; }
.music-player .volume-slider { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg,#ffb0de,#ffd6ef); border-radius: 6px; }
.music-player .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: #ff3bb0; border-radius: 50%; box-shadow: 0 2px 6px rgba(255,59,176,0.25); cursor: pointer; }

.music-player .playlist { width: 100%; max-width: 400px; margin: 0 auto; flex: 1; overflow-y: auto; border-radius: 8px; padding: 6px; background: rgba(255,250,255,0.6); border: 1px solid rgba(240,31,135,0.06); }
.music-player .playlist-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.music-player .playlist-item:hover { background: rgba(255,223,242,0.9); }
.music-player .playlist-item.active { background: #f01f87; color: white; }

.music-player button:focus, .music-player input:focus { outline: 3px solid rgba(255,0,195,0.14); outline-offset: 2px; }

/* ==========================================================================
COMPONENTS & MISCELLANEOUS
   ========================================================================== */
.content { display: flex; flex-wrap: wrap; gap: 15px; padding: 15px; justify-content: center; background: white; }
.about-gif { max-width: 100%; height: auto; display: block; margin: 10px auto; border-style: inset; text-align: center; border-radius: 15px; }
.button-box { 
  background-color: transparent; 
  border: 2px groove #f791c4; 
  border-radius: 0px;
  padding: 15px; 
  margin: 15px auto; 
  max-width: 300px; 
  text-align: center; 
}
.guestbook-link { font-size: 12px; margin-top: 8px; color: #420423; }
.guestbook-link a { color: #420423; text-decoration: none; }
.guestbook-link a:hover { color: #f01f87; text-decoration: underline; }
.image-container { flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; }

.nav-grid { display: flex; justify-content: center; gap: 20px; padding: 30px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.nav-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px; background: rgba(247, 145, 196, 0.2); border: 2px outset rgba(247, 145, 196, 0.6); border-radius: 15px; cursor: pointer; width: 150px; margin: 10px; transition: all 0.2s ease; font-size: 11px; color: #420423; }
.nav-item:hover { background: rgba(247, 145, 196, 0.4); transform: scale(1.02); border: 2px outset rgba(247, 145, 196, 0.8); }
.nav-item:active { border: 2px inset rgba(247, 145, 196, 0.6); transform: scale(0.98); }
.nav-item img { width: 150px; height: 150px; margin-bottom: 12px; }

.nav-panel { background: linear-gradient(135deg, #f9c2d9, #f5a7c7); border-bottom: 1px solid #420423; padding: 8px 12px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 11px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.nav-section { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; border: 1px solid rgba(240, 31, 135, 0.1); }
.nav-title { font-weight: bold; color: #420423; font-size: 11px; margin-right: 6px; }
.nav-item-portfolio { padding: 4px 8px; cursor: pointer; font-size: 11px; color: #420423; background: linear-gradient(to bottom, #f9c2d9, #f5a7c7); border: 1px outset #f5a7c7; margin: 0 2px; text-decoration: none; white-space: nowrap; border-radius: 3px; transition: all 0.1s ease; }
.nav-item-portfolio:hover { background: linear-gradient(to bottom, #fbd4e3, #f8c1d5); border: 1px outset #f8c1d5; transform: translateY(-1px); }
.nav-item-portfolio:active { background: linear-gradient(to bottom, #f5a7c7, #f9c2d9); border: 1px inset #f5a7c7; transform: translateY(1px); }
.nav-separator { width: 1px; height: 20px; background: #f01f87; margin: 0 4px; }

.context-menu { position: fixed; background: #f5d7e6; border: 2px outset #f5d7e6; border-radius: 4px; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); display: none; z-index: 2000; font-size: 11px; min-width: 120px; }
.context-menu-item { padding: 4px 12px; cursor: pointer; border: 1px solid transparent; color: #420423; }
.context-menu-item:hover { background: #f01f87; color: #f5d7e6; border: 1px solid #420423; }
.context-menu-separator { height: 1px; background: #420423; margin: 2px 8px; }

.theme-toggle { background: transparent; border: 1px solid rgba(255,255,255,0.12); padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.theme-toggle:hover { background: rgba(255,255,255,0.06); }

.skip-link { position: absolute; left: 8px; top: 8px; z-index: 9999; background: #FF00C3; color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 16px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.18); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.skip-link:focus { opacity: 1; pointer-events: auto; }

.background-image-dialogue { position: fixed; right: 180px; top: calc(100% - 250px); background: rgba(255, 228, 244, 0.95); border: 2px solid #f01f87; padding: 15px; border-radius: 15px; max-width: 200px; display: none; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.background-image-dialogue::after { content: ''; position: absolute; right: -10px; bottom: 20px; border-left: 10px solid #f01f87; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.background-image-area { position: fixed; right: 0; bottom: 40px; width: 200px; height: 200px; cursor: pointer; z-index: 49; }

/* ==========================================================================
DARK MODE 
   ========================================================================== */
body.dark-mode { 
  background-image: none !important;
  background: #000000 !important; 
  color: var(--text-light) !important; 
  transition: var(--transition); 
}
body.dark-mode::before { 
  color: #f01f87 !important; 
  text-shadow: 0 0 12px rgba(240, 31, 135, 0.7), 
               0 0 4px rgba(240, 31, 135, 0.9) !important; 
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: none; }
  * { transition: none !important; }
}

.taskbar, .window, .title-bar, .menu-bar, .toolbar, .status-bar, .desktop-icon, .nav-item, .theme-toggle, .music-player, .playlist-item { transition: var(--transition); }

body.dark-mode .taskbar { background: linear-gradient(90deg, var(--dark-surface), var(--dark-elevated)) !important; border-top-color: var(--border-muted) !important; }
body.dark-mode .window { background: linear-gradient(180deg, var(--dark-surface), #151515) !important; border-color: var(--border-strong) !important; color: var(--text-light) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.02); }
body.dark-mode .title-bar, body.dark-mode .menu-bar, body.dark-mode .toolbar, body.dark-mode .status-bar { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) !important; border-color: var(--border-muted) !important; color: var(--text-light) !important; }
body.dark-mode .title-bar span { color: var(--text-light) !important; }
body.dark-mode .start-button { background: linear-gradient(to bottom, #252525, #1a1a1a) !important; border-color: rgba(255,255,255,0.04) !important; color: var(--text-light) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }
body.dark-mode .quick-launch a, body.dark-mode .quick-launch a:hover { border-color: rgba(255,255,255,0.04) !important; background: var(--dark-elevated) !important; }
body.dark-mode .clock { background: rgba(255,255,255,0.02) !important; border-color: rgba(255,255,255,0.03) !important; color: var(--text-light) !important; }
body.dark-mode .start-button, body.dark-mode .title-bar-controls button, body.dark-mode .toolbar .toolbar-btn { border-color: var(--accent-pink) !important; }
body.dark-mode .desktop-icon, body.dark-mode .desktop-icon a, body.dark-mode .desktop-icon span, body.dark-mode .desktop-icon small, body.dark-mode .desktop-icon b, body.dark-mode .desktop-icon p { color: #ffffff !important; }
body.dark-mode .desktop-icon img { filter: brightness(0.95) saturate(1.05) !important; }
body.dark-mode .nav-item { background: rgba(255,255,255,0.02) !important; border: 1px solid rgba(255,255,255,0.03) !important; color: #ffffff !important; }
body.dark-mode .nav-item:hover { background: var(--accent-pink-20) !important; border-color: var(--accent-pink) !important; }
body.dark-mode .context-menu { background: #151515 !important; border: 1px solid rgba(255,255,255,0.04) !important; color: #ffffff !important; }
body.dark-mode .context-menu-item { color: #ffffff !important; background: transparent !important; }
body.dark-mode .context-menu-item:hover { background: var(--accent-pink-20) !important; border-color: var(--accent-pink) !important; }
body.dark-mode .menu-bar a { color: #ffffff !important; }
body.dark-mode input.address-bar, body.dark-mode input[type="text"], body.dark-mode textarea { background: rgba(255,255,255,0.02) !important; color: #ffffff !important; border-color: rgba(255,255,255,0.04) !important; }
body.dark-mode .control-button, body.dark-mode .playlist-item { background: transparent !important; color: #ffffff !important; border-color: rgba(255,255,255,0.04) !important; }
body.dark-mode a, body.dark-mode .playlist-item.active, body.dark-mode .nav-item a { color: var(--accent-pink) !important; }
body.dark-mode ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-pink), #ff66d9) !important; }
body.dark-mode .status-item, body.dark-mode .system-icon, body.dark-mode .theme-toggle { color: #ffffff !important; }
body.dark-mode .content-area { background: transparent !important; }
body.dark-mode [style*="#f01f87"], body.dark-mode [style*="#f791c4"] { filter: brightness(0.9) saturate(0.8) !important; }


body.dark-mode #socialsWindow .content-area, body.dark-mode #socialsWindow .content-area > div, body.dark-mode #changelogWindow, body.dark-mode #myWindow { background: linear-gradient(180deg, var(--dark-surface), #151515) !important; border-color: rgba(255,255,255,0.06) !important; color: #ffffff !important; }
body.dark-mode #myWindow .title-bar { border-bottom: 1px solid rgba(255,255,255,0.03) !important; }
body.dark-mode #myWindow .toolbar, body.dark-mode #myWindow .status-bar, body.dark-mode #changelogWindow .content-area { background: transparent !important; border-color: rgba(255,255,255,0.03) !important; }
body.dark-mode #myWindow h1, body.dark-mode #myWindow h2, body.dark-mode #myWindow h3 { text-shadow: 0 1px 0 rgba(0,0,0,0.6) !important; }
body.dark-mode #myWindow .button-box a img, body.dark-mode #myWindow .button-box textarea { filter: brightness(0.95) !important; }
body.dark-mode #myWindow .button-box { background: var(--accent-pink) !important; border: 1px solid var(--border-accent) !important; box-shadow: none !important; }
body.dark-mode button, 
body.dark-mode .toolbar-btn, 
body.dark-mode .title-bar-controls button { 
  background: linear-gradient(to bottom, #2a2a2a, #1a1a1a) !important; 
  border: 1px solid #000000 !important; 
  color: #ffffff !important; 
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1) !important;
}

body.dark-mode button:hover, 
body.dark-mode .toolbar-btn:hover, 
body.dark-mode .title-bar-controls button:hover { 
  background: linear-gradient(to bottom, #383838, #222222) !important; 
  border-color: #111111 !important; 
}

body.dark-mode button:active, 
body.dark-mode .toolbar-btn:active, 
body.dark-mode .title-bar-controls button:active { 
  background: linear-gradient(to bottom, #111111, #1a1a1a) !important;
  transform: translateY(1px) !important; 
  border-style: inset !important; 
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5) !important;
}

body.dark-mode .title-bar-controls button[title="Close"]:hover {
  background: linear-gradient(to bottom, #8a1c1c, #5c1010) !important;
}
body.dark-mode #myWindow .guestbook-link { color: #000000 !important; }
body.dark-mode #myWindow .guestbook-link a { color: #ffffff !important; }
body.dark-mode #myWindow .guestbook-link a:hover { color: #ffe6fb !important; }


body.dark-mode .music-player { background: transparent !important; color: #ffffff !important; }
body.dark-mode .album-art-container { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.04) !important; }
body.dark-mode .album-art { box-shadow: 0 6px 18px rgba(0,0,0,0.7) !important; }
body.dark-mode .track-title { color: #ffffff !important; border-bottom-color: rgba(255,0,195,0.18) !important; }
body.dark-mode .progress-bar { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.04) !important; }
body.dark-mode .progress { background: linear-gradient(90deg, var(--accent-pink), #ff66d9) !important; }
body.dark-mode .player-controls { color: #ffffff !important; }
body.dark-mode .playlist { background: transparent !important; border: 1px solid rgba(255,255,255,0.03) !important; }
body.dark-mode .playlist-item { border-bottom: 1px solid rgba(255,255,255,0.02) !important; }
body.dark-mode .playlist-item.active { background: rgba(255,0,195,0.07) !important; border-left: 4px solid var(--accent-pink) !important; }
body.dark-mode .volume-slider { filter: none !important; }


body.dark-mode .start-menu { background: linear-gradient(180deg, var(--dark-surface), #101010) !important; border: 1px solid rgba(255,255,255,0.04) !important; color: #ffffff !important; }
body.dark-mode .start-menu-header { background: transparent !important; }
body.dark-mode .start-menu-item { border-bottom: 1px solid rgba(255,255,255,0.02) !important; }
body.dark-mode .start-menu-item:hover { background: var(--accent-pink-20) !important; border-color: var(--accent-pink) !important; }
body.dark-mode .nav-grid { background: transparent !important; }
body.dark-mode .nav-item img { filter: brightness(0.95) saturate(1.1) !important; }
body.dark-mode .background-image-dialogue { background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(30,30,30,0.88)); border: 1px solid rgba(255,0,195,0.12); color: #ffffff !important; box-shadow: 0 8px 24px rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
body.dark-mode .background-image-dialogue::after { border-left-color: rgba(255,0,195,0.12); }

/* ==========================================================================
MEDIA QUERIES (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .window, .window.dragged {
    width: 95vw !important; 
    height: auto !important;
    max-height: 85vh !important;
    min-height: auto !important; 
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    position: fixed !important;
  }

  .window[style*="display: block"], 
  .window[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
  }

  .window .title-bar, .window .menu-bar, .window .toolbar, .window .status-bar, .window .content-area {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .window .content-area { 
    overflow-y: auto !important; 
    overflow-x: hidden !important; 
    flex: 0 1 auto !important; 
    margin-bottom: 6px !important;
  }

  #youtubeWindow .iframe-wrapper, #minecraftWindow .iframe-wrapper, #chatboxWindow .iframe-wrapper {
    min-height: 50vh !important; 
  }

  #youtubeWindow .title-bar, #minecraftWindow .title-bar, #chatboxWindow .title-bar, #socialsWindow .title-bar { height: 34px; padding: 8px; }
  #youtubeWindow .menu-bar, #minecraftWindow .menu-bar, #chatboxWindow .menu-bar, #socialsWindow .menu-bar { height: 28px; font-size: 14px; padding: 4px; gap: 2px; }
  #youtubeWindow .toolbar, #minecraftWindow .toolbar, #chatboxWindow .toolbar, #socialsWindow .toolbar { height: 40px; }
  #youtubeWindow .status-bar, #minecraftWindow .status-bar, #chatboxWindow .status-bar, #socialsWindow .status-bar { height: 34px; }

  #musicPlayerWindow { border-radius: 4px; bottom: unset !important; resize: none; }
  .music-player { padding: 12px 10px; gap: 8px; }
  .album-art-container { width: 85%; max-width: 280px; margin-bottom: 10px; }
  .album-art { border-width: 5px; }
  .track-title { font-size: 14px; margin-bottom: 8px; padding: 3px; }
  .player-controls { padding: 5px; margin-bottom: 5px; gap: 8px; }
  .control-buttons { gap: 10px; }
  .playlist { margin-top: 5px; font-size: 12px; }
  .playlist-item { padding: 6px; }

  .desktop { gap: 2px; padding: 5px; justify-content: flex-start; align-content: flex-start; }
  .desktop-icon { width: 60px; font-size: 12px; margin: 2px; }
  .desktop-icon img { width: 48px; height: 48px; margin-bottom: 3px; }

  .nav-grid { gap: 10px; padding: 10px; }
  .nav-item { padding: 6px; width: 45vw; min-width: 90px; max-width: 140px; margin-bottom: 8px; }
  .nav-item img { width: 40px; height: 40px; margin-bottom: 4px; }

  .content { padding: 8px; gap: 8px; }
  .about-gif { max-width: 90%; margin: 5px auto; }
  iframe { width: 100% !important; max-width: 100% !important; height: calc(100% - 40px) !important; }
  .image-container { flex: 0 1 150px; }
}

@media (max-width: 480px) {
  #youtubeWindow .iframe-wrapper, #minecraftWindow .iframe-wrapper { min-height: 240px; }
  .menu-bar { font-size: 12px; padding: 2px; gap: 1px; }
  .menu-bar a { padding: 1px 4px; font-size: 10px; }
}