/* ============================================================
   WIN XP THEME — Luna Blue desktop aesthetic
   ============================================================ */

[data-theme="winxp"] {
  --primary: #0a246a; --primary-light: #2a6dce;
  --accent: #245edb; --accent-2: #3c7adc;
  --bg: #d3e5f7; --surface: #ffffff; --surface-2: #eff5fb;
  --text: #000000; --muted: #4a5568; --subtle: #6b7280;
  --border: #a3c4e8; --border-soft: #d3e5f7;
  --green: #16a34a; --green-soft: #dcfce7;
  --red: #dc2626; --red-soft: #fee2e2;
  --yellow: #ca8a04; --yellow-soft: #fef9c3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12); --shadow-md: 0 3px 8px rgba(0,0,0,.16); --shadow-lg: 0 8px 24px rgba(0,0,0,.22);
  --radius-sm: 3px; --radius: 5px; --radius-lg: 7px;
  /* Luna Blue sidebar: white text, blue→gold gradient accents (cyan→gold = XP loading bar) */
  --sidebar-bg: #245EDB; --sidebar-text: #ffffff; --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(255,255,255,.18); --sidebar-hover-bg: rgba(255,255,255,.10);
  --sidebar-accent: #7BB8FF; --sidebar-glow: #FFD45A; --sidebar-glow-shadow: rgba(255,212,90,.5);
}
[data-theme="winxp-dark"] {
  /* XP Royale / Media Center dark variant */
  --primary: #4d9eff; --primary-light: #80b8ff;
  --accent: #4d9eff; --accent-2: #80b8ff;
  --bg: #0a1628; --surface: #112030; --surface-2: #182d42;
  --text: #d8eaf8; --muted: #7aadcc; --subtle: #4d7ea0;
  --border: #1e3a5a; --border-soft: #112030;
  --green: #4ade80; --green-soft: #052e16;
  --red: #f87171; --red-soft: #2a0e0c;
  --yellow: #fbbf24; --yellow-soft: #1c1100;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 4px 12px rgba(0,0,0,.5); --shadow-lg: 0 14px 36px rgba(0,0,0,.6);
  --radius-sm: 3px; --radius: 5px; --radius-lg: 7px;
  --sidebar-bg: #050f1e; --sidebar-text: #4d7ea0; --sidebar-text-active: #80b8ff;
  --sidebar-active-bg: rgba(77,158,255,.12); --sidebar-hover-bg: rgba(255,255,255,.04); --sidebar-accent: #4d9eff;
  --sidebar-glow: #80b8ff; --sidebar-glow-shadow: rgba(128,184,255,.5);
}

/* XP Luna button gradient */
body[data-theme="winxp"] button {
  background: linear-gradient(180deg, #4d8fff 0%, #245edb 50%, #1a4fbf 51%, #2a6dce 100%);
  border: 1px solid #0a246a;
  color: #fff;
  font-weight: bold;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 2px 4px rgba(0,0,0,.25);
  transition: filter .12s;
}
body[data-theme="winxp"] button:hover {
  filter: brightness(1.12);
  transform: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 4px 8px rgba(0,0,0,.3);
}
body[data-theme="winxp"] button:active {
  filter: brightness(.92);
  transform: none;
}
/* Sidebar buttons — transparent, no Luna gradient */
body[data-theme="winxp"] .ls-step,
body[data-theme="winxp"] .nav-group-header {
  all: revert !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
  padding: 8px 6px 8px 0 !important;
  color: var(--sidebar-text) !important;
  font-family: inherit !important;
  cursor: pointer !important;
}
body[data-theme="winxp"] .nav-group-header { padding: 8px 22px !important; }
body[data-theme="winxp"] .icon-btn {
  background: rgba(255,255,255,.15) !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 4px !important;
  filter: none !important;
  padding: 0 !important;
  color: #fff !important;
}
body[data-theme="winxp"] .lang-btn {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
  padding: 6px 0 !important;
}
/* ===== Win XP Luna Blue sidebar — glossy gradient, gold accents ===== */
body[data-theme="winxp"] aside {
  /* layered: top shine highlight + main Luna blue gradient */
  background:
    linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 70px),
    linear-gradient(180deg, #4d8fff 0%, #2a6dce 8%, #245EDB 40%, #1A4FBF 75%, #0F2F8C 100%) !important;
  border-right: 0 !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.22), 1px 0 0 #0a246a, 2px 0 6px rgba(0,0,0,.18) !important;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
}
body[data-theme="winxp"] aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); }

