/**
 * Windows XP Theme
 * Classic Windows XP visual styling
 */

:root {
  --xp-blue: #0054e3;
  --xp-blue-dark: #0041c2;
  --xp-blue-light: #7a96df;
  --xp-gray: #ece9d8;
  --xp-border: #0054e3;
  --xp-shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  overflow: hidden;
  -webkit-user-select: none; /* Safari support */
  user-select: none;
}

#desktop-container {
  background: #5a7edc;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%235A7EDC" width="100" height="100"/></svg>');
}

#desktop {
  width: 100%;
  height: calc(100% - 40px);
  position: relative;
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #245edc, #1941a5);
  border-top: 2px solid #0831d9;
  display: flex;
  align-items: center;
  padding: 0 8px;
  z-index: 9999;
  user-select: none;
}

#start-button {
  height: 36px;
  padding: 0 20px 0 8px;
  margin: 2px 4px;
  background: linear-gradient(to bottom, #3fa142, #2d8a2f);
  border: 1px solid #1e5e1f;
  border-radius: 0 18px 18px 0;
  color: white;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}

#start-button:hover {
  background: linear-gradient(to bottom, #4fb14f, #3a9a3a);
}

#quick-launch {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 4px;
  align-items: center;
}

.quick-launch-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.quick-launch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

#taskbar-windows {
  flex: 1;
  display: flex;
  gap: 4px;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

/* Scrollbar support for webkit */
#taskbar-windows::-webkit-scrollbar {
  display: none;
}

.taskbar-btn {
  min-width: 160px;
  max-width: 200px;
  height: 32px;
  padding: 0 8px;
  background: linear-gradient(to bottom, #3c7dde, #2456c1);
  border: 1px solid #0831d9;
  border-radius: 3px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.taskbar-btn.active {
  background: linear-gradient(to bottom, #ece9d8, #d6d3ce);
  color: #000;
  border-color: #0831d9;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#system-tray {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  color: white;
}

#taskbar-clock {
  padding: 0 12px;
  color: white;
  font-size: 11px;
  text-align: center;
  min-width: 70px;
  cursor: pointer;
  border-radius: 2px;
}

/* Window styles - keep minimal */
.window {
  font-family: "Tahoma", sans-serif;
}
.window-titlebar {
  -webkit-user-select: none;
  user-select: none;
  font-size: 12px;
  font-weight: bold;
}
.window-content {
  font-size: 11px;
}
button {
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ACA899;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
    padding: 2px;
    z-index: 10000;
    min-width: 150px;
}
.context-menu-item {
    padding: 4px 12px;
    cursor: default;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    color: black;
    display: flex;
    align-items: center;
    gap: 8px;
}
.context-menu-item:hover {
    background-color: #316AC5;
    color: white;
}
.context-menu-separator {
    height: 1px;
    background: #E0E0E0;
    border-bottom: 1px solid white;
    margin: 2px 2px;
}
