/* Action Card */
.action-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  flex: 1 1 auto;
  transition: all 0.2s ease;
}

.action-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
}

.action-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  margin-bottom: var(--space-3);
}

.action-card input[type="text"] {
  flex: 1;
  min-width: 150px;
}

.action-card button {
  white-space: nowrap;
}

.action-card:last-child > button {
  width: 100%;
}

/* Template Card */
.template-card {
  position: absolute;
  left: 0;
  top: calc(100% + var(--space-1));
  transform: translateY(-4px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.template-card .list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
}

.template-card button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border-subtle);
  font-weight: var(--font-weight-medium);
}

.template-card button:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-accent);
}

/* Template Row */
.template-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  transition: all 0.15s ease;
}

.template-row:hover {
  background: var(--color-surface);
  border-color: var(--color-border-accent);
}

.template-row span {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-main);
}

.template-row .row-actions {
  display: flex;
  gap: var(--space-2);
}

.form-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
