/* ===== SPOTLIGHT ===== */
#spo {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99999;
  backdrop-filter: blur(6px);
  animation: fadeIn .15s;
}
@keyframes fadeIn { from { opacity: 0; } }

#spobox {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: calc(100% - 40px);
  background: rgba(245,245,245,0.92);
  backdrop-filter: blur(40px) saturate(200%);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: spoIn .2s cubic-bezier(.16,1,.3,1);
}
@keyframes spoIn {
  from { transform: translateX(-50%) scale(.92); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

#spoinput {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  font-size: 20px;
  font-family: var(--font);
  outline: none;
  color: var(--text);
}

#spores { border-top: 1px solid rgba(0,0,0,0.06); max-height: 320px; overflow-y: auto; }

.sr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .1s;
}
.sr:hover, .sr.sel { background: var(--accent); color: #fff; }
.sr-icon { font-size: 22px; width: 30px; text-align: center; }
.sr-text { font-size: 14px; font-weight: 500; }

/* ===== NOTIFICATION CENTER ===== */
#nc {
  display: none;
  position: absolute;
  top: 28px;
  right: 0;
  width: 320px;
  height: calc(100% - 28px);
  background: rgba(245,245,245,0.8);
  backdrop-filter: blur(40px) saturate(180%);
  z-index: 9998;
  padding: 16px;
  overflow-y: auto;
  box-shadow: -2px 0 20px rgba(0,0,0,0.12);
  animation: slideL .25s cubic-bezier(.16,1,.3,1);
}
@keyframes slideL {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.ncw {
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
}
.nch { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ===== CONTEXT MENU ===== */
#ctx {
  display: none;
  position: absolute;
  background: rgba(245,245,245,0.92);
  backdrop-filter: blur(30px);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 99999;
  min-width: 200px;
}

.ci {
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text);
}
.ci:hover { background: var(--accent); color: #fff; }
.csep { height: 1px; background: rgba(0,0,0,0.08); margin: 4px 8px; }

/* ===== APP SWITCHER (Cmd+Tab) ===== */
#app-switcher {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

#app-switcher.visible {
  opacity: 1;
}

.switcher-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.switcher-container {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(30,30,30,0.92);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#app-switcher.visible .switcher-container {
  transform: scale(1);
}

.switcher-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  min-width: 100px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.switcher-item.selected {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}

.switcher-icon {
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.switcher-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switcher-minimized {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== MENU BAR DROPDOWNS ===== */
.menu-dropdown {
  position: fixed;
  background: rgba(245,245,245,0.95);
  backdrop-filter: blur(30px);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 99999;
  min-width: 220px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text);
}

.menu-item:hover {
  background: var(--accent);
  color: #fff;
}

.menu-item:hover .menu-shortcut {
  opacity: 0.9;
}

.menu-separator {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 4px 8px;
}

.menu-shortcut {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 20px;
}
