/* ============================================================
   macOS Tahoe Web Emulator — styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dock-icon-size: 54px;
  --menu-h: 28px;
  --menu-bg: rgba(255,255,255,0.15);
  --menu-blur: 20px;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: url('cursor.svg') 0 0, auto;
}

/* ── Desktop ── */
#desktop {
  position: relative;
  width: 100vw; height: 100vh;
  background: #1e3a5f;
  overflow: hidden;
  user-select: none;
  cursor: url('cursor.svg') 0 0, auto;
}

/* ── Wallpaper ── */
#wallpaperLayer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ── Menu Bar ── */
#menuBar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--menu-h);
  background: var(--menu-bg);
  backdrop-filter: blur(var(--menu-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--menu-blur)) saturate(180%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
  border-bottom: .5px solid rgba(255,255,255,0.2);
}
.menu-left, .menu-right { display: flex; align-items: center; gap: 4px; }
.apple-menu { display: flex; align-items: center; padding: 0 8px; color: white; cursor: url('cursor.svg') 0 0, pointer; }
.menu-item {
  padding: 2px 8px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.9);
  border-radius: 4px; cursor: url('cursor.svg') 0 0, pointer; transition: background .1s;
}
.menu-item:hover { background: rgba(255,255,255,0.15); }
.menu-item.active { font-weight: 600; }
.menu-status { font-size: 12px; color: rgba(255,255,255,0.85); padding: 0 5px; display: flex; align-items: center; gap: 3px; }
.menu-clock { font-size: 12px; color: rgba(255,255,255,0.85); padding: 0 6px; font-weight: 400; white-space: nowrap; }

/* ── Widgets ── */
#widgets {
  position: absolute; top: 44px; left: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 10;
}
.widget {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: .5px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 12px;
  color: white;
}

/* Battery */
.battery-widget { display: flex; gap: 16px; padding: 14px 20px; }
.battery-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.battery-ring {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.battery-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.battery-ring .bg { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 3.5; }
.battery-ring .fill {
  fill: none; stroke: var(--color); stroke-width: 3.5;
  stroke-dasharray: 113.1;
  stroke-linecap: round;
}
.bat-icon { font-size: 18px; position: relative; z-index: 1; }
.bat-label { font-size: 11px; color: rgba(255,255,255,0.7); }

/* Calendar */
.calendar-widget { min-width: 155px; }
.cal-header { font-size: 10px; font-weight: 700; color: #ff453a; letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; text-align: center; }
.cal-dow { font-size: 9px; color: rgba(255,255,255,0.45); font-weight: 600; padding-bottom: 2px; }
.cal-day { font-size: 11px; color: rgba(255,255,255,0.8); padding: 2px 0; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; margin: auto; cursor: url('cursor.svg') 0 0, pointer; transition: background .15s; }
.cal-day:hover { background: rgba(255,255,255,0.15); }
.cal-day.today { background: #ff453a; color: white; font-weight: 700; }
.cal-day.other-month { color: rgba(255,255,255,0.2); }

/* Weather */
.weather-widget { min-width: 155px; padding: 8px 14px; }
.weather-row {
  display: grid; grid-template-columns: 36px 24px 24px 28px;
  align-items: center; gap: 4px;
  font-size: 13px; color: rgba(255,255,255,0.85);
  padding: 4px 0; border-radius: 8px;
}
.weather-row.active { font-weight: 600; color: white; }
.weather-row .hi { text-align: right; }
.weather-row span:first-child { font-size: 11px; letter-spacing: .5px; }

/* ═══════════════════════════════════════════
   DOCK — ported 1:1 from friend's Svelte source
   ═══════════════════════════════════════════ */

#dockContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5.2rem;
  padding: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
  transform: translateY(0%);
}

#dock {
  box-shadow:
    inset 0 0 0 0.2px rgba(255,255,255,0.7),
    0 0 0 0.2px rgba(0,0,0,0.7),
    rgba(0,0,0,0.3) 2px 5px 19px 7px;
  background-color: rgba(255,255,255,0.25);
  position: relative;
  padding: 0.3rem;
  border-radius: 1.2rem;
  height: 100%;
  display: flex;
  align-items: flex-end;
  pointer-events: auto;
  overflow: visible;
}

#dock::before {
  content: '';
  border-radius: 1.1rem;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
}