/* Brand area = XP title bar (lesklý modrý gradient s white shine + rounded bottom) */
body[data-theme="winxp"] .brand {
  background:
    linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 14px),
    linear-gradient(180deg, #1E5BC6 0%, #1841A8 50%, #0a246a 100%);
  margin: 0 0 8px;
  padding: 14px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  position: relative;
}
body[data-theme="winxp"] .brand::after {
  content: '';
  display: block;
  height: 0;
  background: none;
  margin: 0;
}
body[data-theme="winxp"] .brand-text h1 {
  color: #ffffff;
  font-family: 'Tahoma', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  letter-spacing: 0;
}
body[data-theme="winxp"] .brand-text .sub {
  color: #FFD45A;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  opacity: 1;
}
body[data-theme="winxp"] .brand .icon-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.18) 100%) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: 4px !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 2px 3px rgba(0,0,0,.25) !important;
}
body[data-theme="winxp"] .brand .icon-btn:hover {
  filter: brightness(1.15);
  transform: none !important;
}

/* Lang rail — white text, gold underline glow */
body[data-theme="winxp"] .lang-rail { margin: 4px 14px 10px; padding: 4px 4px 10px; }
body[data-theme="winxp"] .lang-btn {
  color: #ffffff !important;
  opacity: .65;
  font-family: 'Tahoma', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  letter-spacing: 1px;
}
body[data-theme="winxp"] .lang-btn:hover { opacity: 1; color: #FFD45A !important; }
body[data-theme="winxp"] .lang-btn.active { opacity: 1; color: #FFD45A !important; font-weight: 700; }
body[data-theme="winxp"] .lang-underline {
  background: linear-gradient(90deg, #7BB8FF, #FFD45A) !important;
  box-shadow: 0 0 10px rgba(255,212,90,.7) !important;
}

/* Level label + stepper */
body[data-theme="winxp"] .level-label { color: #FFD45A; opacity: 1; padding-left: 14px; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .level-stepper { padding: 0 14px 6px; }
body[data-theme="winxp"] .ls-line-bg { background: rgba(255,255,255,.15); }
body[data-theme="winxp"] .ls-step { color: #fff !important; }
body[data-theme="winxp"] .ls-step:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 100%) !important;
  border-radius: 4px;
}
body[data-theme="winxp"] .ls-name { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .ls-state { color: rgba(255,255,255,.65); }
body[data-theme="winxp"] .ls-dot {
  background: linear-gradient(180deg, #1841A8, #0a246a);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(0,0,0,.4);
}
body[data-theme="winxp"] .ls-step[data-state="completed"] .ls-dot {
  background: linear-gradient(180deg, #7BB8FF 0%, #245EDB 100%) !important;
  border-color: #FFD45A !important;
  box-shadow: 0 0 6px rgba(255,212,90,.4), 0 1px 0 rgba(255,255,255,.4) inset !important;
}
body[data-theme="winxp"] .ls-step[data-state="completed"] .ls-state { color: #FFD45A; }
body[data-theme="winxp"] .ls-step[data-state="active"] .ls-dot {
  background: linear-gradient(180deg, #FFE48A 0%, #E69010 100%) !important;
  border-color: #FFD45A !important;
  box-shadow: 0 0 8px rgba(255,212,90,.65), 0 1px 0 rgba(255,255,255,.5) inset !important;
}
body[data-theme="winxp"] .ls-step[data-state="active"] .ls-inner-dot { background: #fff !important; box-shadow: 0 0 4px rgba(255,255,255,.8) !important; }
body[data-theme="winxp"] .ls-step[data-state="active"] .ls-pulse { border-color: #FFD45A !important; }
body[data-theme="winxp"] .ls-step[data-state="active"] .ls-name { color: #FFD45A; font-weight: 700; }
body[data-theme="winxp"] .ls-step[data-state="active"] .ls-state { color: #FFD45A; }
body[data-theme="winxp"] .ls-step[data-state="locked"] .ls-dot { background: rgba(0,0,0,.20); border-color: rgba(255,255,255,.15); }

/* Nav items — Win XP Start Menu style highlight */
body[data-theme="winxp"] nav a,
body[data-theme="winxp"] .nav-home {
  color: #ffffff !important;
  font-family: 'Tahoma', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  border-left-color: transparent !important;
}
body[data-theme="winxp"] nav a:hover,
body[data-theme="winxp"] .nav-home:hover,
body[data-theme="winxp"] .nav-group-header:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.12) 100%) !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.30) inset, 0 -1px 0 rgba(0,0,0,.15) inset !important;
}
body[data-theme="winxp"] nav a.active,
body[data-theme="winxp"] .nav-home.active {
  background: linear-gradient(180deg, #FFE48A 0%, #FFC629 45%, #E69010 55%, #FFB347 100%) !important;
  color: #0a246a !important;
  border-left-color: #FFD45A !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.5) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -1px 0 rgba(0,0,0,.2) inset !important;
}
body[data-theme="winxp"] nav a.active .nav-icon,
body[data-theme="winxp"] .nav-home.active .nav-icon { color: #0a246a; opacity: 1; }
body[data-theme="winxp"] nav .group { color: #FFD45A; opacity: 1; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] nav .kbd { background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.20); }
body[data-theme="winxp"] .nav-group-header { color: #fff !important; font-family: 'Tahoma', sans-serif !important; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .nav-group-header .nav-icon { color: #fff; }

/* User widget — Win XP info panel look */
body[data-theme="winxp"] .user-widget {
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 100%) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.30) inset !important;
  margin: 16px 12px 0 !important;
}
body[data-theme="winxp"] .user-name { color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .user-role { color: #FFD45A !important; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .user-widget .icon-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.05) 100%) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  color: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.30) inset !important;
}

/* XP widget — gold→blue Luna loading bar */
body[data-theme="winxp"] .xp-widget {
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset !important;
  margin: 8px 12px 0 !important;
}
body[data-theme="winxp"] .xp-level { color: #FFD45A !important; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
body[data-theme="winxp"] .xp-bar { background: rgba(0,0,0,.30); border: 1px solid rgba(0,0,0,.25); height: 8px; border-radius: 4px; }
body[data-theme="winxp"] .xp-fill {
  background: linear-gradient(90deg, #7BB8FF 0%, #FFD45A 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
}
body[data-theme="winxp"] .xp-meta { color: #fff !important; opacity: .85; text-shadow: 0 1px 1px rgba(0,0,0,.3); }

/* Win XP dark (Royale) sidebar */
body[data-theme="winxp-dark"] aside {
  background: linear-gradient(180deg, #112030 0%, #050f1e 100%) !important;
  border-right: 1px solid #1e3a5a !important;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
}
body[data-theme="winxp"] .card {
  border: 1px solid #a3c4e8;
  background: #fff;
  box-shadow: 0 1px 3px rgba(36,94,219,.08);
}
body[data-theme="winxp"] .card.highlight {
  border-color: #245edb;
}
body[data-theme="winxp"] .login-box {
  border: 1px solid #7baee8;
  box-shadow: 0 8px 24px rgba(10,36,106,.25), 0 0 0 3px rgba(36,94,219,.1);
}
body[data-theme="winxp"] .login-box form button {
  background: linear-gradient(180deg, #4d8fff 0%, #245edb 50%, #1a4fbf 51%, #2a6dce 100%);
  color: #fff;
  border: 1px solid #0a246a;
  border-radius: 3px;
  filter: none;
}

