/* ==========================================================================
   FruitigerSpace - Retro Windows XP & Multi-Theme Stylesheet
   Themes: Classic XP, Pink Y2K, Beige 90s PC, Dark Cyber
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme 1: Default / Classic Windows XP (Luna Blue)
   -------------------------------------------------------------------------- */
:root, [data-theme="classic-xp"] {
  --theme-font: 'Tahoma', 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
  --theme-bg: url('/static/images/bliss600dpi.jpg');
  --theme-bg-attach: fixed;
  --window-bg: rgba(246, 248, 252, 0.94);
  --window-border: 2px solid #0055ea;
  --window-radius: 8px;
  --window-shadow: 0 10px 30px rgba(0, 40, 110, 0.35);
  --titlebar-bg: linear-gradient(180deg, #0a246a 0%, #0055ea 10%, #3a93ff 50%, #166ae0 55%, #0050d0 100%);
  --titlebar-color: #ffffff;
  --titlebar-border: #003db3;
  --titlebar-radius: 6px 6px 0 0;
  --button-primary-bg: linear-gradient(180deg, #64d852 0%, #349b25 50%, #28801b 100%);
  --button-primary-border: #1d6112;
  --button-primary-color: #ffffff;
  --button-secondary-bg: linear-gradient(180deg, #ffffff 0%, #ece9d8 50%, #d8d0c4 100%);
  --button-secondary-border: #7f9db9;
  --button-secondary-color: #0c2340;
  --button-radius: 4px;
  --button-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.25);
  --input-bg: #ffffff;
  --input-border: 2px solid #7f9db9;
  --input-color: #0c2340;
  --input-radius: 3px;
  --accent-color: #0055ea;
  --card-header-bg: #ece9d8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --badge-bg: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
  --badge-border: #3b82f6;
  --badge-color: #1d4ed8;
  --ticker-bg: linear-gradient(90deg, #0055ea 0%, #22c55e 50%, #0055ea 100%);
  --border-style: solid;
}

/* --------------------------------------------------------------------------
   Theme 2: Pink / Y2K (Dreamy Pastel Candy)
   -------------------------------------------------------------------------- */
[data-theme="pink-y2k"] {
  --theme-font: 'Comic Sans MS', 'Quicksand', 'Chalkboard SE', cursive, sans-serif;
  --theme-bg: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,182,193,0.6) 0%, transparent 50%),
    linear-gradient(135deg, #ffd1dc 0%, #ffc0cb 35%, #f472b6 70%, #d946ef 100%);
  --theme-bg-attach: fixed;
  --window-bg: rgba(255, 245, 250, 0.95);
  --window-border: 2.5px solid #f472b6;
  --window-radius: 18px;
  --window-shadow: 0 12px 35px rgba(236, 72, 153, 0.3);
  --titlebar-bg: linear-gradient(180deg, #ff80bf 0%, #ff409f 50%, #e60073 52%, #ff66b3 100%);
  --titlebar-color: #ffffff;
  --titlebar-border: #cc0066;
  --titlebar-radius: 16px 16px 0 0;
  --button-primary-bg: linear-gradient(180deg, #ff99cc 0%, #ff1493 50%, #d6006e 100%);
  --button-primary-border: #b30059;
  --button-primary-color: #ffffff;
  --button-secondary-bg: linear-gradient(180deg, #ffffff 0%, #ffe6f2 100%);
  --button-secondary-border: #ff99cc;
  --button-secondary-color: #99004d;
  --button-radius: 20px;
  --button-shadow: 0 3px 10px rgba(255, 20, 147, 0.3), inset 0 1px 1px #fff;
  --input-bg: #fffbfd;
  --input-border: 2px solid #f472b6;
  --input-color: #831843;
  --input-radius: 12px;
  --accent-color: #ec4899;
  --card-header-bg: #ffe4e6;
  --text-main: #831843;
  --text-muted: #9d4edd;
  --badge-bg: linear-gradient(180deg, #fff0f5 0%, #fbcfe8 100%);
  --badge-border: #f472b6;
  --badge-color: #be185d;
  --ticker-bg: linear-gradient(90deg, #f43f5e 0%, #d946ef 50%, #f43f5e 100%);
  --border-style: solid;
}

/* --------------------------------------------------------------------------
   Theme 3: Beige / 90s Retro PC (Windows 95/98 Teal & Chassis)
   -------------------------------------------------------------------------- */
[data-theme="beige-90s"] {
  --theme-font: 'MS Sans Serif', 'Tahoma', 'Times New Roman', serif;
  --theme-bg: #008080; /* Windows 95 Teal desktop */
  --theme-bg-attach: fixed;
  --window-bg: #c0c0c0;
  --window-border: 2px outset #ffffff;
  --window-radius: 0px;
  --window-shadow: 3px 3px 0px #000000;
  --titlebar-bg: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --titlebar-color: #ffffff;
  --titlebar-border: #000040;
  --titlebar-radius: 0px;
  --button-primary-bg: #c0c0c0;
  --button-primary-border: #ffffff;
  --button-primary-color: #000000;
  --button-secondary-bg: #c0c0c0;
  --button-secondary-border: #ffffff;
  --button-secondary-color: #000000;
  --button-radius: 0px;
  --button-shadow: none;
  --input-bg: #ffffff;
  --input-border: 2px inset #ffffff;
  --input-color: #000000;
  --input-radius: 0px;
  --accent-color: #000080;
  --card-header-bg: #d4d0c8;
  --text-main: #000000;
  --text-muted: #4b5563;
  --badge-bg: #c0c0c0;
  --badge-border: 2px outset #ffffff;
  --badge-color: #000080;
  --ticker-bg: #000080;
  --border-style: outset;
}

/* --------------------------------------------------------------------------
   Theme 4: Dark / Cyber (Matrix / Terminal Glow)
   -------------------------------------------------------------------------- */
[data-theme="dark-cyber"] {
  --theme-font: 'Courier New', 'VT323', Consolas, monospace;
  --theme-bg: 
    radial-gradient(circle at 50% 50%, #071f11 0%, #030a05 100%);
  --theme-bg-attach: fixed;
  --window-bg: rgba(8, 20, 12, 0.94);
  --window-border: 1px solid #00ff66;
  --window-radius: 4px;
  --window-shadow: 0 0 25px rgba(0, 255, 102, 0.25), inset 0 0 10px rgba(0, 255, 102, 0.05);
  --titlebar-bg: linear-gradient(180deg, #0f3d1e 0%, #061f0c 100%);
  --titlebar-color: #00ff66;
  --titlebar-border: #00ff66;
  --titlebar-radius: 3px 3px 0 0;
  --button-primary-bg: linear-gradient(180deg, #0c4d22 0%, #04240d 100%);
  --button-primary-border: #00ff66;
  --button-primary-color: #00ff66;
  --button-secondary-bg: #07190d;
  --button-secondary-border: #00cc55;
  --button-secondary-color: #34d399;
  --button-radius: 2px;
  --button-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
  --input-bg: #040e07;
  --input-border: 1px solid #00ff66;
  --input-color: #00ff66;
  --input-radius: 2px;
  --accent-color: #00ff66;
  --card-header-bg: #07190e;
  --text-main: #a7f3d0;
  --text-muted: #34d399;
  --badge-bg: #06190e;
  --badge-border: #00ff66;
  --badge-color: #00ff66;
  --ticker-bg: #041a0b;
  --border-style: solid;
}

/* --------------------------------------------------------------------------
   Theme 5: Windows Vista / Windows 7 (Aero Glass & Harmony Aurora)
   -------------------------------------------------------------------------- */
[data-theme="vista-aero"] {
  --theme-font: 'Segoe UI', 'Segoe UI Web', Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
  --theme-bg: 
    radial-gradient(ellipse at 50% 36%, rgba(135, 210, 255, 0.48) 0%, rgba(45, 145, 225, 0.35) 30%, rgba(15, 60, 115, 0.15) 60%, transparent 82%),
    radial-gradient(circle at 82% 18%, rgba(100, 215, 255, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 18% 65%, rgba(40, 155, 235, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #091a35 0%, #0e2a52 18%, #16467c 42%, #123d6d 68%, #0a1f3a 100%);
  --theme-bg-attach: fixed;
  --window-bg: rgba(255, 255, 255, 0.88);
  --window-border: 1px solid rgba(255, 255, 255, 0.55);
  --window-radius: 9px;
  --window-shadow: 
    0 0 0 1px rgba(10, 35, 65, 0.35),
    0 16px 40px rgba(0, 12, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --titlebar-bg: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.32) 0%, 
      rgba(255, 255, 255, 0.10) 48%, 
      rgba(145, 195, 235, 0.08) 50%, 
      rgba(175, 215, 245, 0.18) 100%);
  --titlebar-color: #ffffff;
  --titlebar-border: rgba(255, 255, 255, 0.35);
  --titlebar-radius: 8px 8px 0 0;
  --button-primary-bg: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.65) 0%, 
      rgba(255, 255, 255, 0.18) 48%, 
      rgba(52, 211, 153, 0.35) 50%, 
      rgba(16, 185, 129, 0.85) 100%);
  --button-primary-border: rgba(255, 255, 255, 0.75);
  --button-primary-color: #ffffff;
  --button-secondary-bg: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.75) 0%, 
      rgba(255, 255, 255, 0.20) 48%, 
      rgba(186, 230, 253, 0.28) 50%, 
      rgba(147, 197, 253, 0.60) 100%);
  --button-secondary-border: rgba(255, 255, 255, 0.85);
  --button-secondary-color: #062b48;
  --button-radius: 5px;
  --button-shadow: 
    0 2px 6px rgba(0, 20, 40, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-border: 1px solid rgba(255, 255, 255, 0.85);
  --input-color: #0c2340;
  --input-radius: 4px;
  --accent-color: #0284c7;
  --card-header-bg: rgba(240, 246, 255, 0.85);
  --text-main: #0f172a;
  --text-muted: #334155;
  --badge-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(224, 242, 254, 0.85) 100%);
  --badge-border: #38bdf8;
  --badge-color: #0369a1;
  --ticker-bg: rgba(6, 20, 40, 0.85);
  --border-style: solid;
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--theme-font);
  color: var(--text-main);
  background: var(--theme-bg);
  background-attachment: var(--theme-bg-attach);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

/* 3D Bevel button outlines for 90s theme (Windows 95/98 Classic) */
[data-theme="beige-90s"] .aero-button,
[data-theme="beige-90s"] .aero-button-green,
[data-theme="beige-90s"] .aero-button-primary,
[data-theme="beige-90s"] .aero-button-danger,
[data-theme="beige-90s"] button,
[data-theme="beige-90s"] .theme-chip,
[data-theme="beige-90s"] input[type="submit"],
[data-theme="beige-90s"] input[type="button"] {
  background: #c0c0c0 !important;
  color: #000000 !important;
  border-top: 2px solid #ffffff !important;
  border-left: 2px solid #ffffff !important;
  border-right: 2px solid #000000 !important;
  border-bottom: 2px solid #000000 !important;
  box-shadow: inset 1px 1px 0px #dfdfdf, inset -1px -1px 0px #808080 !important;
  border-radius: 0px !important;
  text-shadow: none !important;
  font-family: inherit;
}

[data-theme="beige-90s"] .aero-button:hover,
[data-theme="beige-90s"] button:hover,
[data-theme="beige-90s"] .theme-chip:hover {
  background: #d4d0c8 !important;
  filter: none !important;
  transform: none !important;
}

[data-theme="beige-90s"] .aero-button:active,
[data-theme="beige-90s"] button:active,
[data-theme="beige-90s"] .theme-chip:active {
  border-top: 2px solid #000000 !important;
  border-left: 2px solid #000000 !important;
  border-right: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
  box-shadow: inset 1px 1px 0px #808080 !important;
  background: #b0b0b0 !important;
  color: #000000 !important;
  transform: none !important;
}

[data-theme="beige-90s"] .theme-chip.active {
  border-top: 2px solid #000000 !important;
  border-left: 2px solid #000000 !important;
  border-right: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
  box-shadow: inset 1px 1px 0px #000040 !important;
  background: #000080 !important;
  color: #ffffff !important;
  transform: none !important;
}

/* ==========================================================================
   Page Layout & Retro Sidebars
   ========================================================================== */

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.layout-grid {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sidebar-column {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-column {
  flex: 1;
  min-width: 0;
}

/* Responsive collapse on smaller screens */
@media (max-width: 1100px) {
  .sidebar-column {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar-left,
  .sidebar-right {
    display: none;
  }
  .page-container {
    padding: 8px 10px 24px;
  }
}

/* ==========================================================================
   Windows XP & Retro Aero Components
   ========================================================================== */

.aero-window {
  background: var(--window-bg);
  border: var(--window-border);
  border-radius: var(--window-radius);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  transition: all 0.2s ease;
}

.aero-titlebar {
  background: var(--titlebar-bg);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--titlebar-border);
  border-radius: var(--titlebar-radius);
  color: var(--titlebar-color);
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.4px;
  user-select: none;
}

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

.aero-btn-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.3);
  border: 1px solid rgba(0,0,0,0.3);
}

.aero-btn-close {
  background: linear-gradient(180deg, #ff7e79 0%, #e03833 50%, #b81b16 100%);
}
.aero-btn-max {
  background: linear-gradient(180deg, #7ad57a 0%, #3cae3c 50%, #208620 100%);
}
.aero-btn-min {
  background: linear-gradient(180deg, #ffcf66 0%, #e8a21e 50%, #c47d06 100%);
}

/* 90s Titlebar buttons override */
[data-theme="beige-90s"] .aero-btn-ctrl {
  background: #c0c0c0 !important;
  color: #000000 !important;
  border-top: 1px solid #ffffff !important;
  border-left: 1px solid #ffffff !important;
  border-right: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-radius: 0px !important;
  box-shadow: none !important;
}

/* Vista / 7 Aero Window & Titlebar Overrides */
[data-theme="vista-aero"] .aero-window {
  /* High-translucency Aero Glass: less blur, more glass clarity */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(195, 225, 255, 0.08) 40%,
    rgba(145, 195, 245, 0.05) 100%
  ) !important;
  
  /* Gentle optical blur instead of intense milky blur */
  backdrop-filter: blur(8px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(150%) !important;
  
  /* Dual-layer glass borders: 1px crisp outer stroke + inner specular reflection */
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 9px !important;
  
  /* Specular rim lighting + deep window drop-shadow */
  box-shadow: 
    0 0 0 1px rgba(10, 35, 65, 0.35),
    0 16px 40px rgba(0, 12, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.12) !important;
  
  position: relative;
  overflow: hidden;
}

/* Subtle Specular Top Sheen */
[data-theme="vista-aero"] .aero-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  z-index: 1;
}

[data-theme="vista-aero"] .aero-titlebar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.10) 48%,
    rgba(145, 195, 235, 0.08) 50%,
    rgba(175, 215, 245, 0.18) 100%
  ) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 8px 14px !important;
  position: relative;
  z-index: 2;
}

[data-theme="vista-aero"] .aero-titlebar-buttons {
  position: relative;
  z-index: 3;
}

[data-theme="vista-aero"] .aero-btn-ctrl {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 1px 3px rgba(0,0,0,0.3);
  border: 1px solid rgba(0,0,0,0.35);
  font-size: 10px;
  transition: all 0.18s ease;
}

[data-theme="vista-aero"] .aero-btn-close {
  width: 38px;
  background: linear-gradient(180deg, rgba(255,140,140,0.9) 0%, rgba(220,38,38,0.85) 50%, rgba(185,28,28,0.95) 100%) !important;
  border-color: rgba(185,28,28,0.8) !important;
}

[data-theme="vista-aero"] .aero-btn-close:hover {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee1d1d 50%, #b80505 100%) !important;
  box-shadow: 0 0 16px rgba(239,68,68,0.95), inset 0 1px 0 #fff !important;
}

[data-theme="vista-aero"] .aero-btn-max,
[data-theme="vista-aero"] .aero-btn-min {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(200,230,255,0.4) 50%, rgba(160,205,245,0.6) 100%) !important;
  color: #0c2340 !important;
}

[data-theme="vista-aero"] .aero-btn-max:hover,
[data-theme="vista-aero"] .aero-btn-min:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(147,215,255,0.75) 50%, rgba(56,189,248,0.85) 100%) !important;
  box-shadow: 0 0 12px rgba(56,189,248,0.85), inset 0 1px 0 #fff !important;
  color: #03406e !important;
}

[data-theme="vista-aero"] .aero-button {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 255, 255, 0.25) 48%, 
    rgba(186, 230, 253, 0.35) 50%, 
    rgba(147, 197, 253, 0.7) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #062b48 !important;
  border-radius: 5px !important;
  box-shadow: 
    0 2px 6px rgba(0, 20, 40, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(56, 189, 248, 0.3) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.18s ease-in-out !important;
}

[data-theme="vista-aero"] .aero-button:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(186, 230, 253, 0.6) 48%, 
    rgba(125, 211, 252, 0.5) 50%, 
    rgba(56, 189, 248, 0.85) 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 
    0 0 16px rgba(56, 189, 248, 0.85),
    inset 0 1px 2px #ffffff !important;
  transform: translateY(-1px) !important;
  color: #032b4d !important;
}

[data-theme="vista-aero"] .aero-button-green,
[data-theme="vista-aero"] .aero-button-primary {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.75) 0%, 
    rgba(255, 255, 255, 0.2) 48%, 
    rgba(52, 211, 153, 0.4) 50%, 
    rgba(16, 185, 129, 0.9) 100%) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(6, 78, 59, 0.8) !important;
}

[data-theme="vista-aero"] .aero-button-green:hover,
[data-theme="vista-aero"] .aero-button-primary:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(110, 231, 183, 0.5) 48%, 
    rgba(16, 185, 129, 0.95) 100%) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.85), inset 0 1px 2px #fff !important;
}

