/* ============================================================
   macOS Web — extra features (modern theme additions)
   ============================================================ */

/* ---------- Dock sizing + position ---------- */
.dock-item { width: var(--dock-icon, 50px); height: var(--dock-icon, 50px); }
.dock-item img, .dock-item svg.app-icon { width: var(--dock-icon, 50px); height: var(--dock-icon, 50px); }
#dock { height: auto; }

#dock-container.dock-bottom { bottom: 4px; left: 0; right: 0; top: auto; justify-content: center; align-items: flex-end; }
.dock-bottom .dock-item { transform-origin: bottom center; }

#dock-container.dock-left { top: 0; bottom: 0; left: 6px; right: auto; flex-direction: column; justify-content: center; align-items: flex-start; }
#dock-container.dock-left #dock { flex-direction: column; align-items: center; }
.dock-left .dock-item { transform-origin: left center; }
.dock-left .dock-sep { width: 44px; height: 0.5px; margin: 3px 0; }
.dock-left .dock-label { bottom: auto; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.dock-left .dock-label::after { display: none; }

#dock-container.dock-right { top: 0; bottom: 0; right: 6px; left: auto; flex-direction: column; justify-content: center; align-items: flex-end; }
#dock-container.dock-right #dock { flex-direction: column; align-items: center; }
.dock-right .dock-item { transform-origin: right center; }
.dock-right .dock-sep { width: 44px; height: 0.5px; margin: 3px 0; }
.dock-right .dock-label { bottom: auto; right: calc(100% + 10px); left: auto; top: 50%; transform: translateY(-50%); }
.dock-right .dock-label::after { display: none; }

/* ---------- window tiling preview ---------- */
#tile-preview {
  position: absolute; display: none; z-index: 9; border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.22);
  border: 2px solid rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  pointer-events: none; transition: all 0.12s ease;
}

