/* Windows XP look (Hebrew XP: Start button on the right). Switched with html[data-skin="xp"]. */
html[data-skin="xp"] {
  --xp-blue: #0a246a;
  --xp-face: #ece9d8;
  --xp-border: #0831d9;
  --xp-text: #000;
  font-size: 12px;
}
html[data-skin="xp"] body { font-family: Tahoma, 'Segoe UI', Arial, sans-serif; background: #3a6ea5; color: var(--xp-text); }

/* clock moves into the taskbar tray, speed buttons become a little toolbar */
html[data-skin="xp"] #top .clock { display: none; }
html[data-skin="xp"] #top { justify-content: flex-start; top: 10px; }
html[data-skin="xp"] .speed {
  background: var(--xp-face); border: 1px solid #fff; outline: 1px solid #aca899; border-radius: 3px; padding: 2px; box-shadow: 1px 1px 0 #716f64;
}
html[data-skin="xp"] .speed button { border-radius: 3px; padding: 4px 9px; font-size: 12px; color: #000; border: 1px solid transparent; }
html[data-skin="xp"] .speed button:hover { border-color: #fff #aca899 #aca899 #fff; }
html[data-skin="xp"] .speed button.on { background: #fff; color: #000; border-color: #aca899 #fff #fff #aca899; box-shadow: inset 1px 1px 2px rgba(0,0,0,.25); }

/* the panel is an XP window */
html[data-skin="xp"] #panel {
  background: var(--xp-face); border-radius: 8px 8px 0 0; padding: 0 0 8px; gap: 8px;
  border: 3px solid var(--xp-border); border-top: 0; box-shadow: 2px 3px 10px rgba(0,0,0,.45);
  bottom: calc(38px + env(safe-area-inset-bottom)); max-width: 760px; color: #000;
}
html[data-skin="xp"] #panel > *:not(.xp-title):not(#rooms) { margin-inline: 8px; }
html[data-skin="xp"] .xp-title {
  display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 6px 0 8px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
  border-radius: 7px 7px 0 0; color: #fff; font-weight: bold; font-size: 13px; text-shadow: 1px 1px #0f1089; margin: 0 -3px;
}
html[data-skin="xp"] .xp-btns { display: flex; gap: 2px; font-style: normal; }
html[data-skin="xp"] .xp-btns b {
  width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 3px; font-size: 11px;
  background: linear-gradient(135deg, #3c8cff, #1257e6 60%, #0b45c9); text-shadow: none;
}
html[data-skin="xp"] .xp-btns b:last-child { background: linear-gradient(135deg, #e7826a, #d8441c 60%, #c13314); }

html[data-skin="xp"] .scrub select { background: #fff; border: 1px solid #7f9db9; border-radius: 0; padding: 2px 4px; font-size: 12px; }
html[data-skin="xp"] #timeSlider { accent-color: #316ac5; }

/* XP push buttons */
html[data-skin="xp"] .chip, html[data-skin="xp"] .views button, html[data-skin="xp"] .chips.small button {
  background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%); border: 1px solid #003c74; border-radius: 3px;
  color: #000; font-size: 12px; box-shadow: none;
}
html[data-skin="xp"] .chip:hover, html[data-skin="xp"] .views button:hover, html[data-skin="xp"] .chips.small button:hover {
  box-shadow: inset 0 0 0 2px #f8b636, inset 0 -2px 0 2px #e5a01a;
}
html[data-skin="xp"] .chip.on, html[data-skin="xp"] .views button.on {
  background: linear-gradient(180deg, #cdcac3, #e3e2da 20%, #f1f0ea); color: #000; box-shadow: inset 0 0 0 2px #316ac5;
}
html[data-skin="xp"] .chip { padding: 4px 10px 4px 8px; }
html[data-skin="xp"] .chip b { font-size: 12px; }
html[data-skin="xp"] .chip span { color: #333; }
html[data-skin="xp"] .chip .dot { border-radius: 3px; }

/* rooms list = Start menu */
html[data-skin="xp"] #rooms {
  position: fixed; inset-inline: auto 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom)); width: 230px;
  background: #fff; border: 2px solid #0a54e3; border-radius: 8px 8px 0 0; padding: 50px 6px 8px; flex-direction: column; flex-wrap: nowrap; gap: 0;
  box-shadow: 3px 3px 8px rgba(0,0,0,.5);
}
html[data-skin="xp"] #rooms::before {
  content: 'דניאל'; position: absolute; top: 0; inset-inline: 0; height: 42px; display: flex; align-items: center; padding-inline: 12px;
  background: linear-gradient(180deg, #1868ce, #0e60cb 12%, #2a7ae0 60%, #1b6ad8); color: #fff; font-weight: bold; font-size: 14px;
  border-radius: 6px 6px 0 0; text-shadow: 1px 1px #0d3a87;
}
html[data-skin="xp"] #rooms button { background: none; border: 0; text-align: start; padding: 6px 8px; border-radius: 0; font-size: 12px; }
html[data-skin="xp"] #rooms button:hover { background: #316ac5; color: #fff; box-shadow: none; }

/* taskbar */
html[data-skin="xp"] #xpbar {
  display: flex; position: fixed; bottom: 0; inset-inline: 0; height: calc(30px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
  align-items: stretch; z-index: 4;
}
html[data-skin="xp"] #xpStart {
  display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 0 12px 0 22px;
  color: #fff; font-style: italic; font-weight: bold; font-size: 17px; text-shadow: 1px 1px 2px #1b3a1b;
  background: linear-gradient(180deg, #3c8b3c 0, #4ca64c 10%, #56b856 45%, #3e973e 85%, #2f7a2f);
  border-radius: 0 0 0 12px / 0 0 0 30px; border-start-end-radius: 0; border-end-end-radius: 0;
  border-radius: 12px 0 0 12px; box-shadow: inset -1px 0 2px rgba(255,255,255,.3);
}
html[data-skin="xp"] #xpStart .flag {
  width: 18px; height: 18px; border-radius: 3px; transform: skewY(-6deg);
  background: conic-gradient(from 0deg at 50% 50%, #7cbe3c 0 25%, #2f8de4 0 50%, #f6c63c 0 75%, #f15a29 0);
}
html[data-skin="xp"] .xp-tasks { flex: 1; display: flex; align-items: center; padding: 0 8px; gap: 4px; min-width: 0; }
html[data-skin="xp"] .xp-task {
  background: #1e52b7; color: #fff; border-radius: 3px; padding: 4px 10px; box-shadow: inset 1px 1px 2px rgba(0,0,0,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}
html[data-skin="xp"] .xp-tray {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #fff; font-size: 12px;
  background: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9);
  border-inline-end: 1px solid #092e8e; box-shadow: inset 1px 0 1px #18bbff;
}

/* labels: yellow XP tooltips */
html[data-skin="xp"] .tag { background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 6px; box-shadow: 2px 2px 3px rgba(0,0,0,.3); font-family: Tahoma, sans-serif; }
html[data-skin="xp"] .room-label { background: #ffffe1; color: #000; border: 1px solid #555; border-radius: 0; font-family: Tahoma, sans-serif; font-size: 11px; }

/* boot screen */
html[data-skin="xp"] #loading { background: #000; }
html[data-skin="xp"] #loading p { color: #fff; font-family: Tahoma, sans-serif; font-size: 13px; }
html[data-skin="xp"] #loading .bar { width: 160px; height: 16px; border: 2px solid #b2b2b2; border-radius: 4px; background: #000; padding: 2px; }
html[data-skin="xp"] #loading .bar i { width: 34px !important; border-radius: 2px; transition: none;
  background: linear-gradient(90deg, transparent 0 2px, #2838c7 2px 9px, transparent 9px 12px, #2838c7 12px 19px, transparent 19px 22px, #2838c7 22px 29px, transparent 29px);
  animation: xpboot 1.6s linear infinite; }
@keyframes xpboot { from { transform: translateX(-40px); } to { transform: translateX(160px); } }

html[data-skin="xp"] #walkbar button { border-radius: 3px; background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); border: 1px solid #003c74; color: #000; }
html[data-skin="xp"] body.walking #walkbar { bottom: calc(40px + env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  html[data-skin="xp"] #panel { inset-inline: 8px; }
  html[data-skin="xp"] .xp-task { display: none; }
  html[data-skin="xp"] #family .chip { flex: 1 1 46%; min-width: 0; }
  html[data-skin="xp"] .chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html[data-skin="xp"] #xpStart { font-size: 15px; padding: 0 10px 0 16px; }
}