[data-theme="vista-aero"] .aero-input {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 4px !important;
  color: #0c2340 !important;
  box-shadow: inset 0 1px 3px rgba(0, 20, 50, 0.15), 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

[data-theme="vista-aero"] .aero-input:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), inset 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.aero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-color) !important;
  font-weight: bold;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: var(--button-radius);
  border: var(--border-style) 2px var(--button-secondary-border);
  box-shadow: var(--button-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  font-family: inherit;
}

.aero-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.aero-button:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.aero-button-green,
.aero-button-primary {
  background: var(--button-primary-bg) !important;
  color: var(--button-primary-color) !important;
  border-color: var(--button-primary-border) !important;
}

.aero-button-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%) !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

/* Inputs */
.aero-input {
  background: var(--input-bg);
  border: var(--input-border);
  border-radius: var(--input-radius);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--input-color);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aero-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 6px var(--accent-color);
}

/* Retro Ticker Marquee */
.retro-ticker {
  background: var(--ticker-bg);
  color: #ffffff;
  padding: 5px 0;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

/* Badges */
.retro-badge {
  display: inline-block;
  padding: 3px 6px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--badge-color);
  text-transform: uppercase;
}

/* MSN / AOL Style Flashing Unread Message Notification Badge */
@keyframes msnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.95), 0 0 16px rgba(251, 191, 36, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  }
}