/* ---------- settings: segmented + style buttons ---------- */
.seg-control { display: inline-flex; background: rgba(0,0,0,0.07); border-radius: 8px; padding: 2px; }
.seg-btn { border: none; background: transparent; padding: 5px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: var(--font); color: #444; }
.seg-btn.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.16); color: #000; }
body.dark .seg-btn { color: #bbb; }
body.dark .seg-btn.active { background: #5a5a5e; color: #fff; }
.settings-content button.style-btn { border: 1px solid #ccc; background: #fff; border-radius: 8px; color: #333; }
body.dark .settings-content button.style-btn { background: #3a3a3a; color: #eee; border-color: #555; }
.settings-content button.style-btn.default { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Cmd+Tab app switcher ---------- */
#app-switcher { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.as-panel {
  display: flex; gap: 12px; padding: 20px 24px; max-width: 88vw; flex-wrap: wrap; justify-content: center;
  background: rgba(40,40,46,0.5);
  backdrop-filter: blur(34px) saturate(1.6); -webkit-backdrop-filter: blur(34px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.as-item { position: relative; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; border-radius: 20px; }
.as-item.sel { background: rgba(255,255,255,0.22); }
.as-item .as-name {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 13px; color: #fff; background: rgba(0,0,0,0.55);
  padding: 3px 10px; border-radius: 7px; opacity: 0; pointer-events: none;
}
.as-item.sel .as-name { opacity: 1; }

/* ---------- menu-bar popovers (wifi / battery) ---------- */
.os-popover {
  position: absolute; z-index: 6600; min-width: 270px; padding: 12px;
  background: rgba(246,246,246,0.78);
  backdrop-filter: blur(34px) saturate(1.7); -webkit-backdrop-filter: blur(34px) saturate(1.7);
  border: 0.5px solid rgba(0,0,0,0.12); border-radius: 14px;
  box-shadow: 0 18px 52px rgba(0,0,0,0.32); color: #1d1d1f; animation: dropIn 0.14s ease;
}
body.dark .os-popover { background: rgba(42,42,44,0.82); color: #eee; }
.pop-title { font-size: 14px; font-weight: 700; margin: 2px 4px 10px; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; }
.pop-row.click { cursor: pointer; }
.pop-row.click:hover { background: rgba(var(--accent-rgb),0.16); }
.pop-net { display: flex; align-items: center; gap: 9px; }
.pop-net .bars { color: var(--accent); }
.pop-sep { height: 0.5px; background: rgba(0,0,0,0.12); margin: 7px 4px; }
body.dark .pop-sep { background: rgba(255,255,255,0.12); }

/* ---------- Notification Center ---------- */
#notif-center {
  position: fixed; top: 0; right: 0; bottom: 0; width: 348px; z-index: 6300;
  padding: 36px 16px 16px; overflow-y: auto;
  transform: translateX(115%); transition: transform 0.32s cubic-bezier(0.2,0.8,0.2,1);
}
#notif-center.open { transform: none; }
.nc-widget {
  background: rgba(250,250,250,0.6);
  backdrop-filter: blur(36px) saturate(1.7); -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 0.5px solid rgba(255,255,255,0.4); border-radius: 20px;
  padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 12px 34px rgba(0,0,0,0.2); color: #1d1d1f;
}
body.dark .nc-widget { background: rgba(38,38,42,0.62); color: #eee; }
.ncw-clock { text-align: center; }
.ncw-time { font-size: 46px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ncw-date { font-size: 13px; opacity: 0.7; margin-top: -2px; }
.ncw-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.55; margin-bottom: 10px; }
.ncw-weather-temp { font-size: 38px; font-weight: 300; }
.ncw-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; text-align: center; font-size: 11px; }
.ncw-cal-grid .h { opacity: 0.5; font-weight: 600; }
.ncw-cal-grid .d.today { background: #ff3b30; color: #fff; border-radius: 50%; }
.nc-empty { text-align: center; color: rgba(255,255,255,0.85); font-size: 14px; padding: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* ---------- WEATHER app ---------- */
.weather { height: 100%; overflow-y: auto; color: #fff; display: flex; flex-direction: column; }
.weather-toolbar { padding: 10px 14px; }
.weather-search { width: 100%; height: 30px; border-radius: 9px; border: none; background: rgba(255,255,255,0.22); color: #fff; padding: 0 14px; outline: none; font-family: var(--font); }
.weather-search::placeholder { color: rgba(255,255,255,0.75); }
.weather-top { padding: 16px 26px 22px; text-align: center; }
.weather-city { font-size: 24px; font-weight: 600; }
.weather-now { font-size: 13px; opacity: 0.85; }
.weather-temp { font-size: 74px; font-weight: 200; line-height: 1.05; }
.weather-cond { font-size: 17px; }
.weather-hilo { font-size: 14px; opacity: 0.9; margin-top: 2px; }
.weather-hours { display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px; }
.wh { min-width: 56px; text-align: center; background: rgba(255,255,255,0.13); border-radius: 14px; padding: 10px 6px; flex-shrink: 0; }
.wh-time { font-size: 12px; opacity: 0.85; } .wh-emoji { font-size: 20px; margin: 4px 0; } .wh-temp { font-size: 14px; font-weight: 600; }
.weather-days { padding: 4px 18px 18px; }
.wd { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 0.5px solid rgba(255,255,255,0.2); font-size: 14px; }
.wd-day { width: 42px; } .wd-emoji { width: 26px; text-align: center; font-size: 18px; }
.wd-lo { width: 34px; text-align: right; opacity: 0.7; } .wd-hi { width: 34px; }
.wd-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.wd-bar i { position: absolute; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#74c0fc,#ffd43b,#ff8787); }
.weather-note { text-align: center; font-size: 12px; opacity: 0.8; padding: 8px; }

/* ---------- CLOCK app ---------- */
.clock-app { height: 100%; display: flex; flex-direction: column; background: #0a0a0c; color: #fff; }
.clock-tabs { display: flex; justify-content: center; gap: 6px; padding: 10px; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.clock-tab { padding: 6px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #9a9a9a; }
.clock-tab.active { background: rgba(255,255,255,0.13); color: #fff; }
.clock-pane { flex: 1; overflow-y: auto; padding: 22px; }
.world-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.world-city { font-size: 19px; } .world-sub { font-size: 12px; color: #888; }
.world-time { font-size: 34px; font-weight: 200; font-variant-numeric: tabular-nums; }
.sw-display, .tm-display { font-size: 66px; font-weight: 200; text-align: center; font-variant-numeric: tabular-nums; margin: 16px 0; }
.sw-btns, .tm-btns { display: flex; justify-content: center; gap: 40px; }
.sw-btn { width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); cursor: pointer; font-size: 14px; color: #fff; background: rgba(255,255,255,0.1); }
.sw-btn.go { background: rgba(48,209,88,0.22); color: #30d158; } .sw-btn.stop { background: rgba(255,69,58,0.22); color: #ff453a; }
.sw-laps { margin-top: 20px; } .sw-lap { display: flex; justify-content: space-between; padding: 9px 4px; border-top: 0.5px solid rgba(255,255,255,0.1); font-variant-numeric: tabular-nums; font-size: 14px; }
.tm-inputs { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 0; font-size: 40px; font-weight: 200; }
.tm-inputs input { width: 76px; background: rgba(255,255,255,0.08); border: none; color: #fff; text-align: center; font-size: 40px; font-weight: 200; border-radius: 10px; outline: none; font-family: var(--font); }