.dock-separator {
  height: 100%;
  width: 0.2px;
  background-color: rgba(0,0,0,0.3);
  margin: 0 4px;
  flex-shrink: 0;
}

.dock-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  border-radius: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: url('cursor.svg') 0 0, pointer;
  flex-shrink: 0;
  overflow: visible;
}

.dock-item img {
  display: block;
  height: auto;
  will-change: width;
  border-radius: 22%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  pointer-events: none;
}

.dock-icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  background: rgba(255,255,255,0.15);
  will-change: width, height;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.dock-dot {
  height: 4px;
  width: 4px;
  margin: 2px auto 0;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity .18s;
  flex-shrink: 0;
}
.dock-item.running .dock-dot { opacity: 1; }

.dock-label {
  white-space: nowrap;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(5px);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  box-shadow: rgba(0,0,0,0.3) 0px 1px 5px 2px;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  display: none;
  pointer-events: none;
  z-index: 999;
}
.dock-item:hover .dock-label { display: block; }

@keyframes dock-bounce {
  0%   { transform: translateY(0); }
  28%  { transform: translateY(-20px); }
  52%  { transform: translateY(-3px); }
  70%  { transform: translateY(-12px); }
  86%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
.dock-item.bouncing img,
.dock-item.bouncing .dock-icon-emoji {
  animation: dock-bounce 0.65s cubic-bezier(0.36,0.07,0.19,0.97) forwards;
}

/* ============================================================
   WINDOWS AREA
   ============================================================ */
#windows-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

/* ============================================================
   APP WINDOW — ported from Window.svelte
   ============================================================ */
.app-window {
  position: absolute;
  will-change: width, height;
  border-radius: 0.75rem;
  pointer-events: all;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;

  /* inactive shadow */
  box-shadow:
    0px 8.5px 10px rgba(0,0,0,0.115),
    0px 68px 80px rgba(0,0,0,0.23);

  /* dark border */
  outline: 0.5px solid rgba(0,0,0,0.25);

  cursor: url('cursor.svg') 0 0, default;
  user-select: none;
}

.app-window.active {
  box-shadow:
    0px 8.5px 10px rgba(0,0,0,0.28),
    0px 68px 80px rgba(0,0,0,0.56);
}

/* Drag handle — invisible, covers title bar zone */
.app-window-drag-handle {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  cursor: url('cursor.svg') 0 0, grab;
  z-index: 1;
}
.app-window-drag-handle:active { cursor: url('cursor.svg') 0 0, grabbing; }

/* ── Traffic Lights — ported from TrafficLights.svelte ── */
.tl-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  box-shadow: none !important;
}

.tl-lights {
  --btn-size: 0.78rem;
  display: grid;
  grid-template-columns: repeat(3, var(--btn-size));
  align-items: center;
  gap: 0.55rem;
}

.tl-btn {
  width:  var(--btn-size, 0.78rem);
  height: var(--btn-size, 0.78rem);
  border-radius: 50%;
  border: none;
  cursor: url('cursor.svg') 0 0, pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 100ms ease-in;
  position: relative;
  flex-shrink: 0;
}

.tl-btn .tl-icon {
  width: 60%; height: 60%;
  opacity: 0;
  transition: opacity 80ms ease;
  pointer-events: none;
}

/* Show icons on hover over the lights group */
.tl-lights:hover .tl-btn { transform: scale(1.15); }
.tl-lights:hover .tl-icon { opacity: 1; }