.badge-unread-flash {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(180deg, #ff4d4f 0%, #cf1322 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ffa39e !important;
  font-family: 'Courier New', monospace;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  animation: msnPulse 1.2s infinite ease-in-out;
  user-select: none;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Windows Vista / 7 Analog Clock Gadget Styles
   -------------------------------------------------------------------------- */
.aero-clock-dial-wrapper {
  display: none; /* Hidden by default in XP, 90s, pink, dark themes */
}

[data-theme="vista-aero"] .aero-clock-dial-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 12px;
}

.aero-clock-dial {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #ffffff 0%, #f6f3eb 55%, #ded8c6 100%);
  border: 6px solid #2b333c;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(0, 15, 35, 0.45),
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(255, 255, 255, 0.6);
}

.aero-clock-glare {
  position: absolute;
  top: 2px;
  left: 3px;
  right: 3px;
  height: 52px;
  border-radius: 110px 110px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 4;
}

.aero-tick {
  position: absolute;
  background: #333d47;
}

.tick-12 {
  top: 4px;
  left: 50%;
  width: 3px;
  height: 8px;
  transform: translateX(-50%);
}

.tick-6 {
  bottom: 4px;
  left: 50%;
  width: 3px;
  height: 8px;
  transform: translateX(-50%);
}

.tick-3 {
  right: 4px;
  top: 50%;
  width: 8px;
  height: 3px;
  transform: translateY(-50%);
}

.tick-9 {
  left: 4px;
  top: 50%;
  width: 8px;
  height: 3px;
  transform: translateY(-50%);
}

.aero-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  border-radius: 3px;
  transform-origin: 50% 100%;
}

