/* ==============================================
   MONITOR-SWITCHER-FC - Styles
   Uses FC design tokens from styles/colors.css
   ============================================== */

monitor-switcher-fc {
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--pad-sm);
  margin-right: 10px;
  padding: var(--pad-sm) var(--pad-sm);
}

monitor-switcher-fc[hidden] {
  display: none;
}

monitor-snap {
  align-items: center;
  display: flex;
  gap: var(--pad-sm);
  margin-left: var(--pad-xs);
}

snap-pill {
  background: var(--text-muted);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--text-muted);
  display: flex;
  height: 16px;
  overflow: hidden;
  width: 24px;
}

snap-pill[data-split="horizontal"] {
  flex-direction: column;
}

snap-pill[data-split="center"] {
  justify-content: center;
  width: 16px;
}

snap-pill[data-split="quadrants"] {
  flex-wrap: wrap;
  width: 24px;
  height: 16px;
}

snap-pill[data-split="quadrants"] snap-target {
  flex: none;
  width: 50%;
  height: 50%;
  border: none;
  box-shadow: inset 0 0 0 0.5px var(--bg-hover);
}

monitor-cell,
snap-target {
  align-items: center;
  background: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  opacity: 0.7;
}

monitor-cell {
  border-radius: 2px;
  height: 16px;
  width: 24px;
}

snap-target {
  flex: 1;
  height: 100%;
}

snap-pill[data-split="center"] snap-target {
  position: relative;
}

snap-pill[data-split="center"] snap-target::before {
  background: var(--bg-deep);
  border: 1px solid var(--text-base);
  border-radius: 1px;
  bottom: 3px;
  content: "";
  left: 3px;
  position: absolute;
  right: 3px;
  top: 3px;
}

snap-pill[data-split="center"] snap-target[data-active]::before {
  border-color: var(--text-bright);
  background: var(--text-muted);
}

snap-target + snap-target {
  border-left: 1px solid var(--bg-hover);
}

snap-pill[data-split="horizontal"] snap-target + snap-target {
  border-left: none;
  border-top: 1px solid var(--bg-hover);
}

monitor-cell:hover {
  background: var(--text-faint);
  opacity: 1;
}

snap-target:hover {
  background: var(--text-faint);
  opacity: 1;
}

/* Active state - current monitor */
monitor-cell[data-current] {
  background-color: var(--success);
  opacity: 1;
}

monitor-cell[data-snap-active] {
  background-color: var(--warning);
  opacity: 1;
}

snap-target[data-active] {
  background-color: var(--success);
  opacity: 1;
}