/* Unfocused — grey out */
.tl-container.unfocused .tl-btn {
  background-color: #b6b6b7 !important;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3) !important;
}

.tl-close    { background-color: #ff5f56; box-shadow: 0 0 0 0.5px #e0443e; }
.tl-minimize { background-color: #ffbd2e; box-shadow: 0 0 0 0.5px #dea123; }
.tl-maximize { background-color: #27c93f; box-shadow: 0 0 0 0.5px #1aab29; }

/* ============================================================
   TRASH APP — Finder-style window content
   ============================================================ */
.trash-app {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  background: #1e1e22;
  border-radius: 0.75rem;
  overflow: hidden;
  color: #e0e0e5;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-size: 13px;
}

/* Toolbar */
.finder-toolbar {
  height: 44px;
  min-height: 44px;
  background: rgba(40,40,46,0.95);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 80px;  /* left pad clears traffic lights */
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.finder-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.88);
}
.finder-title-icon { font-size: 16px; }

.finder-actions { display: flex; gap: 8px; }

.finder-btn {
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: url('cursor.svg') 0 0, pointer;
  transition: background 0.15s, opacity 0.15s;
}
.finder-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.finder-btn.disabled, .finder-btn:disabled {
  opacity: 0.35; cursor: url('cursor.svg') 0 0, default; pointer-events: none;
}

.empty-btn {
  background: rgba(255,80,80,0.15);
  border-color: rgba(255,80,80,0.3);
  color: #ff6b6b;
}
.empty-btn:hover { background: rgba(255,80,80,0.25); }

/* Body */
.finder-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.finder-sidebar {
  width: 160px;
  min-width: 160px;
  background: rgba(28,28,32,0.98);
  border-right: 0.5px solid rgba(255,255,255,0.07);
  padding: 12px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding: 8px 14px 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
  margin: 1px 6px;
  cursor: url('cursor.svg') 0 0, pointer;
  transition: background 0.1s;
}
.sidebar-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-item.active {
  background: rgba(0,122,255,0.25);
  color: #4da6ff;
}

/* Main file area */
.finder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(24,24,28,0.98);
}

.file-list-header {
  display: grid;
  grid-template-columns: 1fr 160px 80px;
  padding: 6px 16px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.file-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 160px 80px;
  padding: 7px 16px;
  border-radius: 6px;
  margin: 1px 6px;
  cursor: url('cursor.svg') 0 0, default;
  transition: background 0.1s;
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
}
.file-row:hover { background: rgba(255,255,255,0.05); }
.file-row.selected { background: rgba(0,122,255,0.28); color: #fff; }

.col-name {
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.file-icon { font-size: 16px; flex-shrink: 0; }
.col-date, .col-size { color: rgba(255,255,255,0.45); font-size: 12px; }

/* Empty state */
.trash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: rgba(255,255,255,0.25);
}
.empty-icon { font-size: 56px; opacity: 0.4; }
.empty-label { font-size: 15px; font-weight: 500; }

/* Status bar */
.finder-statusbar {
  height: 24px;
  min-height: 24px;
  background: rgba(30,30,34,0.95);
  border-top: 0.5px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-count {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* Scrollbar styling */
.file-list::-webkit-scrollbar,
.finder-sidebar::-webkit-scrollbar { width: 6px; }
.file-list::-webkit-scrollbar-track,
.finder-sidebar::-webkit-scrollbar-track { background: transparent; }
.file-list::-webkit-scrollbar-thumb,
.finder-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* ============================================================
   MENU BAR
   ============================================================ */
#menuBar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 300;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 500;
}
#menuBar::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(0,0,0,0.18);
  z-index: -1;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
}
.menu-left { display: flex; align-items: stretch; height: 100%; }
.menu-right { display: flex; align-items: center; gap: 2px; padding-right: 8px; height: 100%; }
.menu-wrap  { position: relative; }

.menu-item {
  display: flex; align-items: center;
  height: 100%; padding: 0 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.92);
  background: none; border: none; cursor: url('cursor.svg') 0 0, default;
  white-space: nowrap;
  transition: background 80ms ease;
}
.menu-item.apple-btn  { padding: 0 0.65rem 0 0.55rem; }
.menu-item.active-app { font-weight: 700; }
.menu-item:hover, .menu-item.menu-active { background: rgba(255,255,255,0.18); }

/* Dropdown */
.menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px); left: 0;
  min-width: 15rem; width: max-content;
  padding: 0.4rem;
  background: rgba(30,30,32,0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.12), 0 0 0 1px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.55);
  z-index: 9999;
}
.menu-dropdown.open { display: block; }