.aero-hand-hour {
  width: 4px;
  height: 32px;
  margin-left: -2px;
  background: #1c232b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
}

.aero-hand-min {
  width: 2.5px;
  height: 44px;
  margin-left: -1.25px;
  background: #1c232b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 3;
}

.aero-hand-sec {
  width: 1.5px;
  height: 54px;
  margin-left: -0.75px;
  background: #e04a1a;
  transform-origin: 50% calc(100% - 10px);
  bottom: calc(50% - 10px);
  z-index: 5;
}

.aero-clock-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b8c0c8 60%, #4a5460 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 6;
}

[data-theme="vista-aero"] .retro-clock-digital {
  font-family: 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 5px !important;
  color: #0b2545 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06) !important;
}

/* Visitor Hit Counter */
.hit-counter {
  display: inline-flex;
  background: #111827;
  border: 2px solid #64748b;
  border-radius: 4px;
  padding: 2px 4px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
}

.hit-digit {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #34d399;
  font-size: 13px;
  padding: 0 3px;
  border-right: 1px solid #374151;
  text-shadow: 0 0 5px #34d399;
}
.hit-digit:last-child {
  border-right: none;
}

[data-theme="pink-y2k"] .hit-digit {
  color: #f472b6;
  text-shadow: 0 0 5px #f472b6;
}

