
/* ===== Telegram-style swipe-to-reveal actions (2-stage) ===== */

.swipe-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-4xl, 24px);
  min-height: 64px;
  margin-bottom: 4px;
}

.swipe-row.inline-editing {
  overflow: visible;
  z-index: 20;
}

.swipe-card {
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.swipe-actions {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  border-radius: var(--radius-4xl, 24px);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.swipe-row.show-actions .swipe-actions {
  opacity: 1;
}

.swipe-actions button {
  border: none;
  color: #16161e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.swipe-actions button:active {
  opacity: 0.7;
}

/* Edit button (60px wide, visible first) */
.swipe-edit {
  width: 60px;
  background: linear-gradient(180deg, #6183bb, #3d59a1);
}

/* Delete button (60px wide, behind edit) */
.swipe-delete {
  width: 60px;
  background: linear-gradient(180deg, #f7768e, #914c54);
}

.swipe-row.show-edit .swipe-delete,
.swipe-row.show-delete .swipe-edit {
  display: none;
}

/* When card is swiped to stage 1 (-60px) */
.swipe-card.swiped-edit {
  transform: translateX(-60px);
}

/* When card is swiped to stage 2 (-120px) */
.swipe-card.swiped-delete {
  transform: translateX(-120px);
}
