@import './team-space-tokens';

.ts-dialog {
  display: flex;
  flex-direction: column;
  font-family: $ts-font;
  min-width: 420px;
  max-width: 90vw;
}

.ts-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;

  h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: $ts-ink;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: $ts-ink-muted;
  cursor: pointer;

  &:hover {
    background: $ts-surface-muted;
    color: $ts-ink;
  }
}

.ts-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 24px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: $ts-ink-muted;
}

.field-input {
  font-family: $ts-font;
  font-size: 14px;
  color: $ts-ink;
  padding: 10px 12px;
  border: 1px solid $ts-border;
  border-radius: 8px;
  outline: none;
  background: $ts-surface;
  transition: border-color 0.15s ease;

  &:focus {
    border-color: $ts-accent;
    box-shadow: 0 0 0 3px rgba($ts-accent, 0.12);
  }
}

.field-textarea {
  resize: vertical;
  min-height: 64px;
}

.ts-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px 20px;
  border-top: 1px solid $ts-border;
}

.btn {
  font-family: $ts-font;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}

.btn-ghost {
  background: transparent;
  color: $ts-ink-muted;

  &:hover {
    background: $ts-surface-muted;
  }
}

.btn-primary {
  background: $ts-accent;
  color: white;

  &:hover {
    background: $ts-accent-dark;
  }
}