[data-theme="vista-aero"] .hit-counter {
  background: rgba(5, 18, 35, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 6px !important;
  box-shadow: 
    0 4px 12px rgba(0, 10, 25, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 3px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="vista-aero"] .hit-digit {
  color: #38bdf8 !important;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.7) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Dynamic Storage Tracker */
.storage-tracker-box {
  background: var(--card-header-bg);
  border: 1px solid var(--window-border);
  border-radius: var(--button-radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

[data-theme="vista-aero"] .storage-tracker-box {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px rgba(0, 15, 30, 0.15) !important;
}

.storage-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  color: var(--accent-color);
}

.storage-progress-track {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border: 1px solid #94a3b8;
  border-radius: var(--button-radius);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
}

[data-theme="vista-aero"] .storage-progress-track {
  background: rgba(10, 25, 45, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

.storage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  transition: width 0.4s ease-in-out;
}

[data-theme="pink-y2k"] .storage-progress-fill {
  background: linear-gradient(90deg, #f472b6 0%, #ec4899 100%);
}

[data-theme="dark-cyber"] .storage-progress-fill {
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
}

[data-theme="vista-aero"] .storage-progress-fill {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 255, 255, 0.25) 48%, 
    rgba(0, 0, 0, 0.08) 50%, 
    rgba(16, 185, 129, 0.95) 100%), #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.75), inset 0 1px 0 #ffffff !important;
}

.storage-tracker-subtext {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Multi-Theme Retro Audio Player Widget (WMP / Winamp / Cyber / Y2K)
   ========================================================================== */

/* Base Player Structure */
.winamp-player {
  padding: 10px;
  font-family: 'Courier New', monospace;
  transition: all 0.25s ease;
}

.winamp-screen {
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 11px;
  transition: all 0.25s ease;
}

.player-track-title {
  font-size: 10.5px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-top: 3px;
  align-items: center;
}

.player-cache-badge {
  font-size: 8px;
  padding: 0 3px;
  border-radius: 2px;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.player-status-badge {
  font-weight: bold;
  font-size: 8.5px;
}

.player-progress-container {
  width: 100%;
  height: 8px;
  cursor: pointer;
  position: relative;
  margin: 6px 0;
  overflow: hidden;
  border-radius: 4px;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  margin-top: 4px;
}

.eq-bar {
  width: 4px;
  border-radius: 1px;
  animation: eqJump 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.4s; }
.eq-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 16px; animation-delay: 0.5s; }
.eq-bar:nth-child(5) { height: 10px; animation-delay: 0.3s; }
.eq-bar:nth-child(6) { height: 18px; animation-delay: 0.6s; }
.eq-bar:nth-child(7) { height: 9px; animation-delay: 0.15s; }
.eq-bar:nth-child(8) { height: 15px; animation-delay: 0.45s; }

@keyframes eqJump {
  0% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.4); }
}

.player-ctrl-btn {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  padding: 3px 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.player-track-select {
  width: 100%;
  font-size: 9.5px;
  font-family: inherit;
  padding: 2px 4px;
  cursor: pointer;
}

.player-vol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  padding-top: 5px;
}

.player-vol-slider {
  width: 60px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Theme 1: Default / Classic XP (Windows Media Player 9/10 Luna Chrome)
   -------------------------------------------------------------------------- */
:root, [data-theme="classic-xp"] {
  /* Inherited defaults */
}
.winamp-player,
[data-theme="classic-xp"] .winamp-player {
  background: linear-gradient(180deg, #386db3 0%, #1c4582 25%, #102d59 75%, #0b1e3b 100%);
  border: 2px solid #5a91d9;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 12px rgba(0, 35, 90, 0.4);
  color: #93c5fd;
}

.winamp-screen,
[data-theme="classic-xp"] .winamp-screen {
  background: #08172e;
  border: 1px solid #1e3a5f;
  border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.85);
}

.player-track-title,
[data-theme="classic-xp"] .player-track-title {
  color: #60a5fa;
  text-shadow: 0 0 6px rgba(96, 165, 250, 0.7);
}

.player-time-row,
[data-theme="classic-xp"] .player-time-row {
  color: #93c5fd;
}

.player-status-badge.is-playing,
[data-theme="classic-xp"] .player-status-badge.is-playing {
  color: #38bdf8;
  text-shadow: 0 0 5px #38bdf8;
}

.eq-bar,
[data-theme="classic-xp"] .eq-bar {
  background: #38bdf8;
  box-shadow: 0 0 4px #38bdf8;
}

.player-progress-container,
[data-theme="classic-xp"] .player-progress-container {
  background: #0a192f;
  border: 1px solid #1e40af;
}

.player-progress-fill,
[data-theme="classic-xp"] .player-progress-fill {
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.7);
}

.player-ctrl-btn,
[data-theme="classic-xp"] .player-ctrl-btn {
  background: linear-gradient(180deg, #f0f4f8 0%, #cbd5e1 50%, #94a3b8 100%);
  border: 1px solid #64748b;
  color: #0f2744;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0,0,0,0.25);
}

.player-ctrl-btn:hover,
[data-theme="classic-xp"] .player-ctrl-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dbeafe 50%, #93c5fd 100%);
  color: #1e3a8a;
  border-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6), inset 0 1px 0 #fff;
}

.player-ctrl-btn.active,
[data-theme="classic-xp"] .player-ctrl-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.8);
}