.menu-dropdown-item {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 0.22rem 0.55rem; margin: 0.05rem 0;
  font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.88);
  border-radius: 0.3rem; background: none; border: none; cursor: url('cursor.svg') 0 0, default; text-align: left;
  transition: background 60ms ease;
}
.menu-dropdown-item:not(:disabled):hover { background: var(--accent,#0a84ff); color: #fff; }
.menu-dropdown-item:disabled { color: rgba(255,255,255,0.32); }
.menu-shortcut { font-size: 0.78rem; opacity: 0.55; }
.menu-dropdown-item:not(:disabled):hover .menu-shortcut { opacity: 0.8; }
.menu-divider { width: 100%; height: 0.5px; background: rgba(255,255,255,0.12); margin: 3px 0; }

/* Status items */
.menu-status {
  display: flex; align-items: center; gap: 4px;
  height: 100%; padding: 0 5px;
  font-size: 0.78rem; color: rgba(255,255,255,0.88);
  background: none; border: none; cursor: url('cursor.svg') 0 0, default;
  border-radius: 0.25rem; white-space: nowrap;
}
.menu-status:hover, .menu-status.menu-active { background: rgba(255,255,255,0.18); }
.menu-clock { font-size: 0.78rem; font-weight: 500; cursor: url('cursor.svg') 0 0, default; }
.ac-toggle  { cursor: url('cursor.svg') 0 0, pointer; }

/* ============================================================
   ACTION CENTER — iOS-style panel
   ============================================================ */
:root { --ac-radius: 20px; --ac-glass: rgba(40,42,54,0.72); --accent: #0a84ff; }

.ac-panel {
  position: absolute;
  top: calc(1.8rem + 6px);
  right: 8px;
  width: 17rem;
  border-radius: var(--ac-radius);
  background: var(--ac-glass);
  backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.16), 0 24px 60px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34,1.4,0.64,1);
  overflow: hidden;
}
.ac-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.ac-body { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }

/* ── Rows ── */
.ac-row { display: flex; gap: 0.45rem; align-items: stretch; }

/* ── Wide pill (Wi-Fi / Focus) ── */
.ac-pill {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.09);
  border: none; border-radius: 14px; cursor: url('cursor.svg') 0 0, pointer;
  transition: background 150ms ease, transform 80ms ease;
  text-align: left; color: rgba(255,255,255,0.85);
}
.ac-pill:active { transform: scale(0.97); }
.ac-pill.ac-on  { background: rgba(255,255,255,0.22); }
.ac-pill-focus  { flex: 1.4; }
.ac-pill-wide   { flex: 2; }

.ac-pill-icon {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  transition: background 150ms ease;
}
.ac-pill.ac-on .ac-pill-icon { background: var(--accent); }

.ac-pill-text { display: flex; flex-direction: column; gap: 1px; }
.ac-pill-title { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1; }
.ac-pill-sub   { font-size: 0.68rem; color: rgba(255,255,255,0.5); }
.ac-pill.ac-on .ac-pill-sub { color: rgba(255,255,255,0.7); }

