/* ==========================================
   Mac OS Classic Aqua (2001) Theme Stylesheet
   ========================================== */
.theme-mac-classic {
  --desktop-bg: linear-gradient(to bottom, #dbe6f6, #c5d7f0);
  --window-bg: #e8e8e8;
  --window-border: #a0a0a0;
  --text-main: #1d2b40;
  /* The accent, the surfaces, the bar and the second text of this look, which the desk's parts and a game in a window read; without them the first look's showed through. */
  --accent: #3b5f9b;
  --window-active-border: #8fa6c9;
  --surface: #ffffff;
  --surface-hover: #e4eaf4;
  --taskbar-bg: #e0e0e0;
  --text-secondary: #5c6b85;
}

.theme-mac-classic #desktop {
  background: linear-gradient(to bottom, #dbe6f6, #c5d7f0);
}

/* --- Windows --- */
.theme-mac-classic .window {
  border: 1px solid #a0a0a0;
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #e8e8e8;
  color: #1d2b40;
}

.theme-mac-classic .window .titlebar {
  background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 50%, #d8d8d8 51%, #e8e8e8 100%);
  color: #1d2b40;
  font-family: 'Lucida Grande', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #b4b4b4;
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-mac-classic .window .window-title {
  color: #1d2b40;
  font-weight: 600;
  text-align: center;
  padding: 0 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;  /* the padding keeps the title clear of the buttons; a max-width as well took that room twice */
}

.theme-mac-classic .window .window-controls {
  flex-direction: row-reverse;  /* close, minimize, zoom, code from the left, as on a Mac (the page has them the other way) */
  position: absolute;
  left: 8px;
  top: 6px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.theme-mac-classic .window .window-controls button {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 0;
  color: transparent;
  padding: 0;
}

.theme-mac-classic .window .window-controls .btn-close {
  background: #ff5f56;
  border-color: #e0443e;
}

.theme-mac-classic .window .window-controls .btn-minimize {
  background: #ffbd2e;
  border-color: #dea123;
}

.theme-mac-classic .window .window-controls .btn-maximize {
  background: #27c93f;
  border-color: #1aab29;
  order: -1;  /* zoom after minimize; the controls run right to left */
}

.theme-mac-classic .window .window-controls .btn-code {
  background: #a8a8a8;
  border-color: #8a8a8a;
  order: -2;  /* last, past zoom: green is zoom, as on a Mac */
}

.theme-mac-classic .code-toolbar {
  background: #d8d8d8;
  border-top: 1px solid #b4b4b4;
}

.theme-mac-classic .code-tab {
  background: #e8e8e8;
  color: #1d2b40;
  border: 1px solid #b4b4b4;
  border-radius: 10px;
}

.theme-mac-classic .code-tab.active {
  background: #3883ed;
  color: #ffffff;
  border-color: #2068c8;
}

/* --- Taskbar --- */
.theme-mac-classic #taskbar {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  border-top: 1px solid #ffffff;
  color: #1d2b40;
}

.theme-mac-classic .start-btn {
  background: linear-gradient(to bottom, #4c97ff, #1a62d6);
  border: 1px solid #1048b0;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Lucida Grande', sans-serif;
  font-weight: bold;
}

.theme-mac-classic .taskbar-windows button {
  background: linear-gradient(to bottom, #ffffff, #e0e0e0);
  border: 1px solid #a0a0a0;
  border-radius: 10px;
  color: #1d2b40;
  font-family: 'Lucida Grande', sans-serif;
}

.theme-mac-classic .taskbar-windows button.active {
  background: linear-gradient(to bottom, #3883ed, #1656b8);
  color: #ffffff;
  border-color: #0c3c88;
}

.theme-mac-classic .taskbar-tray {
  padding-right: 10px;  /* the tray has a border here; keep the clock off it */
  background: rgba(255,255,255,0.6);
  border: 1px solid #a0a0a0;
  border-radius: 10px;
}

.theme-mac-classic .guide-btn,
.theme-mac-classic .tray-item,
.theme-mac-classic #clock {
  color: #1d2b40 !important;
  font-weight: bold;
  font-family: 'Lucida Grande', sans-serif;
  text-shadow: none !important;
}

/* --- Context Menu & Start Menu --- */
.theme-mac-classic .context-menu {
  background: #f0f0f0;
  border: 1px solid #a0a0a0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  color: #1d2b40;
}

.theme-mac-classic .context-menu-item {
  color: #1d2b40;
  font-family: 'Lucida Grande', sans-serif;
  border-radius: 4px;
}

.theme-mac-classic .context-menu-item:hover {
  background: #3883ed;
  color: #ffffff;
}

.theme-mac-classic .start-menu {
  background: #e8e8e8;
  border: 1px solid #a0a0a0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  color: #1d2b40;
}

.theme-mac-classic .start-menu-header {
  background: linear-gradient(to bottom, #3883ed, #1656b8);
  color: #ffffff;
}

.theme-mac-classic .start-menu-username { color: #ffffff; font-family: 'Lucida Grande', sans-serif; }
.theme-mac-classic .start-menu-status { color: #d0e0ff; }
.theme-mac-classic .start-menu-item { color: #1d2b40; border-radius: 4px; }
.theme-mac-classic .start-menu-item:hover { background: #3883ed; color: #ffffff; }
.theme-mac-classic .start-menu-footer { background: #d8d8d8; border-top: 1px solid #b4b4b4; }