.player-track-select,
[data-theme="classic-xp"] .player-track-select {
  background: #ffffff;
  color: #0c2340;
  border: 1px solid #7f9db9;
  border-radius: 3px;
}

.player-vol-row,
[data-theme="classic-xp"] .player-vol-row {
  color: #bfdbfe;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.player-vol-slider,
[data-theme="classic-xp"] .player-vol-slider {
  accent-color: #3b82f6;
}

/* --------------------------------------------------------------------------
   Theme 2: Pink / Y2K (Bubblegum Candy Translucent MP3 Player)
   -------------------------------------------------------------------------- */
[data-theme="pink-y2k"] .winamp-player {
  background: linear-gradient(135deg, rgba(255, 192, 203, 0.95) 0%, rgba(244, 114, 182, 0.9) 50%, rgba(219, 39, 119, 0.95) 100%);
  border: 2px solid #f472b6;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35), inset 0 1px 1px #ffffff;
  color: #831843;
}

[data-theme="pink-y2k"] .winamp-screen {
  background: #2e0854;
  border: 1.5px solid #ec4899;
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.85);
}

[data-theme="pink-y2k"] .player-track-title {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.85);
}

[data-theme="pink-y2k"] .player-time-row {
  color: #fbcfe8;
}

[data-theme="pink-y2k"] .player-status-badge.is-playing {
  color: #f472b6;
  text-shadow: 0 0 6px #f472b6;
}

[data-theme="pink-y2k"] .eq-bar {
  background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%);
  box-shadow: 0 0 6px #f472b6;
}