/* ── Circle buttons (Bluetooth, AirDrop, etc.) ── */
.ac-circle {
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(255,255,255,0.09);
  border: none; cursor: url('cursor.svg') 0 0, pointer;
  transition: background 150ms ease, transform 80ms ease;
  flex-shrink: 0;
  position: relative;
}
.ac-circle:active { transform: scale(0.93); }
.ac-circle.ac-on  { background: rgba(255,255,255,0.22); }

.ac-circle-icon {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: color 150ms ease;
}
.ac-circle.ac-on .ac-circle-icon { color: #fff; }

.ac-circle-label {
  font-size: 0.55rem; color: rgba(255,255,255,0.45); font-weight: 600;
  letter-spacing: 0.2px; white-space: nowrap;
}

/* Row 2: 2 circles + 1 focus pill spacer */
.ac-row:nth-child(2) { align-items: center; }

/* ── Now Playing card ── */
.ac-now-playing {
  flex: 1.1;
  background: rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 0.55rem 0.6rem;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.ac-np-art { font-size: 22px; }
.ac-np-info { min-width: 0; }
.ac-np-title  { font-size: 0.72rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-np-artist { font-size: 0.62rem; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-np-controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ac-np-btn {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: url('cursor.svg') 0 0, pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 120ms ease, transform 80ms ease;
}
.ac-np-btn:active { transform: scale(0.9); }
.ac-np-btn:hover  { background: rgba(255,255,255,0.22); }
.ac-np-play { background: rgba(255,255,255,0.2); }

/* ── Sliders ── */
.ac-slider-card {
  background: rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 0.5rem 0.75rem 0.6rem;
}
.ac-slider-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.ac-slider-track {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7);
}
.ac-slider-input {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.22);
  outline: none; cursor: url('cursor.svg') 0 0, pointer;
}
.ac-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
  cursor: url('cursor.svg') 0 0, pointer;
}

/* ── Utility circles row (bottom) ── */
.ac-row-utilities { justify-content: space-around; }
.ac-util-circle {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: none; cursor: url('cursor.svg') 0 0, pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background 150ms ease, transform 80ms ease;
}
.ac-util-circle:active { transform: scale(0.92); }
.ac-util-circle:hover  { background: rgba(255,255,255,0.16); color: #fff; }
.ac-util-circle.ac-util-on { background: rgba(255,255,255,0.22); color: #fff; }

/* Edit Controls pill */
.ac-edit-controls {
  text-align: center;
  font-size: 0.72rem; font-weight: 500;
  color: rgba(255,255,255,0.35);
  padding: 0.15rem 0 0.05rem;
  cursor: url('cursor.svg') 0 0, pointer;
  transition: color 150ms ease;
}
.ac-edit-controls:hover { color: rgba(255,255,255,0.65); }

/* ── Dark Mode ── */
#desktop.dark-mode #menuBar::before { background: rgba(0,0,0,0.45); }
#desktop.dark-mode .ac-panel { background: rgba(18,18,22,0.82); }

/* ── Custom cursor — applies globally, overrides everything ──
   Place cursor.svg in the root directory next to index.html  */
*, *::before, *::after {
  cursor: url('cursor.svg') 0 0, auto !important;
}

/* Drag handle keeps grab feel visually but still uses custom cursor */
.app-window-drag-handle {
  cursor: url('cursor.svg') 0 0, grab !important;
}
.app-window-drag-handle:active {
  cursor: url('cursor.svg') 0 0, grabbing !important;
}

/* ── Menu bar PNG status icons (battery, action-center) ── */
.mb-status-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  /* Invert to white since menu bar is always dark-ish */
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.menu-status:hover .mb-status-icon { opacity: 1; }

/* ── Dock icon crossfade during dark mode switch ── */
.dock-item img {
  transition: opacity 0.22s ease;
}

/* ── Dock dark mode pill — set base so JS transition works ── */
#dock {
  will-change: background, box-shadow;
}
