@import './meeting-tokens';

.mt-dialog {
  display: flex;
  flex-direction: column;
  font-family: $mt-font;
  min-width: 460px;
  max-width: 90vw;
}

.mt-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: $mt-ink;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: $mt-ink-muted;
  cursor: pointer;

  &:hover {
    background: $mt-surface-muted;
    color: $mt-ink;
  }
}

.mt-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 24px 20px;
}

.field-row {
  display: flex;
  gap: 14px;

  .field {
    flex: 1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: $mt-ink-muted;
}

.field-input {
  font-family: $mt-font;
  font-size: 14px;
  color: $mt-ink;
  padding: 10px 12px;
  border: 1px solid $mt-border;
  border-radius: 8px;
  outline: none;
  background: $mt-surface;
  transition: border-color 0.15s ease;

  &:focus {
    border-color: $mt-accent;
    box-shadow: 0 0 0 3px rgba($mt-accent, 0.12);
  }
}

.mt-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px 20px;
  border-top: 1px solid $mt-border;
}

.btn {
  font-family: $mt-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: $mt-ink-muted;

  &:hover {
    background: $mt-surface-muted;
  }
}

.btn-primary {
  background: $mt-accent;
  color: white;

  &:hover {
    background: $mt-accent-dark;
  }
}