[data-theme="pink-y2k"] .player-progress-container {
  background: #1e053a;
  border: 1px solid #ec4899;
  border-radius: 6px;
}

[data-theme="pink-y2k"] .player-progress-fill {
  background: linear-gradient(90deg, #f472b6 0%, #db2777 100%);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.8);
}

[data-theme="pink-y2k"] .player-ctrl-btn {
  background: linear-gradient(180deg, #ffffff 0%, #fbcfe8 50%, #f472b6 100%);
  border: 1px solid #f472b6;
  color: #831843;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(236, 72, 153, 0.25), inset 0 1px 0 #fff;
}

[data-theme="pink-y2k"] .player-ctrl-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f472b6 60%, #db2777 100%);
  color: #ffffff;
  border-color: #be185d;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.7);
}

[data-theme="pink-y2k"] .player-ctrl-btn.active {
  background: #db2777;
  color: #ffffff;
  border-color: #be185d;
  box-shadow: 0 0 8px rgba(219, 39, 119, 0.9);
}

[data-theme="pink-y2k"] .player-track-select {
  background: #fdf2f8;
  color: #831843;
  border: 1px solid #f472b6;
  border-radius: 6px;
}

[data-theme="pink-y2k"] .player-vol-row {
  color: #ffe4e6;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="pink-y2k"] .player-vol-slider {
  accent-color: #ec4899;
}

/* --------------------------------------------------------------------------
   Theme 3: Beige / 90s PC (Classic 1997 Winamp / Windows 95 CD Player)
   -------------------------------------------------------------------------- */
[data-theme="beige-90s"] .winamp-player {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  border-radius: 0px;
  box-shadow: 2px 2px 0px #000000;
  color: #000000;
}

[data-theme="beige-90s"] .winamp-screen {
  background: #000000;
  border: 2px inset #ffffff;
  border-radius: 0px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
}

[data-theme="beige-90s"] .player-track-title {
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
}

[data-theme="beige-90s"] .player-time-row {
  color: #ffcc00;
}

[data-theme="beige-90s"] .player-status-badge.is-playing {
  color: #00ff00;
}

[data-theme="beige-90s"] .eq-bar {
  background: linear-gradient(180deg, #ff0000 0%, #ffff00 40%, #00ff00 100%);
  border-radius: 0px;
}

[data-theme="beige-90s"] .player-progress-container {
  background: #000000;
  border: 1px inset #ffffff;
  border-radius: 0px;
}

[data-theme="beige-90s"] .player-progress-fill {
  background: #00ff00;
  border-radius: 0px;
}

[data-theme="beige-90s"] .player-ctrl-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  color: #000000;
  border-radius: 0px;
  box-shadow: none;
}

[data-theme="beige-90s"] .player-ctrl-btn:hover {
  background: #d4d0c8;
  color: #000000;
}

[data-theme="beige-90s"] .player-ctrl-btn:active,
[data-theme="beige-90s"] .player-ctrl-btn.active {
  background: #a0a0a0;
  border: 2px inset #ffffff;
  color: #000000;
}

[data-theme="beige-90s"] .player-track-select {
  background: #ffffff;
  color: #000000;
  border: 2px inset #ffffff;
  border-radius: 0px;
}

[data-theme="beige-90s"] .player-vol-row {
  color: #000000;
  border-top: 1px solid #808080;
}

[data-theme="beige-90s"] .player-vol-slider {
  accent-color: #000080;
}

/* --------------------------------------------------------------------------
   Theme 4: Dark / Cyber (Matrix Phosphor CRT Terminal)
   -------------------------------------------------------------------------- */
[data-theme="dark-cyber"] .winamp-player {
  background: #041008;
  border: 1px solid #00ff66;
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.25), inset 0 0 10px rgba(0, 255, 102, 0.05);
  color: #00ff66;
}

[data-theme="dark-cyber"] .winamp-screen {
  background: #020a04;
  border: 1px solid #00aa44;
  border-radius: 2px;
  box-shadow: inset 0 0 8px rgba(0, 255, 102, 0.15);
}

[data-theme="dark-cyber"] .player-track-title {
  color: #00ff66;
  text-shadow: 0 0 6px #00ff66;
}

[data-theme="dark-cyber"] .player-time-row {
  color: #34d399;
}

[data-theme="dark-cyber"] .player-status-badge.is-playing {
  color: #00ff66;
  text-shadow: 0 0 8px #00ff66;
}

[data-theme="dark-cyber"] .eq-bar {
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
}

[data-theme="dark-cyber"] .player-progress-container {
  background: #020803;
  border: 1px solid #00aa44;
}

[data-theme="dark-cyber"] .player-progress-fill {
  background: #00ff66;
  box-shadow: 0 0 10px #00ff66;
}

[data-theme="dark-cyber"] .player-ctrl-btn {
  background: #041a0b;
  border: 1px solid #00ff66;
  color: #00ff66;
  border-radius: 2px;
  text-shadow: 0 0 4px #00ff66;
}

