/* ==========================================
   Mac OS X Tiger / Panther Brushed Metal Theme Stylesheet
   ========================================== */
.theme-mac-brushed {
  --desktop-bg: linear-gradient(to bottom, #19468e, #091c42);
  --window-bg: #e0e0e0;
  --window-border: #777777;
  --text-main: #000000;
  /* 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: #4f7fb5;
  --window-active-border: #8a8a8a;
  --surface: #f4f4f4;
  --surface-hover: #e2e2e2;
  --taskbar-bg: #cccccc;
  --text-secondary: #555555;
}

.theme-mac-brushed #desktop {
  background: linear-gradient(to bottom, #19468e, #091c42);
}

/* --- Windows --- */
.theme-mac-brushed .window {
  border: 1px solid #777777;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  background: #e0e0e0;
  color: #000000;
}

.theme-mac-brushed .window .titlebar {
  background: repeating-linear-gradient(to bottom, #eeeeee 0px, #e8e8e8 1px, #d4d4d4 2px, #cccccc 3px);
  color: #222222;
  font-family: 'Lucida Grande', sans-serif;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid #888888;
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.theme-mac-brushed .window .window-title {
  color: #222222;
  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-brushed .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-brushed .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.3);
  font-size: 0;
  color: transparent;
  padding: 0;
}

.theme-mac-brushed .window .window-controls .btn-close {
  background: #ff5f56;
}

.theme-mac-brushed .window .window-controls .btn-minimize {
  background: #ffbd2e;
}

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

.theme-mac-brushed .window .window-controls .btn-code {
  background: #9a9a9a;
  order: -2;  /* last, past zoom: green is zoom, as on a Mac */
}

.theme-mac-brushed .code-toolbar {
  background: linear-gradient(to bottom, #dddddd, #bbbbbb);
  border-top: 1px solid #999999;
}

.theme-mac-brushed .code-tab {
  background: #eeeeee;
  color: #000000;
  border: 1px solid #888888;
  border-radius: 4px;
}

.theme-mac-brushed .code-tab.active {
  background: linear-gradient(to bottom, #4c97ff, #1a62d6);
  color: #ffffff;
  border-color: #0c42a0;
}

/* --- Taskbar --- */
.theme-mac-brushed #taskbar {
  background: linear-gradient(to bottom, #dddddd 0%, #bbbbbb 100%);
  border-top: 1px solid #ffffff;
  color: #000000;
}

.theme-mac-brushed .start-btn {
  background: linear-gradient(to bottom, #606060, #303030);
  border: 1px solid #111111;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Lucida Grande', sans-serif;
  font-weight: bold;
}

.theme-mac-brushed .taskbar-windows button {
  background: linear-gradient(to bottom, #ffffff, #dcdcdc);
  border: 1px solid #888888;
  border-radius: 8px;
  color: #000000;
}

.theme-mac-brushed .taskbar-windows button.active {
  background: linear-gradient(to bottom, #4c97ff, #1a62d6);
  color: #ffffff;
  border-color: #0c42a0;
}

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

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

/* --- Context Menu & Start Menu --- */
.theme-mac-brushed .context-menu {
  background: #e0e0e0;
  border: 1px solid #888888;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  color: #000000;
}

.theme-mac-brushed .context-menu-item {
  color: #000000;
  font-family: 'Lucida Grande', sans-serif;
}

.theme-mac-brushed .context-menu-item:hover {
  background: #1a62d6;
  color: #ffffff;
}

.theme-mac-brushed .start-menu {
  background: #e0e0e0;
  border: 1px solid #888888;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  color: #000000;
}

.theme-mac-brushed .start-menu-header {
  background: linear-gradient(to bottom, #505050, #252525);
  color: #ffffff;
}

.theme-mac-brushed .start-menu-item { color: #000000; }
.theme-mac-brushed .start-menu-item:hover { background: #1a62d6; color: #ffffff; }
.theme-mac-brushed .start-menu-footer { background: #cccccc; border-top: 1px solid #999999; }
