/* ══ BUTTONS ══ */
/* Sistema bottoni condiviso — struttura base + varianti (primary, secondary, action) */

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tb-btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Secondary — stile neutro per azioni non primarie (es. Close, Cancel) ── */

.tb-btn.secondary {
  color: var(--grey-700);
}

.tb-btn.secondary:hover {
  background: var(--grey-100);
}

/* Stato attivo per toggle — usato quando il bottone rappresenta un'opzione accesa */
.tb-btn.secondary.active {
  background: var(--blue-light);
  color: var(--blue);
}

.tb-btn.secondary.active:hover {
  background: var(--blue-hover);
}

.tb-btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.tb-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3);
}

.tb-btn.primary:disabled {
  background: var(--grey-200);
  color: var(--grey-500);
  box-shadow: none;
}

.tb-btn.action {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid transparent;
}

.tb-btn.action:hover {
  background: var(--accent-surface);
  border-color: var(--accent-surface);
}

/* ══ BADGE ══ */
.tb-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ══ ICON BUTTONS ══ */
.page-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
}

.page-nav-btn:hover {
  background: var(--grey-100);
}