[data-theme="dark-cyber"] .player-ctrl-btn:hover {
  background: #00ff66;
  color: #041a0b;
  box-shadow: 0 0 10px #00ff66;
}

[data-theme="dark-cyber"] .player-ctrl-btn.active {
  background: #00ff66;
  color: #041a0b;
  box-shadow: 0 0 12px #00ff66;
  font-weight: bold;
}

[data-theme="dark-cyber"] .player-track-select {
  background: #041208;
  color: #00ff66;
  border: 1px solid #00ff66;
  border-radius: 2px;
}

[data-theme="dark-cyber"] .player-vol-row {
  color: #34d399;
  border-top: 1px solid rgba(0, 255, 102, 0.25);
}

[data-theme="dark-cyber"] .player-vol-slider {
  accent-color: #00ff66;
}

/* --------------------------------------------------------------------------
   Theme 5: Windows Vista / 7 Aero (WMP 11/12 Onyx Aero Glass)
   -------------------------------------------------------------------------- */
[data-theme="vista-aero"] .winamp-player {
  background: rgba(8, 20, 36, 0.65) !important;
  backdrop-filter: blur(8px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: 
    0 10px 30px rgba(0, 10, 25, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 15px rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

[data-theme="vista-aero"] .winamp-screen {
  background: rgba(2, 8, 18, 0.88) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="vista-aero"] .player-track-title {
  color: #7dd3fc !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.85) !important;
}

[data-theme="vista-aero"] .player-time-row {
  color: #a7f3d0 !important;
}

[data-theme="vista-aero"] .player-status-badge.is-playing {
  color: #38bdf8 !important;
  text-shadow: 0 0 8px #38bdf8 !important;
}

[data-theme="vista-aero"] .eq-bar {
  background: linear-gradient(180deg, #38bdf8 0%, #06b6d4 100%) !important;
  box-shadow: 0 0 6px #38bdf8 !important;
}

[data-theme="vista-aero"] .player-progress-container {
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

[data-theme="vista-aero"] .player-progress-fill {
  background: linear-gradient(90deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9) !important;
}

[data-theme="vista-aero"] .player-ctrl-btn {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.65) 0%, 
    rgba(255, 255, 255, 0.18) 48%, 
    rgba(30, 58, 95, 0.5) 50%, 
    rgba(15, 35, 60, 0.85) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #7dd3fc !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0,0,0,0.3) !important;
}

[data-theme="vista-aero"] .player-ctrl-btn:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(56, 189, 248, 0.55) 48%, 
    rgba(2, 132, 199, 0.8) 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), inset 0 1px 1px #fff !important;
}

[data-theme="vista-aero"] .player-ctrl-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.95), inset 0 1px 1px #fff !important;
}

[data-theme="vista-aero"] .player-track-select {
  background: rgba(6, 16, 30, 0.9) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 3px !important;
}

[data-theme="vista-aero"] .player-vol-row {
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="vista-aero"] .player-vol-slider {
  accent-color: #38bdf8 !important;
}

/* ==========================================================================
   Nostalgic Decorative Elements & Animations
   ========================================================================== */

@keyframes rotateGlobe {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rotating-globe {
  animation: rotateGlobe 12s linear infinite;
  display: inline-block;
}

@keyframes sparkle {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.sparkle-fx {
  animation: sparkle 2s ease-in-out infinite;
  display: inline-block;
}

/* 88x31 Button Styles */
.button-88x31 {
  width: 88px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, 1px 1px #000;
  text-align: center;
  line-height: 1.1;
  padding: 1px 3px;
}

/* ==========================================================================
   Theme Switcher Bar / Dropdown
   ========================================================================== */

.theme-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-chip {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.25);
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  transition: all 0.15s ease;
  user-select: none;
}

.theme-chip:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.theme-chip.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

[data-theme="vista-aero"] .theme-chip {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: #0c2b45 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 3px rgba(0,0,0,0.15) !important;
}

[data-theme="vista-aero"] .theme-chip:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
}

[data-theme="vista-aero"] .theme-chip.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9) 0%, rgba(2, 132, 199, 0.95) 100%) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), inset 0 1px 0 #fff !important;
}

/* ==========================================================================
   Multi-Image Gallery & Lightbox
   ========================================================================== */

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.gallery-thumbnail {
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  overflow: hidden;
  height: 140px;
  background: #f0f9ff;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-thumbnail:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 15, 30, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  border: 3px solid #7dd3fc;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e11d48;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* ==========================================================================
   Prose & Content Formatting
   ========================================================================== */

.prose {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-main);
}

.prose img {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  margin: 12px 0;
  cursor: zoom-in;
}

.prose pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.prose a {
  color: var(--accent-color);
  text-decoration: underline;
}

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

/* Top loading bar during HTMX boosted transitions */
body.htmx-request::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #38bdf8, #10b981, #3b82f6);
  z-index: 999999;
  animation: htmxLoadingBar 1.2s infinite ease-in-out;
}

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