/* File: tadaysWeb/src/tasks/features/common/controls.css */
/* CONTROLS -- the few controls every feature shares: round icon buttons,
   capsule buttons, the separator and the hover tooltip (popover.js).
   Knows nothing about tasks; reads the tokens in core/tokens.css. */

/* round icon buttons: no box until you point at them */
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: none; background: transparent;
  font-size: 15px; line-height: 1; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn:hover { background: var(--surface-alt); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.icon-btn.pressing { transform: scale(.86); transition: transform .15s; }

.fsep { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }

/* capsule buttons */
.btn {
  font: inherit; font-size: 12px; padding: 6px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
}
.btn:hover { background: var(--surface-alt); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.btn.danger { color: #c0392b; border-color: #e8c4be; }
.btn.primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.primary:hover { opacity: .88; background: var(--text); }

.tip {
  position: absolute; z-index: 70; display: none;
  background: var(--text); color: var(--surface);
  font-size: 11px; padding: 5px 9px; border-radius: 8px;
  pointer-events: none;
  white-space: pre-line;        /* multi-line slot tips */
  max-width: 260px;
}
.tip.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  .icon-btn.pressing { transition: none; }
}
